Delete API key

DELETE/v1/keys/{hash}

Delete an API key owned by the authenticated user.

Use this endpoint when a key should no longer be usable. The operation is scoped to the authenticated user's own keys.

Authentication

Authorization Bearer

Use either a Token360 API key (sk-token360-...) or a signed-in user JWT.

Path Parameters

hashstringrequired

API key hash identifier.

Response

deletedboolean

True when the API key was deleted.

Request

Shell
1curl -X DELETE https://api.token360.ai/v1/keys/f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 \
2  -H "Authorization: Bearer sk-token360-inf-..."

Response

JSON
1{
2  "deleted": true
3}
Was this page helpful?