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

Brevo: the suppression list of the workspace as blocked contacts

GET
/v3/smtp/blockedContacts
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.

startDate
string
/^\d{4}-\d{2}-\d{2}$/
endDate
string
/^\d{4}-\d{2}-\d{2}$/
limit
integer
default: 50 <= 100
offset
integer
0 <= 9007199254740991
senders
Any of:
string
sort
string
default: desc
Allowed values: asc desc

A page.

Media typeapplication/json
object
contacts
required
Array<object>
object
email
required
string
senderEmail
required
string | null
reason
required
object
code
required
string
Allowed values: unsubscribedViaMA unsubscribedViaEmail adminBlocked unsubscribedViaApi hardBounce contactFlaggedAsSpam
message
required
string
blockedAt
required
string
count
required
integer
>= -9007199254740991 <= 9007199254740991

Example

{
"contacts": [
{
"reason": {
"code": "unsubscribedViaMA"
}
}
]
}
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.