Revoke Customer Key
curl --request DELETE \
--url https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "0c7e4a92-3d1b-4f6a-8e25-91b7c3d4f5a6",
"name": "Sunrise front-desk dashboard",
"prefix": "ta_live_Xk3pQ9",
"scope": "read",
"createdAt": "2026-10-03T08:22:10.511Z",
"lastUsedAt": "2026-10-06T09:58:47.090Z",
"revokedAt": "2026-10-06T10:20:03.615Z"
}
Customers
Revoke Customer Key
Revokes one of a customer’s keys, immediately: its next request answers 401. Answers with the key as it now is. A key already revoked is 404. Needs a full key.
DELETE
/
customers
/
{id}
/
keys
/
{keyId}
Revoke Customer Key
curl --request DELETE \
--url https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/customers/{id}/keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "0c7e4a92-3d1b-4f6a-8e25-91b7c3d4f5a6",
"name": "Sunrise front-desk dashboard",
"prefix": "ta_live_Xk3pQ9",
"scope": "read",
"createdAt": "2026-10-03T08:22:10.511Z",
"lastUsedAt": "2026-10-06T09:58:47.090Z",
"revokedAt": "2026-10-06T10:20:03.615Z"
}
Authorizations
Path Parameters
Response
The key, now revoked.
An API key that works in one customer only. Never carries the secret.