POST
/api/v2/admin/vouchers/api-keysPOST /api/v2/admin/vouchers/api-keys
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| companyId (query) | unknown | No | |
| Idempotency-Key (header) | string | No |
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| Name | string | Yes | |
| Scopes | array of string | No | |
| AllowedIps | array of string | No | |
| ExpiresAt | string (date-time) | No |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| Id | string (uuid) | Yes | |
| Name | string | Yes | |
| Key | string | Yes | |
| Scopes | array of string | Yes | |
| ExpiresAt | string (date-time) | Yes | |
| Replayed | boolean | No |
Example request
curl -X POST "https://{base_url}/api/v2/admin/vouchers/api-keys" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"Name":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.