Revoke Token by Value

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Revoke an access token by providing a JSON web token (JWT) or reference token.

Since: 7.68

Authorization: Requires admin permissions.

Security: Requires a valid token.

Usage: DELETE /access/api/v1/tokens/revoke

Consumes: application/json

Sample Usage:

curl -H "Authorization: Bearer <Access-token>"  -H "Content-Type: application/json"  -X DELETE "https://<servername>/access/api/v1/tokens/revoke"   -d '{"token":"<token-value"}'

200 OK {"revoked-token-id":"123-123-123"}

This endpoint can accept the following parameter:

token

The JWT or reference token value for the token to be revoked

Errors:

  • 400 - If the token was created by a different Artifactory instance (and therefore cannot be revoked)

  • 401- Unauthenticated

  • 403 - The authenticated principal has no permissions to revoke the requested token