POST /v1/api-keys/{api_key_id}:revoke
TenantService_RevokeAPIKey
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
api_key_idpath · string · required
Request body
api_key_idstringreasonstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/api-keys/{api_key_id}:revoke' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"reason": "<value>"
}'Response contract
200 · OK
allowed_cidrsarraycreated_atstringcustomer_account_idstringenvironmentstringexpires_atstringidstringlast_used_atstringnamestringprefixstringrevoked_atstringscopesarrayservice_account_idstringtenant_idstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.