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

# List Keys

> List all general API keys for the account. Requires scope: keys:read

<Note>
  For a detailed walkthrough with examples, see the [API Key Management guide](/account-management/api-key-management).
</Note>


## OpenAPI

````yaml GET /v1/account/keys
openapi: 3.1.0
info:
  title: Routeway API
  version: 1.0.0
servers:
  - url: https://api.routeway.ai
security:
  - HTTPBearer: []
paths:
  /v1/account/keys:
    get:
      tags:
        - Account & Keys
      summary: List API Keys
      description: 'List all general API keys for the account. Requires scope: keys:read'
      operationId: list_keys_v1_account_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountKeysListResponse'
        '401':
          description: Unauthorized - Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests - Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AccountKeysListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AccountKeyItem'
          type: array
          title: Data
          description: A list of API keys.
      type: object
      required:
        - data
      title: AccountKeysListResponse
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AccountKeyItem:
      properties:
        api_key_id:
          type: integer
          title: Api Key Id
          description: The unique database ID of the API key.
        key:
          type: string
          title: Key
          description: The masked key value (e.g. rw-abc...xyz).
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
          description: A human-readable label for the key.
        daily_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Daily Limit
          description: The maximum requests/cost allowed per day.
        minute_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Minute Limit
          description: The maximum requests allowed per minute.
        balance:
          anyOf:
            - type: number
            - type: 'null'
          title: Balance
          description: Pre-allocated balance attached to the key.
        usage_today:
          anyOf:
            - type: number
            - type: 'null'
          title: Usage Today
          description: The amount spent/used today in USD.
        usage_minute:
          anyOf:
            - type: integer
            - type: 'null'
          title: Usage Minute
          description: The number of requests in the current minute.
        created_at:
          type: string
          title: Created At
          description: The creation timestamp.
        last_used_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Used At
          description: The last usage timestamp.
        use_subs_first:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Use Subs First
          description: Whether subscription quota is consumed first.
        fallback_to_payg:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Fallback To Payg
          description: Whether key falls back to PAYG credit.
      type: object
      required:
        - api_key_id
        - key
        - created_at
      title: AccountKeyItem
    ErrorDetail:
      properties:
        message:
          type: string
          title: Message
          description: A human-readable description of the error.
        type:
          type: string
          title: Type
          description: >-
            The type of error returned (e.g. invalid_request_error,
            rate_limit_error).
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: The parameter that caused the error, if applicable.
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            A short code identifier for the error type (e.g. invalid_request,
            rate_limit).
        status_code:
          type: integer
          title: Status Code
          description: The HTTP status code.
        id:
          type: string
          title: Id
          description: Unique error or trace ID associated with this request.
        tip:
          anyOf:
            - type: string
            - type: 'null'
          title: Tip
          description: An optional troubleshooting tip or resolution suggestion.
        docs:
          anyOf:
            - type: string
            - type: 'null'
          title: Docs
          description: Link to the documentation related to this error.
          default: https://docs.routeway.ai
        support:
          anyOf:
            - type: string
            - type: 'null'
          title: Support
          description: Link to support for further help.
          default: https://discord.gg/RjX2CpdPpd
        community:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Community
          description: Links to community resources like Discord and Twitter.
      type: object
      required:
        - message
        - type
        - status_code
        - id
      title: ErrorDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````