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

# Get Key



## OpenAPI

````yaml GET /keys/{id}
openapi: 3.1.0
info:
  title: Wardin API
  version: 1.0.0
  description: >-
    Wardin REST API — manage virtual keys, budgets, policies, and pull
    analytics.
  contact:
    name: Wardin Support
    url: https://wardin.ai
servers:
  - url: https://api.wardin.ai/v1
    description: Production
security:
  - BearerAuth: []
paths:
  /keys/{id}:
    get:
      tags:
        - Keys
      summary: Get a virtual key
      operationId: getKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualKey'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    VirtualKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        monthlyBudgetUsd:
          type: number
          nullable: true
        currentSpendUsd:
          type: number
        rpmLimit:
          type: integer
          nullable: true
        tpmLimit:
          type: integer
          nullable: true
        status:
          type: string
          enum:
            - active
            - paused
            - budget_exceeded
            - revoked
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
            code:
              type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: A `wardin_sk_` virtual key with manager-level access.

````