Manually add an address to the suppression list
POST
/v1/suppressions
const url = 'https://your-notavia-host/v1/suppressions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"address":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-notavia-host/v1/suppressions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "address": "example" }'Manually adds an address to the suppression list. If the address is
already suppressed, the existing entry is returned with 200 instead of
201. Requires a full-access API key.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
address
required
string
Example generated
{ "address": "example"}Responses
Section titled “ Responses ”The address was already suppressed; the existing entry is returned.
Media type application/json
object
id
string format: uuid
address
string
reason
string
source
string
diagnostic_detail
string
triggering_notification_id
string format: uuid
suppressed_at
string format: date-time
Example
{ "reason": "hard_bounce", "source": "provider"}The address was added to the suppression list.
Media type application/json
object
id
string format: uuid
address
string
reason
string
source
string
diagnostic_detail
string
triggering_notification_id
string format: uuid
suppressed_at
string format: date-time
Example
{ "reason": "hard_bounce", "source": "provider"}Validation or request error.
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Missing or invalid credentials.
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Credentials do not have the required scope.
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}