Brevo: the transactional emails sent by the connection
const url = 'http://localhost:3000/v3/smtp/emails?sort=asc&limit=500&offset=0';const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”A page.
object
object
Example generated
{ "count": 1, "transactionalEmails": [ { "email": "example", "subject": "example", "templateId": 1, "messageId": "example", "uuid": "example", "date": "example", "from": "example", "tags": [ "example" ] } ]}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Set when the response is replayed for the same Idempotency-Key.
Set when the response is replayed for the same Idempotency-Key.
Error: validation_error, idempotency_mismatch
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: unauthorized
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Sent with every 401.
Sent with every 401.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: forbidden
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: rate_limited, chaos_injected
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Seconds until one token is back (at least 1).
Seconds until one token is back (at least 1).
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: chaos_injected, internal_error
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: chaos_injected
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Error: chaos_injected
object
Example
{ "code": "invalid_parameter"}Headers
Section titled “Headers”Id of the request (req_…), also the id of its request log row.
Id of the request (req_…), also the id of its request log row.
Requests per window.
Requests per window.
Whole tokens left in the bucket.
Whole tokens left in the bucket.
Seconds until the bucket is full again.
Seconds until the bucket is full again.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.
Brevo copy of the matching X-RateLimit header.