Skip to main content

Create an API key

POST 

/v1/api-keys

Returns the complete token once; it is never shown again and is stored only as a hash. This operation does not take Idempotency-Key: a retried create makes a second key, which the owner can revoke. Session-only: an API key cannot create a key.

Request​

Responses​

Created. The only response that carries token.

Response Headers
    X-Request-Id

    The request's id, to quote in support requests. Echoes the request's X-Request-Id when it was at most 200 bytes of visible ASCII; otherwise generated.

    Cache-Control

    no-store: the response carries a secret or a shared report.

    Location

    The path of the created resource (RFC 9110 §15.3.2).