Endpoint

DELETE https://sms.phones.inc/v1/keys/{key_id}

Overview

Revoke one of your API keys. The key stops authenticating immediately. Your account’s default key cannot be deleted.

Path Parameters

key_id
string
required
The key’s id from List API Keys — not the sk_... secret.

Response

ok
boolean
true when the key was revoked.

Errors

StatusErrorMeaning
403the default key cannot be deletedDefault keys are permanent
404key not foundUnknown key, or it belongs to another account
curl -X DELETE https://sms.phones.inc/v1/keys/3f2e1d0c-9b8a-7654-3210-fedcba987654 \
  -H "API-KEY: sk_your_api_key"
{
  "ok": true
}