Skip to content
Kapten
Esc
↑↓navigate↵open⌘Jpreview

Revoke a client secret

Requires organization:update. Token requests with the secret are refused from then on.

DELETE/organizations/{organizationId}/oauth-clients/{clientId}/secrets/{secretId}
Authorization
AuthorizationBearer token (JWT) · headerrequired

An access token issued by this service (RFC 9068), in the Authorization header as Bearer <token>.

Path parameters
organizationIdstring<uuid>required
clientIdstring<uuid>required

The client's id, the uuid in its cli_<id> client_id.

secretIdstring<uuid>required
Responses
204

The secret is revoked.

default

The request failed.

errorstringrequired

Stable machine-readable code.

Allowed:invalid_requestunauthorizedforbiddennot_foundconflictgoneunavailableinternal
messagestringrequired

Human-readable explanation.

Request
curl -X DELETE 'https://auth.kapten.io/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/oauth-clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/secrets/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
The secret is revoked.

Was this page helpful?