Skip to main content
POST
/
v1
/
sends
curl --request POST \
  --url https://brew.new/api/v1/sends \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emailId": "email_123",
  "domainId": "domain_123",
  "subject": "Welcome to Brew",
  "audienceId": "audience_123",
  "scheduledAt": "2099-01-01T00:00:00.000Z"
}
'
{
  "status": "sent",
  "recipient": "qa@example.com"
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Headers

Idempotency-Key
string

Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.

Required string length: 1 - 100

Body

application/json

Campaign send (audience-scoped, async 202) OR a test send ({ mode: "test", emailId, subject, to } — forced Brew sender, no domain/audience, sync 200).

mode
enum<string>
required
Available options:
test
emailId
string
required
Minimum string length: 1
subject
string
required
Minimum string length: 1
to
string<email>
required
emailVersionId
string
Minimum string length: 1
previewText
string
Maximum string length: 50
replyTo
string<email>

Response

A test send completed (mode: "test").

status
enum<string>
required
Available options:
sent
recipient
string<email>
required