---
title: "Create Proxy Key"
method: POST
path: "/auth/proxy/create"
---

# Create Proxy Key

`POST /auth/proxy/create`

Create a new proxy key with specified permissions and limits

## Request body

- CreateProxyKeyRequest
  - `name` string, required — Name of the proxy key
  - `expires_at` integer, required — Expiration timestamp in seconds (-1 for no expiration)
  - `allocated_ammount` number, required — Allocated credit amount
  - `model_whitelist` string[] — List of allowed models (empty for all models)
  - `ip_whitelist` string[] — List of allowed IP addresses or CIDR blocks (empty for all IPs)

## Response `201`

Proxy key created successfully

- ProxyKey
  - `name` string, required — Name of the proxy key
  - `expires_at` integer, required — Expiration timestamp (-1 for no expiration)
  - `allocated_ammount` number, required — Allocated credit amount
  - `model_whitelist` string[] — List of allowed models
  - `ip_whitelist` string[] — List of allowed IP addresses or CIDR blocks
  - `used_ammount` number — Amount of credits used
  - `is_active` boolean — Whether the proxy key is active
  - `key` string — The proxy key value
  - `created_at` integer — Creation timestamp
  - `last_used` integer — Last usage timestamp

---

[API](https://skmtc.dev/electronhub/apis/electron-hub-api.md) · [All operations](https://skmtc.dev/electronhub/apis/electron-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/electronhub/electron-hub-api/revisions/727f9c51555b/schema)
