Revoke API key
import requests
url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"propagation_status": "pending",
"message": "<string>"
}{
"error": {
"message": "API key is invalid.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key"
}
}{
"error": {
"message": "The requested resource was not found.",
"type": "not_found_error",
"param": null,
"code": "resource_not_found"
}
}API Keys
Revoke API key
Revokes an API key
DELETE
/
v1
/
workspaces
/
{workspace_id}
/
api-keys
/
{api_key_id}
Revoke API key
import requests
url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"propagation_status": "pending",
"message": "<string>"
}{
"error": {
"message": "API key is invalid.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key"
}
}{
"error": {
"message": "The requested resource was not found.",
"type": "not_found_error",
"param": null,
"code": "resource_not_found"
}
}Requires
All parameters, request/response schemas, and examples are auto-generated from the OpenAPI specification.
keys:write scope. Naturally idempotent.
Revoked keys stop working within 60 seconds. May return
202 with propagation_status: "pending" while the change takes effect.Authorizations
API key authentication.
Keys start with ak_ prefix.
Example: Authorization: Bearer ak_live_xxxxxxxxxxxx
Path Parameters
Workspace identifier
API key identifier
Response
Accepted — revocation queued for propagation