/auth/api-keysCreate a new API Key, return the raw Key only once
Schema: dto.CreateApiKeyRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
name |
string |
Yes | |||
environment |
string |
No | enum: `live`, `test` | ||
expires_at |
string |
No | |||
scopes |
array of string |
No |
| Status | Description | Schema |
|---|---|---|
| 201 | Creation successful, returning raw Key (only once) |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
created_at |
string |
No | |||
environment |
string |
No | |||
expires_at |
string |
No | |||
id |
string |
No | |||
name |
string |
No | |||
raw_key |
string |
No | |||
scopes |
array of string |
No | |||
status |
string |
No |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
object |
No | |||
message |
string |
No |