Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

Brevo: send a transactional email (`brevo` connection)

POST
/v3/smtp/email
curl --request POST \
--url http://localhost:3000/v3/smtp/email \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{ "sender": { "email": "hello@example.com", "name": "example" }, "to": [ { "email": "hello@example.com", "name": "example" } ], "cc": [ { "email": "hello@example.com", "name": "example" } ], "bcc": [ { "email": "hello@example.com", "name": "example" } ], "replyTo": { "email": "hello@example.com", "name": "example" }, "subject": "example", "htmlContent": "example", "textContent": "example", "templateId": 1, "params": { "additionalProperty": "example" }, "headers": { "additionalProperty": "example" }, "attachment": [ { "content": "example", "url": "https://example.com", "name": "example" } ], "tags": [ "example" ], "scheduledAt": "2026-04-15T12:00:00Z", "batchId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "messageVersions": [ { "to": [ { "email": "hello@example.com", "name": "example" } ], "cc": [ { "email": "hello@example.com", "name": "example" } ], "bcc": [ { "email": "hello@example.com", "name": "example" } ], "replyTo": { "email": "hello@example.com", "name": "example" }, "subject": "example", "htmlContent": "example", "textContent": "example", "params": { "additionalProperty": "example" } } ] }'

Idempotency as Brevo documents it: the idempotencyKey entry (any case) of the headers body field, a UUID (else 400 invalid_parameter), kept 30 minutes; any reuse within that window, same body or not, answers 400 duplicate_parameter and is not processed. The Idempotency-Key HTTP header is ignored.

Media typeapplication/json
object
sender
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
to
Array<object>
<= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
cc
Array<object>
<= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
bcc
Array<object>
<= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
replyTo
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
subject
string
<= 998 characters
htmlContent
string
textContent
string
templateId
integer
> 0 <= 2147483647
params
object
key
additional properties
headers
object
key
additional properties
string | number | boolean
attachment
Array<object>
<= 100 items
object
content
string format: base64
/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/
url
string format: uri
name
string
>= 1 characters <= 255 characters
tags
Array<string>
<= 50 items
scheduledAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
batchId
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
messageVersions
Array<object>
>= 1 items <= 1000 items
object
to
required
Array<object>
>= 1 items <= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
cc
Array<object>
<= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
bcc
Array<object>
<= 99 items
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
replyTo
object
email
required
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
string
<= 70 characters
subject
string
<= 998 characters
htmlContent
string
textContent
string
params
object
key
additional properties

Example generated

{
"sender": {
"email": "hello@example.com",
"name": "example"
},
"to": [
{
"email": "hello@example.com",
"name": "example"
}
],
"cc": [
{
"email": "hello@example.com",
"name": "example"
}
],
"bcc": [
{
"email": "hello@example.com",
"name": "example"
}
],
"replyTo": {
"email": "hello@example.com",
"name": "example"
},
"subject": "example",
"htmlContent": "example",
"textContent": "example",
"templateId": 1,
"params": {
"additionalProperty": "example"
},
"headers": {
"additionalProperty": "example"
},
"attachment": [
{
"content": "example",
"url": "https://example.com",
"name": "example"
}
],
"tags": [
"example"
],
"scheduledAt": "2026-04-15T12:00:00Z",
"batchId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"messageVersions": [
{
"to": [
{
"email": "hello@example.com",
"name": "example"
}
],
"cc": [
{
"email": "hello@example.com",
"name": "example"
}
],
"bcc": [
{
"email": "hello@example.com",
"name": "example"
}
],
"replyTo": {
"email": "hello@example.com",
"name": "example"
},
"subject": "example",
"htmlContent": "example",
"textContent": "example",
"params": {
"additionalProperty": "example"
}
}
]
}

Accepted.

Media typeapplication/json
Any of:
object
messageId
required
string

Example generated

{
"messageId": "example"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Idempotent-Replayed

Set when the response is replayed for the same Idempotency-Key.

string
Allowed value: true

Set when the response is replayed for the same Idempotency-Key.

Error: validation_error, idempotency_mismatch

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: unauthorized

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

WWW-Authenticate
required

Sent with every 401.

string
Allowed value: Bearer

Sent with every 401.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: forbidden

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: payload_too_large

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: rate_limited, chaos_injected

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Retry-After
required

Seconds until one token is back (at least 1).

integer
<= 9007199254740991

Seconds until one token is back (at least 1).

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: chaos_injected, internal_error

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: chaos_injected

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

Error: chaos_injected

Media typeapplication/json
object
code
required
string
Allowed values: invalid_parameter missing_parameter out_of_range unauthorized permission_denied document_not_found duplicate_parameter too_many_requests chaos_injected internal_error
message
required
string

Example

{
"code": "invalid_parameter"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

X-RateLimit-Limit

Requests per window.

integer
<= 9007199254740991

Requests per window.

X-RateLimit-Remaining

Whole tokens left in the bucket.

integer
<= 9007199254740991

Whole tokens left in the bucket.

X-RateLimit-Reset

Seconds until the bucket is full again.

integer
<= 9007199254740991

Seconds until the bucket is full again.

x-sib-ratelimit-limit

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-remaining

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.

x-sib-ratelimit-reset

Brevo copy of the matching X-RateLimit header.

string

Brevo copy of the matching X-RateLimit header.