---
title: "Lists API key counts for the account."
method: GET
path: "/reporting/api-keys"
tags: ["reporting"]
---

# Lists API key counts for the account.

`GET /reporting/api-keys`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/reporting/api-keys`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/reporting/api-keys/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint lists the API key counts of the account, providing an overview of API access usage and distribution for improved visibility and reporting.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive data retrieval:** Returns a comprehensive list of API key counts, providing a complete and accurate overview for reporting purposes.</br>- **Comprehensive error handling:** Returns a `401` error code with a clear description when requests fail.

## Response `200`

API key counts listed successfully.

- ApiKeyCounts[]
  - `serviceKeyCount` integer: Number of service API keys in the account
  - `userKeyCount` integer: Number of user API keys in the account
  - `totalKeyCount` integer: Total number of API keys in the account
  - `activeKeyCount` integer: Number of active API keys in the account
  - `disabledKeyCount` integer: Number of disabled API keys in the account
  - `expiredKeyCount` integer: Number of expired API keys in the account
  - `expiring30DayCount` integer: Number of API keys expiring in the next 30 days
  - `expiring7DayCount` integer: Number of API keys expiring in the next 7 days

## Other responses

- `401`: Token is missing or expired.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
