api_keys
identity
customer-session

Create an API key

Changed on

Creates a named Live or Test key with explicit scopes and returns its secret. Requires api_keys_manage and an Idempotency-Key. Live keys also require a valid two-factor code; Test keys do not. Store the secret securely when it is returned.

post/identity/api_keys

Request

  • Base URL
    https://api.stablesea.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.stablesea.com/identity/api_keys
  • Auth
    none declared. Required headers: Idempotency-Key

Headers

Idempotency-Keystring required

Request body

environment'live' | 'test'
namestring required
scopesstring[] nullable
totp_codestring

Required for Live keys; omitted for Test keys

Response

OK

secretstring

Changes