---
title: "Get API key count in an org"
method: GET
path: "/orgs/{orgId}/api-keys/count"
tags: ["API Key"]
---

# Get API key count in an org

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

Gets count of user API keys in an organization.

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

## Path parameters

- `orgId` string, required

## Query parameters

- `q` string
- `keyType` 'CLOUD_ADMIN'
- `expiresAtSearchType` 'range' | 'gt' | 'lt' | 'range_time'
- `expiresAtUom` 'day' | 'hour' | 'minute' | 'week'
- `expiresAtValue` integer
- `expiresAtFrom` string, ISO 8601
- `expiresAtTo` string, ISO 8601
- `expiresAtRangeFrom` string, 1w 2d 3h 4m
- `expiresAtRangeTo` 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

## Headers

- `Authorization` string, required

## 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/revisions/412d18f78d91/schema)
