CentralCSP
APIAPI Keys

Revoke an API key

Deletes the key. Requests using it are rejected from the next call onwards. There is no way to restore it, so issue a new key first if something depends on it.

Requires the admin role on the workspace and the api_keys plan feature.

DELETE
/v1/workspaces/{workspaceId}/api-keys/{apiKeyId}

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

apiKeyId*string

The API key's id. Not the secret.

Response Body

The API key is revoked.

Example Request
curl -X DELETE 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/api-keys/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90'
Example Response
Empty