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

Brevo: the transactional emails sent by the connection

GET
/v3/smtp/emails
curl --request GET \
--url 'http://localhost:3000/v3/smtp/emails?sort=asc&limit=500&offset=0' \
--header 'api-key: <api-key>'

One item per message and recipient. email, templateId or messageId is required; startDate and endDate (YYYY-MM-DD, days of the workspace timezone) go together and span at most one month, the past 30 days by default.

email
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,}$/
templateId
integer
> 0 <= 2147483647
messageId
string
>= 1 characters
startDate
string
/^\d{4}-\d{2}-\d{2}$/
endDate
string
/^\d{4}-\d{2}-\d{2}$/
sort
string
default: desc
Allowed values: asc desc
limit
integer
default: 500 <= 500
offset
integer
0 <= 9007199254740991

A page.

Media typeapplication/json
object
count
required
integer
>= -9007199254740991 <= 9007199254740991
transactionalEmails
required
Array<object>
object
email
required
string
subject
required
string
templateId
integer
>= -9007199254740991 <= 9007199254740991
messageId
required
string
uuid
required
string
date
required
string
from
string
tags
Array<string>

Example generated

{
"count": 1,
"transactionalEmails": [
{
"email": "example",
"subject": "example",
"templateId": 1,
"messageId": "example",
"uuid": "example",
"date": "example",
"from": "example",
"tags": [
"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: 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.