Add Dnc Contacts Api
Contacts
Add Contact to DNC List
Adds one or more email addresses to an organisation’s DNC list.
Path Parameters
organisation_id(int): Organisation ID to which DNC contacts are added.
Request Body
{
"emails": ["alice@example.com", "bob@example.com"]
}
Headers
X-API-Key: API key granting access to the organisation’s DNC list.
Response
- Returns a JSON message indicating how many contacts were inserted, e.g.
{ "message": "2 contact(s) successfully added to the DNC list." }
Errors
400 Bad Request: Payload fails validation (e.g. invalid email address).403 Forbidden: Authenticated user lacks CRUD rights for the organisation.
POST
Add Dnc Contacts Api