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

# List API keys (admin)

> Admin-only. Lists every issued API key with its capabilities and audit metadata. Key VALUES are never returned here — only on issue and rotate, one time. Keys issued before capability metadata existed are flagged `isLegacyFullAccess`.



## OpenAPI

````yaml /openapi.yaml get /api/v1/keys
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/keys:
    get:
      tags:
        - API Keys
      summary: List API keys (admin)
      description: >-
        Admin-only. Lists every issued API key with its capabilities and audit
        metadata. Key VALUES are never returned here — only on issue and rotate,
        one time. Keys issued before capability metadata existed are flagged
        `isLegacyFullAccess`.
      responses:
        '200':
          description: All keys, without values
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        capabilities:
                          type: array
                          items:
                            type: string
                        revoked:
                          type: boolean
                        createdAt:
                          type: string
                        createdBy:
                          type: string
                        revokedAt:
                          type: string
                        revokedBy:
                          type: string
                        isLegacyFullAccess:
                          type: boolean
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````