Brevo: the suppression list of the workspace as blocked contacts
const url = 'http://localhost:3000/v3/smtp/blockedContacts?limit=50&offset=0&sort=asc';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/blockedContacts?limit=50&offset=0&sort=asc' \ --header 'api-key: <api-key>'startDate and endDate (YYYY-MM-DD, days of the workspace timezone) go together and cannot be after today in that timezone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”A page.
object
object
object
Example
{ "contacts": [ { "reason": { "code": "unsubscribedViaMA" } } ]}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.