List suppressed addresses
GET
/suppressions
const url = 'https://api.duta.indra.sh/v1/suppressions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.duta.indra.sh/v1/suppressions \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”q
string
Matches the address
limit
integer
1 to 500. Default 100
after
string
The next value from the previous page
Responses
Section titled “ Responses ”Success
Media typeapplication/json
object
object
string
data
required
Array<object>
object
email
required
string
reason
required
string
source
required
string | null
created_at
required
ISO 8601
string format: date-time
has_more
required
boolean
next
required
Pass as after to get the following page
string | null
Example
{ "object": "list", "data": [ { "reason": "hard_bounce" } ]}Missing or invalid API key
Media typeapplication/json
object
statusCode
required
integer
name
required
The Resend error name, so code that branches on it keeps working
string
message
required
string
code
required
Duta’s error code, finer grained than name
string
detail
object
key
additional properties
request_id
required
Find this request on the Logs screen
string
Example
{ "code": "unauthorized"}The request was refused. code says why
Media typeapplication/json
object
statusCode
required
integer
name
required
The Resend error name, so code that branches on it keeps working
string
message
required
string
code
required
Duta’s error code, finer grained than name
string
detail
object
key
additional properties
request_id
required
Find this request on the Logs screen
string
Example
{ "code": "unauthorized"}Rate limited. Retry after the Retry-After header
Media typeapplication/json
object
statusCode
required
integer
name
required
The Resend error name, so code that branches on it keeps working
string
message
required
string
code
required
Duta’s error code, finer grained than name
string
detail
object
key
additional properties
request_id
required
Find this request on the Logs screen
string
Example
{ "code": "unauthorized"}