curl -X DELETE "https://api.nedzo.ai/v1/agents/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/phone-number" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"phoneNumberId": null,
"verifiedCallerIdId": null,
"releasedPhoneNumberIds": ["4d1f6b52-8c0e-4a51-9b7d-2f3c4e5a6b7c"]
}
Agents
Take an agent's phone numbers away
The agent stops answering and calling on every number and caller ID it holds.
DELETE
/
agents
/
{agentId}
/
phone-number
curl -X DELETE "https://api.nedzo.ai/v1/agents/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/phone-number" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"phoneNumberId": null,
"verifiedCallerIdId": null,
"releasedPhoneNumberIds": ["4d1f6b52-8c0e-4a51-9b7d-2f3c4e5a6b7c"]
}
This endpoint is for the VIP plan only. Other plans get a
403. See Plan access.string
required
Agent UUID
curl -X DELETE "https://api.nedzo.ai/v1/agents/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/phone-number" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"phoneNumberId": null,
"verifiedCallerIdId": null,
"releasedPhoneNumberIds": ["4d1f6b52-8c0e-4a51-9b7d-2f3c4e5a6b7c"]
}
Errors
| Status | When |
|---|---|
400 | A web agent does not use a phone number. |
404 | Agent not found: the agent does not exist, or it is not in this API key’s scope |
Was this page helpful?
