renza

API reference / API keys

Create an API key

POST/v1/api_keys

Mints a livemode secret key for the active org. The full `secret` is returned exactly once in this response and cannot be retrieved later — store it now.

Requires an API key (bearer), scoped to the active org. Supports idempotency keys.

Body parameters

  • namestringrequiredmax 120 chars
  • scopesarray of stringoptional
  • servicebooleanoptional

    Mint a SERVICE key (a machine identity, no acting user). Default is a USER key that acts as the caller — its actions are authored as you (09 §3).

  • metadataobjectoptional

    Arbitrary key/value map; merge-on-write (§6).

Returns

  • 201The created key, including its one-time secret.

Failures use the standard error envelope with a closed set of codes.