Skip to main content
POST
/
v1
/
dnd_numbers
Add a DND number
curl --request POST \
  --url https://api.osvi.ai/v1/dnd_numbers \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og",
  "phone": "9876543210",
  "reason": "customer opted out"
}
'
{
  "success": true,
  "data": {
    "id": 31,
    "agent_uuid": "agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og",
    "phone": "+919876543210",
    "reason": "customer opted out",
    "created_at": "2026-06-12T09:30:00+05:30"
  }
}

Authorizations

API-Token
string
header
required

16-character API token associated with your OSVI account. Find it in your dashboard under Settings → API.

Body

application/json
agent_uuid
string
required
Example:

"agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og"

phone
string
required
Example:

"9876543210"

reason
string

Optional note for your own records.

Example:

"customer opted out"

Response

The created DND entry.

success
boolean
Example:

true

data
object