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

# List API Keys

> Returns all API keys for the authenticated project. Key values are masked —
only the prefix is returned.




## OpenAPI

````yaml GET /api/admin/api-keys
openapi: 3.1.0
info:
  title: LogClaw API
  description: >
    LogClaw Cloud API for log ingestion, API key management, incident
    monitoring,

    and infrastructure health. All endpoints are authenticated via the

    `x-logclaw-api-key` header.


    Generate an API key from your project dashboard at

    [console.logclaw.ai](https://console.logclaw.ai) under **Settings → API
    Keys**.
  version: 1.0.0
  contact:
    name: LogClaw
    url: https://docs.logclaw.ai
servers:
  - url: https://otel.logclaw.ai
    description: LogClaw Cloud
security:
  - apiKey: []
tags:
  - name: Ingestion
    description: OTLP log ingestion
  - name: API Keys
    description: API key management
  - name: Bridge
    description: ETL pipeline health and configuration
  - name: Ticketing
    description: Incident management and runtime config
  - name: Infrastructure
    description: Cluster health monitoring
  - name: OpenSearch
    description: Log storage and search
paths:
  /api/admin/api-keys:
    get:
      tags:
        - API Keys
      summary: List API Keys
      description: >
        Returns all API keys for the authenticated project. Key values are
        masked —

        only the prefix is returned.
      operationId: listApiKeys
      responses:
        '200':
          description: List of API keys
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiKey'
              example:
                - id: key_abc123
                  name: production-backend
                  prefix: lc_proj_5a33...c717
                  createdAt: '2024-03-01T10:00:00Z'
                  lastUsedAt: '2024-03-01T15:30:00Z'
                - id: key_def456
                  name: staging-worker
                  prefix: lc_proj_8b21...a4f2
                  createdAt: '2024-02-15T08:00:00Z'
                  lastUsedAt: null
        '401':
          description: Invalid or missing API key
components:
  schemas:
    ApiKey:
      type: object
      properties:
        id:
          type: string
          example: key_abc123
        name:
          type: string
          example: production-backend
        prefix:
          type: string
          example: lc_proj_5a33...c717
        createdAt:
          type: string
          format: date-time
          example: '2024-03-01T10:00:00Z'
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
          example: '2024-03-01T15:30:00Z'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-logclaw-api-key
      description: Your project API key (starts with `lc_proj_`)

````