---
title: "Retrieve user access token"
method: GET
path: "/users/{key}/tokens/{tokenName}"
tags: ["tokens"]
---

# Retrieve user access token

`GET /users/{key}/tokens/{tokenName}`

Retrieve metadata about the specified token. You may also optionally specify a list of fields to include in the response.

## Path parameters

- `key` string, required
- `tokenName` string, required

## Query parameters

- `fields` string[]

## Response `200`

Success, returns metadata about the specified token.

- TokensResponse — Metadata about the JSON web token.
  - `id` string
  - `isRevoked` string — Zero if the token is still active, non-zero if the token has been revoked.
  - `name` string — The name of the token.
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Invalid arguments. Please review the response for error details.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `404` — The resource you requested does not exist.
- `default` — An unexpected error occurred. Please review the response for error details.

---

[API](https://skmtc.net/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.net/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesforce/refocus-api/versions/42c2153b047e/schema)
