API Keys
Revoke an API key
Revokes an API key. The key stops authenticating immediately, stays listed as REVOKED for audit, and its label can be reused — so a revoked key is no longer addressable by label (404). This is the only revoke operation; there is no hard delete.
post/v1/api-keys/{label}/revoke
Path parameters
labelstring required
Label of the API key to revoke.
Example:ci-runner
Label of the API key to revoke.
Response
API key revoked
Example response
{
"label": "ci-runner",
"keyPrefix": "monid_test_a1b2c3d4",
"createdBy": "USER#user_2abc",
"scopes": [
"runs:create",
"runs:read",
"wallet:read"
],
"revokedBy": "USER#user_2abc"
}Changes
Changed in 1 of the 22 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○