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

# List Proxy Keys

> Retrieve all proxy keys for the authenticated user

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.electronhub.ai/v1/auth/proxy \
    -H "Authorization: Bearer $ELECTRONHUB_API_KEY"
  ```

  ```python Python theme={null}
  import httpx

  client = httpx.Client()
  response = client.get(
      "https://api.electronhub.ai/v1/auth/proxy",
      headers={
          "Authorization": f"Bearer {api_key}"
      }
  )

  proxy_keys = response.json()
  print(f"Found {len(proxy_keys)} proxy keys")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.electronhub.ai/v1/auth/proxy', {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${process.env.ELECTRONHUB_API_KEY}`,
    },
  });

  const proxyKeys = await response.json();
  console.log(`Found ${proxyKeys.length} proxy keys`);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  [
    {
      "name": "Production API Key",
      "key": "ek-proxy-1234567890abcdef",
      "expires_at": 1735689600,
      "allocated_ammount": 100.0,
      "used_ammount": 25.5,
      "is_active": true,
      "model_whitelist": ["gpt-4o", "claude-3-5-sonnet-20241022"],
      "ip_whitelist": ["192.168.1.0/24"],
      "created_at": 1704067200,
      "last_used": 1704153600
    },
    {
      "name": "Development Key",
      "key": "ek-proxy-abcdef1234567890",
      "expires_at": -1,
      "allocated_ammount": 10.0,
      "used_ammount": 2.1,
      "is_active": true,
      "model_whitelist": [],
      "ip_whitelist": [],
      "created_at": 1704067200,
      "last_used": 1704139200
    }
  ]
  ```
</ResponseExample>


## OpenAPI

````yaml GET /auth/proxy
openapi: 3.0.1
info:
  title: Electron Hub API
  description: >-
    Unified API platform integrating 200+ AI models for chat, image generation,
    speech-to-text, embeddings, and more.
  version: 1.0.0
  contact:
    name: Electron Hub Support
    email: support@electronhub.ai
    url: https://discord.com/invite/electronhub
  license:
    name: MIT
servers:
  - url: https://api.electronhub.ai/v1
    description: Production API v1
security:
  - bearerAuth: []
paths:
  /auth/proxy:
    get:
      summary: List Proxy Keys
      description: Get all proxy keys for the authenticated user
      operationId: listProxyKeys
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProxyKey'
components:
  schemas:
    ProxyKey:
      type: object
      required:
        - name
        - expires_at
        - allocated_ammount
      properties:
        name:
          type: string
          description: Name of the proxy key
          maxLength: 25
        expires_at:
          type: integer
          description: Expiration timestamp (-1 for no expiration)
        allocated_ammount:
          type: number
          description: Allocated credit amount
          minimum: 0
        model_whitelist:
          type: array
          items:
            type: string
          description: List of allowed models
          default: []
        ip_whitelist:
          type: array
          items:
            type: string
          description: List of allowed IP addresses or CIDR blocks
          default: []
        used_ammount:
          type: number
          description: Amount of credits used
          readOnly: true
        is_active:
          type: boolean
          description: Whether the proxy key is active
          readOnly: true
        key:
          type: string
          description: The proxy key value
          readOnly: true
        created_at:
          type: integer
          description: Creation timestamp
          readOnly: true
        last_used:
          type: integer
          description: Last usage timestamp
          readOnly: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API key (starts with 'ek-')

````