Revoke a grant
import requests
url = "https://app.langwatch.ai/api/v1/grants/{grantId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/v1/grants/{grantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.langwatch.ai/api/v1/grants/{grantId} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"revoked": true
}Grants
Revoke a grant
Revoke a grant. Identical grants each hold until revoked, so the access lasts until the last of them ends. Revoking the organization’s last administrator answers cannot_remove_last_admin.
DELETE
/
api
/
v1
/
grants
/
{grantId}
Revoke a grant
import requests
url = "https://app.langwatch.ai/api/v1/grants/{grantId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/v1/grants/{grantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.langwatch.ai/api/v1/grants/{grantId} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"revoked": true
}Authorizations
Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.
Path Parameters
Required string length:
1 - 128Last modified on October 12, 2026
Was this page helpful?