Skip to main content

viewPersonalAccessTokens

View all personal access token metadata for the current user

note

This contains metadata about the tokens, not the tokens themselves.

Tokens are only viewable on creation.

viewPersonalAccessTokens: [PersonalAccessToken!]

Type

PersonalAccessToken object personal-access-tokens

Personal Access Token metadata

note

This contains information about created tokens, but does not contain the token value itself. The token value is only available in the return value of the createPersonalAccessToken() mutation.

Code Samples

curl -X POST https://graphql.pointonenav.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"query": "query ViewPersonalAccessTokens { viewPersonalAccessTokens { name description role status createdAt expiresAt } }",
"variables": {}
}'