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

# List API keys

> Lists the workspace's API keys. Raw key material is never returned — only the prefix.



## OpenAPI

````yaml /api-reference/openapi.json get /workspace/api-keys
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /workspace/api-keys:
    get:
      tags:
        - Workspace
      summary: List API keys
      description: >-
        Lists the workspace's API keys. Raw key material is never returned —
        only the prefix.
      operationId: list_api_keys_ca_api_v0_workspace_api_keys_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 100
          description: Items to return (max 100).
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
          description: Items to skip.
      responses:
        '200':
          description: Paginated API keys
          content:
            application/json:
              example:
                data:
                  - id: key_01EXAMPLE
                    name: backend
                    prefix: lk_live_3Qa1
                    scopes:
                      - sessions:read
                      - sessions:write
                    status: active
                    created_at: '2026-05-22T10:00:00Z'
                    expires_at: null
                    last_used_at: '2026-05-22T12:30:00Z'
                pagination:
                  limit: 20
                  offset: 0
                  total: 1
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````