Skip to main content
POST
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Corpo

application/json
name
string
obrigatório

How the key is labelled in the panel.

environment
enum<string>
obrigatório
Opções disponíveis:
live,
test

Resposta

Created. key is shown once.

id
string<uuid>
name
string
prefix
string
environment
enum<string>
Opções disponíveis:
live,
test
key
string

The plaintext key. Store it now; it is never shown again.