Do Not Call
List the Do Not Call list, newest first
GET /v1/dnc dnc:read
Query
e164stringLook up one number
limitintegercursorstring
Responses
- 200
A page of numbers
Fields
-
dataDncNumber[] requiredFields
-
e164string required -
reasonstring | null required -
source"api" | "dashboard" | "disposition" | "import" | "crm" requiredapi,dashboard,disposition(a rep recorded a DNC disposition),import(a CSV) orcrm(a revocation in your CRM) -
createdBystring | null requiredThe API key, dashboard user or rep that added it
-
createdAtstring required
-
-
nextCursorstring | null required
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 429
rate_limited, or another limit named byerror.code
Add a number to the Do Not Call list
POST /v1/dnc dnc:write
Idempotent: a number already on the list is returned as it is (200).
Headers
Idempotency-KeystringMakes the request safe to retry. For 24h, a request with the same key and body replays the stored response (with
Idempotent-Replayed: true); the same key with a different request is a 422idempotency_key_reused, and while the first request is still running a 409idempotency_key_in_use. Server errors, 409s and 429s are not stored.
Body
-
e164string required -
reasonstring | null
Responses
- 200
Already on the list
Fields
-
dataDncNumber requiredA number on the workspace's internal Do Not Call list: reps' outbound calls to it are refused with 422
do_not_call. Scoped to the API key environment.Fields
-
e164string required -
reasonstring | null required -
source"api" | "dashboard" | "disposition" | "import" | "crm" requiredapi,dashboard,disposition(a rep recorded a DNC disposition),import(a CSV) orcrm(a revocation in your CRM) -
createdBystring | null requiredThe API key, dashboard user or rep that added it
-
createdAtstring required
-
-
- 201
Added
Fields
-
dataDncNumber requiredA number on the workspace's internal Do Not Call list: reps' outbound calls to it are refused with 422
do_not_call. Scoped to the API key environment.Fields
-
e164string required -
reasonstring | null required -
source"api" | "dashboard" | "disposition" | "import" | "crm" requiredapi,dashboard,disposition(a rep recorded a DNC disposition),import(a CSV) orcrm(a revocation in your CRM) -
createdBystring | null requiredThe API key, dashboard user or rep that added it
-
createdAtstring required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
idempotency_key_in_use: a request with this key is still running - 422
idempotency_key_reused: this key was used with a different request - 429
rate_limited, or another limit named byerror.code
Remove a number from the Do Not Call list
DELETE /v1/dnc/{e164} dnc:write
Idempotent: removing a number that is not on the list also answers 204.
Path
e164string required
Responses
- 204
Removed
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 429
rate_limited, or another limit named byerror.code