Révoquer une identifiante d'application

DELETE /v1/applications/{application_id}/credentials/{credential_id} · permission applications:write

Révoque une identifiante (raison manual). Une identifiante révoquée ne peut plus authentifier l'application ; la révocation ne peut pas être annulée. Répéter la demande pour une identifiante déjà révoquée manuellement réussit.

Demande

Paramètre Emplacement Description
application_id yol Application id (app_…).
credential_id path Credential id (cred_…).

Réponse

204 No Content.

Erreurs

HTTP code Quand
401 unauthenticated The key is missing, invalid or revoked.
403 insufficient_permissions The key lacks the required permission.
404 not_found The application or the credential does not exist in this environment.
409 conflict The credential was already revoked for another reason.
503 service_unavailable The credential registry is temporarily unavailable; retry after the Retry-After delay.

Exemple

curl -X DELETE https://api.eu.keenauth.com/v1/applications/app_6f8d0cjgbmf0gtn2rg6pscp3cg/credentials/cred_0000000000000000000000001z \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"