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

# List API keys



## OpenAPI

````yaml openapi.json GET /v1/keys
openapi: 3.1.0
info:
  title: Egma Platform API
  version: 1.0.0
  description: >-
    The customer-facing HTTP interface used by Egma's web app, CLI, and outside
    clients.
servers:
  - url: https://app.egma.ai
security: []
paths:
  /v1/keys:
    get:
      tags:
        - API keys
      summary: List API keys
      operationId: listApiKeys
      responses:
        '200':
          description: The API keys visible to the requester.
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                        name:
                          anyOf:
                            - type: string
                            - type: 'null'
                        scope:
                          type: string
                          enum:
                            - organization
                            - project
                        organizationId:
                          type: string
                          minLength: 1
                        projectId:
                          anyOf:
                            - type: string
                              minLength: 1
                            - type: 'null'
                        looksLike:
                          type: string
                        createdByUserId:
                          type: string
                          minLength: 1
                        createdAt:
                          type: string
                          format: date-time
                        lastUsedAt:
                          anyOf:
                            - type: string
                              format: date-time
                            - type: 'null'
                        revokedAt:
                          anyOf:
                            - type: string
                              format: date-time
                            - type: 'null'
                        createdByEmail:
                          type: string
                      required:
                        - id
                        - name
                        - scope
                        - organizationId
                        - projectId
                        - looksLike
                        - createdByUserId
                        - createdAt
                        - lastUsedAt
                        - revokedAt
                        - createdByEmail
                      additionalProperties: false
                required:
                  - keys
                additionalProperties: false
        '401':
          description: The request was refused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refusal'
        '429':
          description: The request rate limit was reached.
          headers:
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refusal'
      security:
        - bearerAuth: []
        - sessionCookie: []
components:
  schemas:
    Refusal:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
      required:
        - error
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Egma API key.
    sessionCookie:
      type: apiKey
      in: cookie
      name: egma.session_token
      description: >-
        The browser session cookie issued by Egma. HTTPS deployments add the
        standard __Secure- prefix.

````