Skip to content

DNC Management

All API requests must include a universal API key as a bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY_HERE

If the key is missing, invalid, inactive, or not a universal-typed key, the server will respond with a 401 or 403.

https://api.outboundiq.cloud/dnc
  • Method: POST
  • URL: /add
  • Headers:
    • Authorization: Bearer YOUR_API_KEY_HERE
    • Content-Type: application/json

Body Schema:

type AddToDnc = {
// The phone number to add to the dialer's DNC list
phone: string;
};

Response:

type DncOperationResult = {
success: boolean;
message: string;
};
  • Method: POST
  • URL: /check
  • Headers:
    • Authorization: Bearer YOUR_API_KEY_HERE
    • Content-Type: application/json

Body Schema:

type CheckDnc = {
// The phone number to look up on the dialer's DNC list
phone: string;
};

Response:

type DncCheckResult = {
success: boolean;
// true if the number is on the dialer's DNC list
onDnc: boolean;
message: string;
};
  • Method: POST
  • URL: /remove
  • Headers:
    • Authorization: Bearer YOUR_API_KEY_HERE
    • Content-Type: application/json

Body Schema:

type RemoveFromDnc = {
// The phone number to remove from the dialer's DNC list
phone: string;
};

Response:

type DncOperationResult = {
success: boolean;
message: string;
};
CodeMeaning
200Operation completed.
400Invalid phone number, the dialer’s configuration is invalid, or the workspace’s dialer type does not support DNC operations.
401Missing, invalid, or inactive API key.
403API key is not a universal-typed key.
404No dialer is configured for the workspace.
502The dialer rejected the request or was unreachable. See message.