DNC Management
Authentication
Section titled “Authentication”All API requests must include a universal API key as a bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY_HEREIf the key is missing, invalid, inactive, or not a universal-typed key, the server will respond with a 401 or 403.
Base URL
Section titled “Base URL”https://api.outboundiq.cloud/dncEndpoints
Section titled “Endpoints”Add to DNC
Section titled “Add to DNC”- Method:
POST - URL:
/add - Headers:
Authorization: Bearer YOUR_API_KEY_HEREContent-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;};Check DNC
Section titled “Check DNC”- Method:
POST - URL:
/check - Headers:
Authorization: Bearer YOUR_API_KEY_HEREContent-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;};Remove from DNC
Section titled “Remove from DNC”- Method:
POST - URL:
/remove - Headers:
Authorization: Bearer YOUR_API_KEY_HEREContent-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;};Status Codes
Section titled “Status Codes”| Code | Meaning |
|---|---|
200 | Operation completed. |
400 | Invalid phone number, the dialer’s configuration is invalid, or the workspace’s dialer type does not support DNC operations. |
401 | Missing, invalid, or inactive API key. |
403 | API key is not a universal-typed key. |
404 | No dialer is configured for the workspace. |
502 | The dialer rejected the request or was unreachable. See message. |