---
title: "Get Access Token Usage"
method: GET
path: "/reports/access-tokens"
tags: ["access-token-usage"]
---

# Get Access Token Usage

`GET /reports/access-tokens`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/reports/access-tokens`
- Auth: HTTP bearer

This endpoint returns a list of access token usage on the account.

## Query parameters

- `format` string
- `filter[is-expired]` string
- `filter[user][status]` 'Active' | 'Inactive'
- `filter[created-at]` string
- `page[number]` string
- `page[size]` string
- `query` string
- `sort` string[]

## Response `200`

Success.

- AccessTokenUsageListingDocument: JSON:API Document Listing see: https://jsonapi.org/format/#document-structure
  - `data` AccessTokenUsage[]
    - `attributes` object
      - `created-at` string, date-time: The time when the token was created.
      - `description` string, nullable: The description of the token.
      - `expires-at` string, date-time, nullable: The UTC expiration datetime.
      - `last-characters` string: The last 6 characters of the token
      - `last-used-at` string, date-time, nullable: The time when the token was last used.
      - `name` string, nullable: The name of the token.
      - `owner-email` string
      - `owner-status` 'Active' | 'Inactive' | 'Pending'
      - `owner-type` 'user' | 'service-account'
    - `id` string
    - `links` object
    - `type` 'access-token-usages', required
  - `included` object[]
  - `links` object
  - `meta` object

## Other responses

- `403`: User unauthorized to perform this action.
- `404`: Access token usage not found or user unauthorized to perform action.
- `4XX`: Client error.
- `5XX`: Server error.

---

[API](https://skmtc.dev/scalr/apis/scalr-iacp-api.md) - [All operations](https://skmtc.dev/scalr/apis/scalr-iacp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scalr/apis/scalr-iacp-api/revisions/d3e1dc85657a?raw)
