Create an API key
Creates a delivery API key for the fragment endpoint. The full key is in this response only: store it right away; afterwards only its prefix is listed.
Not repeatable: every call creates a new key. Never retry blindly after a lost response — list the keys, revoke the one you never received, then create another.
Authorizations
A management token: ds_mgmt_ followed by 40 lowercase hexadecimal characters, created by an owner in Settings → Management tokens. Opaque: send it as is, in the Authorization header only.
Body
Send Content-Type: application/json and a JSON object of at most 262,144 bytes.
Optional. Trimmed; absent, empty or blank: no name. Names need not be unique.
Response
The key was created.
A delivery API key just created. This is the only response that ever holds the full key.
Stable key id (key_…).
The key name, or null.
The first 12 characters of the key: what the console and GET /v1/keys show from now on.
The full key: ds_live_ followed by 40 lowercase hexadecimal characters. Shown in this response only — store it now. It cannot be read again.
Creation time, UTC.
