ApiKeyEndpointModule

Returns the raw API key exactly once. Store it securely before discarding this response; it cannot be retrieved later.

post/api/v1/account/api-keys

Request

  • The document declares no server URL.
  • Auth: API key in cookie __Host-template.session

Headers

X-CSRF-TOKENstring required

Request token returned by GET /api/v1/auth/csrf.

Request body

namestring required

Trimmed before use; the result must contain 1 to 32 Unicode scalars and no control characters.

presetIdsstring[] required

Nonempty closed preset selection expanded server-side into canonical scopes; clients never submit raw scopes.

expiresIn'never' | '7d' | '30d' | '90d' | '365d' required

Closed expiry duration applied from successful creation; never has no expiry.

rateLimitEnabledboolean required
rateLimitMaxinteger required
rateLimitWindow'1m' | '1h' | '1d' required

Closed fixed-window duration.

Response

Created

Changes