---
title: "Get API token count in an org"
method: GET
path: "/orgs/{orgId}/api-tokens/count"
tags: ["API Token"]
---

# Get API token count in an org

`GET /orgs/{orgId}/api-tokens/count`

Gets count of [user API tokens](/cloud/admin/api-access/rest/intro/#API%20Tokens) in an organization.

#### Scopes
**[Authorization scopes](/cloud/admin/scopes/) required:** `read:tokens:admin`

## Path parameters

- `orgId` string, required

## Query parameters

- `q` string
- `status` 'allowed' | 'blocked'
- `createdAtSearchType` 'range' | 'gt' | 'lt' | 'range_time'
- `createdAtUom` 'day' | 'hour' | 'minute' | 'week'
- `createdAtValue` integer
- `createdAtFrom` string, ISO 8601
- `createdAtTo` string, ISO 8601
- `createdAtRangeFrom` string, 1w 2d 3h 4m
- `createdAtRangeTo` string, 1w 2d 3h 4m
- `lastActiveAtSearchType` 'range' | 'gt' | 'lt' | 'range_time'
- `lastActiveAtUom` 'day' | 'hour' | 'minute' | 'week'
- `lastActiveAtValue` integer
- `lastActiveAtFrom` string, ISO 8601
- `lastActiveAtTo` string, ISO 8601
- `lastActiveAtRangeFrom` string, 1w 2d 3h 4m
- `lastActiveAtRangeTo` string, 1w 2d 3h 4m

## Response `200`

Returned if the request is successful.

- integer

## Other responses

- `400` — Returned if request is not in correct format.
- `403` — Returned if the user does not have correct permissions to read user API tokens.
- `500` — Internal Error

---

[API](https://skmtc.net/atlassian/apis/api-access.md) · [All operations](https://skmtc.net/atlassian/apis/api-access/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/api-access/versions/412d18f78d91/schema)
