On this page

    List Tokens of a User enterprise

    This API lists personal access tokens associated with a specific user, based on the user ID.


    You must enable Personal Access Tokens to successfully call this API.


    Method and URL
    GET /api/v3/user/{id}/token


    You cannot view tokens for another user. Tokens may only be viewed for the user performing the API call.

    Request Input


    Response Output

    Response output
      "data": [
          "tid": "d87dadff-e1f9-4529-9e56-3a8a44262ba6",
          "uid": "9721993d-4b4d-4af6-8b44-e1d27ec7b819",
          "label": "foo-app",
          "createdAt": "2019-12-02T19:42:22.756Z",
          "expiresAt": "2020-01-01T19:42:22.756Z"
          "tid": "77c67afe-9536-4701-9620-93ba44b79df3",
          "uid": "9721993d-4b4d-4af6-8b44-e1d27ec7b819",
          "label": "bar-access",
          "createdAt": "2020-01-10T23:19:11.649Z",
          "expiresAt": "2020-01-17T23:19:11.649Z"

    Response codes

    • 403 - The token user must be an admin.
    • 404 - User doesn’t exist.

    Example: Curl

    curl request example
    curl --request GET \
      --url http://localhost:9047/api/v3/user/<uid>/token \
      --header 'authorization: _dremioha5lrg03obu079o4fkaev5e4r8n' \
      --header 'content-type: application/json'