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

# List API Keys

> Retrieve all existing API keys for the organization

List all API keys in your organization. Returns information about each API key including its ID, name, limits, permissions, labels, and creator.


## OpenAPI

````yaml GET /v1/manage/apikey
openapi: 3.0.3
info:
  title: Requesty API
  description: Requesty API for AI model routing and key management
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
  - url: https://router.requesty.ai
    description: Inference router endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/apikey:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    get:
      summary: Get all API keys
      description: Retrieve all existing API keys for the organization
      operationId: listApiKeys
      responses:
        '200':
          description: Successfully retrieved API keys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiKeysResponse'
        '400':
          description: Bad request - malformed payload or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or empty Authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Payment required - organization balance exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - invalid token or model not in access list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - provider/model not supported.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded. Retry after the Retry-After header value.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Bad gateway - upstream provider returned an invalid response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetApiKeysResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/ApiKeyInfo'
      required:
        - keys
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
    ApiKeyInfo:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        monthly_limit:
          type: number
          format: decimal
        monthly_spend:
          type: number
          format: decimal
        permissions:
          $ref: '#/components/schemas/GetApiKeyPermissions'
        labels:
          type: object
          additionalProperties:
            type: string
          description: Key-value labels for the API key
        created_by:
          $ref: '#/components/schemas/User'
        group:
          $ref: '#/components/schemas/APIKeyGroupInfo'
          description: Group information if the API key belongs to a group
      required:
        - id
        - name
        - monthly_limit
        - monthly_spend
        - permissions
    GetApiKeyPermissions:
      type: object
      properties:
        manage:
          $ref: '#/components/schemas/ApiKeyPermissions'
        completions:
          $ref: '#/components/schemas/ApiKeyPermissions'
      required:
        - manage
        - completions
    User:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
    APIKeyGroupInfo:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the group
      required:
        - id
    ApiKeyPermissions:
      type: string
      enum:
        - none
        - read
        - write
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````