Get Tokens Info

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Gets a list of access tokens for a specific user.

Since: 1.2

Security: Admin

Usage: GET /api/v1/security/token

cURL Example

$ curl -u user:password -X GET "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/security/token"

Response status codes:

200 - Successfully retrieves the list of tokens 404 - Tokens not found

Response headers: N/A

Produces: application/json

Response

{
        "tokens": [
                {
                        "token_id": "58ae2b6f-085d-493e-b7c3-670d7700c034",
                        "issuer": "jfds@01ch05tj4n3ss80s6n3v2307b9",
                        "subject": "admin",
                        "issued_at": 1530088236,
                        "expiry": 2476168236,
                        "refreshable": false
                },
                {
                        "token_id": "5c0399f9-de42-4cc8-bbd6-ba04a8b861a7",
                        "issuer": "jfds@01ch05tj4n3ss80s6n3v2307b9",
                        "subject": "lenon",
                        "issued_at": 1530089226,
                        "refreshable": true
                }
        ]
}