Tone docs
API referenceAgents

Delete an agent (its numbers unassign; its call log survives)

Any number bound to this agent is unassigned rather than released, so you keep the number and can rebind it. Calls the agent already made are kept: deleting the agent must not erase the record of what it said.

Requires the write scope. A key with less gets 403 insufficient_scope.

DELETE
/v1/agents/{id}
AuthorizationBearer <token>

Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.

In: header

Path Parameters

id*string

The agent's id.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/agents/string"
{  "data": null}
Was this page helpful?