Tonedocs
API referencesecrets

Delete a secret

Refused with 409 while a tool, an integration, a number or a webhook endpoint uses it. A live key or the dashboard only.

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

DELETE
/v1/secrets/{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 secret's id.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

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