Skip to main content
POST
Issue an API key for a customer

Authorizations

Authorization
string
header
required

Your API key, e.g. sk_live_... or sk_test_....

Headers

Idempotency-Key
string

Optional. Makes this write safe to retry: the same key replays the first response instead of acting twice.

Maximum string length: 255

Path Parameters

customer
string
required

Customer public id, e.g. cus_....

Body

application/json
name
string
required
Maximum string length: 255
scopes
string[]

Response

Created.

id
string
name
string
prefix
string
scopes
string[]
plaintext
string

Shown once, at creation. Store it now.