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 '
{
  "test": true,
  "emailId": "eml_welcome",
  "subject": "Welcome to Brew",
  "to": "qa@acme.com"
}
'
{
  "status": "sent",
  "recipient": "qa@acme.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
test
enum<boolean>
required
Available options:
true
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

The TEST send (test: true) was delivered synchronously to the single recipient.

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