Skills
Log in

List API tokens

Lists API tokens belonging to the authenticated org or team, newest first. Only active tokens are returned unless the all query parameter is set.

Required permission

Account > Admin > ApiTokens > Read

Query parameters

    • per_page

      integer
      The number of results to display per request. Maximum of 100 results per page.
      min
      1
      max
      100
    • page

      integer
      The page number to access.
      min
      1
    • cursor

      string
      The cursor returned from the previous page of results, used to request the next page.
      min length
      24
      max length
      24
    • all

      boolean
      When true, include inactive tokens (revoked or expired). By default only active tokens are returned.

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
      • tokens

        [array] required
        An array of API tokens.
        • {object}
          An API token.
          • id

            string required
            The ID (slug) of the API token.
          • name

            string required
            The display name of the API token.
          • description

            string
            The description of the API token.
          • role

            {object}
            The role assigned to this token.
            • name

              string required
              The display name of the role.
            • roleId

              string
              The ID (slug) of the role.
            • roleType

              string
              The type of the role.
              one of
              team, org
            • entityType

              string
              The entity type of the role.
              one of
              team, org
          • creatorEmail

            string
            The email of the user who created this token.
          • createdAt

            string required
            The time the token was created.
          • expiresAt

            string | null
            The time the token expires, or null if it has no expiry.
          • revoked

            boolean required
            Whether the token has been revoked.
          • revokedAt

            string
            The time the token was revoked, if it has been.
          • lastUsedAt

            string
            The time the token was last used to authenticate.
          • active

            boolean required
            Whether the token is currently active (not revoked and not expired).
    • pagination

      {object} required
      Data about the endpoint pagination.
      • hasNextPage

        boolean required
        Is there another page of results available?
      • cursor

        string
        The cursor to access the next page of results.
      • count

        number required
        The number of results returned by this request.

GET /v1/tokens

GET /v1/teams/{teamId}/tokens

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request GET \
  "https://api.northflank.com/v1/tokens?per_page=50&page=1&all=false"

Example response

200 OK

A list of API tokens.

JSON

{
  "data": {
    "tokens": [
      {
        "id": "my-api-token",
        "name": "My API Token",
        "description": "CI/CD pipeline token",
        "role": {
          "name": "Developer",
          "roleId": "developer",
          "roleType": "team",
          "entityType": "team"
        },
        "creatorEmail": "user@example.com",
        "createdAt": "2024-01-15T10:30:00.000Z",
        "expiresAt": "2024-07-15T10:30:00.000Z",
        "revoked": false,
        "revokedAt": "2024-06-15T10:30:00.000Z",
        "lastUsedAt": "2024-06-01T10:30:00.000Z",
        "active": true
      }
    ]
  },
  "pagination": {
    "hasNextPage": false,
    "count": 1
  }
}

© 2026 Northflank Ltd. All rights reserved.

northflank.com / Terms / Privacy / feedback@northflank.com