/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference Revoke API Key

Revoke API Key

Permanently revoke an API key.

DELETE/v1/projects/{projectId}/api-keys/{keyId}Try it
Session token

Permanently revokes a key. Requests using it fail with 401 immediately. Revocation cannot be undone — create a new key if needed.

Note

Requires the admin or owner role. A member of the workspace gets 403 forbidden ("Only workspace admins can revoke API keys.") with details.requiredRole and details.currentRole. Any member can list keys.

Path Parameters

NameDescription
projectId:stringpathRequired
The project ID.
keyId:stringpathRequired
The ID of the key to revoke.

404 Not Found

Returned if the key doesn't exist or was already revoked.

Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl -X DELETE https://api.syntext.dev/v1/projects/3f2a9c1e-8b4d-4e7a-9c21-5d6e7f8a9b0c/api-keys/key_789 \
-H "Authorization: Bearer $SYNTEXT_JWT"
Responseapplication/json
json
{
"data": { "id": "key_789", "revoked": true }
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext