> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List API Keys

> Retrieve every API key registered on your workspace, with metadata and last-used timestamps. Secrets are never returned.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
</Warning>

Returns every API key registered on your workspace, paginated. Each entry includes the key's stable `id`, its display `name`, the creation timestamp, and the `last_used_at` timestamp updated each time a request is authenticated with the key. Secret values are never returned by any endpoint after key creation, if you have lost a secret, revoke the key with [Revoke API Key](/docs/api-reference/api-keys/revoke) and issue a new one with [Create API Key](/docs/api-reference/api-keys/create).

## When to use this

* **Security audits**: enumerate every key, check `last_used_at` to find dormant keys that should be revoked.
* **Rotation playbooks**: confirm a newly created key is present before deploying it to consumer services.
* **Operational dashboards**: render an API key management page with the canonical list.
* **Compliance reviews**: produce a report of which keys exist in each workspace.

For details on how to rotate keys safely, see [Key rotation](/docs/api-access/key-rotation).

## Query parameters

| Parameter | Description                             |
| --------- | --------------------------------------- |
| `page`    | Page number, starting from 1.           |
| `limit`   | Results per page (max 100, default 20). |
| `search`  | Filter by name (partial match).         |

## Errors

* `403 Forbidden` is returned when the caller's API key cannot manage other keys.

## Related endpoints

* [Create API Key](/docs/api-reference/api-keys/create): issue a new key.
* [Rename API Key](/docs/api-reference/api-keys/update): change a key's display name.
* [Revoke API Key](/docs/api-reference/api-keys/revoke): permanently retire a key.
* [Key rotation](/docs/api-access/key-rotation): recommended sequence for rotating keys without downtime.


## OpenAPI

````yaml GET /api-keys
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /api-keys:
    get:
      tags:
        - API Keys
      summary: List all API keys for an organization
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: ApiKeyController_listApiKeys
      parameters:
        - name: x-organization-id
          in: header
          description: RSA encrypted organization ID (base64 format)
          required: true
          schema:
            type: string
            example: BASE64_ENCRYPTED_ORG_ID_HERE
      responses:
        '200':
          description: List of API keys
          content:
            application/json:
              schema:
                example:
                  statusCode: 200
                  message: API keys fetched successfully
                  data:
                    - id: 1
                      organization_id: 123
                      key: e3b0c44298fc1c149afbf4c8996fb924
                      name: Docs Key
                      last_used_at: '2024-06-10T12:00:00.000Z'
                      created_at: '2024-06-10T11:00:00.000Z'
                      updated_at: '2024-06-10T11:00:00.000Z'
      deprecated: true
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````