> ## 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.

# Get API Key

> Get information about a specific API key. An API key can query about itself, or about other keys if it has manage read permissions.

Get information about a specific API key. Use `self` as the ID to query the calling API key. An API key can query about itself, or about other keys in the same organization if it has manage read permissions.


## OpenAPI

````yaml GET /v1/manage/apikey/{id}
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/{id}:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    get:
      summary: Get API key
      description: >-
        Get information about a specific API key. An API key can query about
        itself, or about other keys if it has manage read permissions.
      operationId: getApiKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: >-
            The UUID of the API key to retrieve, or 'self' to query the calling
            API key
      responses:
        '200':
          description: Successfully retrieved API key information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyInfoResponse'
        '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:
    ApiKeyInfoResponse:
      type: object
      required:
        - id
        - name
        - logging
        - monthly_spend
        - monthly_limit
        - permissions
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the API key
        name:
          type: string
          description: The name of the API key
        logging:
          type: boolean
          description: Whether logging is enabled for this API key
        monthly_spend:
          type: number
          format: decimal
          description: The amount spent by this API key in the current month
        monthly_limit:
          type: number
          format: decimal
          description: The monthly spending limit for this API key (0 means unlimited)
        permissions:
          type: object
          properties:
            manage:
              type: string
              enum:
                - none
                - read
                - write
              description: Permission level for management operations
            completions:
              type: string
              enum:
                - none
                - read
                - write
              description: Permission level for completions operations
          required:
            - manage
            - completions
        group:
          $ref: '#/components/schemas/APIKeyGroupInfo'
          description: Group information if the API key belongs to a group
    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.
    APIKeyGroupInfo:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the group
      required:
        - id
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````