Get Token by ID

Returns token details by token ID. You can also use me instead of a token ID to get details of the currently used token.

Note: Admin users can view any token. Non-admin users can only view tokens where the subject matches their username.

Security: Requires a valid token.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

📘

The last_used parameter

The last_used parameter is supported for Artifactory versions 7.108.3 and above. To use it, you need to configure the following system properties:

  • access_token_last_used_enabled: True

  • access_token_last_used_threshold: 900

Limitations

When using the last_used parameter, note that it has the following limitations:

  • The returned value might not be precise, and might not include changes from the last 2 hours, due to the verify flow cache or to the last_used_threshold parameter which controls the frequency of updates.

  • last_used is not supported for: Environments using Circle of Trust without Federation configured

  • last_used is not supported for: Short-lived tokens (with an expiry value of less than 6 hours)

  • last_used is not supported for: Service, internal, or session tokens (only identity tokens are supported)

  • last_used is not supported for: Propagation of last_used timestamp to federated JPDs

Path Params
string
required

The token ID

Responses

401

Bad Credentials - Invalid credentials

403

Permission Denied - Insufficient permissions

404

Not Found - Token not found

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Choose an example:
application/json