Mint a new API key for the authenticated user

Mints an Overledger-issued API key. The response carries the raw key ONCE in the apiKey field — it is unrecoverable afterwards. This route accepts header-token auth only (a URL/header API key can never mint, list, or revoke keys).

Body Params
string
required
length between 1 and 100

Human-readable name for the key, e.g. "CI key".

scopes
array of objects
length ≤ 10
Defaults to rpc

Scopes to grant. Defaults to ["rpc"] when omitted.

scopes

A capability granted to an API key. Currently only rpc (full JSON-RPC access).

date-time

Optional ISO-8601 expiry. Must be in the future; absent = no expiry.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json