Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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.

Headers

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.

Path Parameters

id
string<uuid>
required

Query Parameters

environment
enum<string>
default:live

Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key.

Available options:
live,
test

Response

The session.

token
string

A uk_ct_… contact session token. Treat it as the credential it is: it should reach a browser through something that cannot be read back — a fragment exchanged immediately for an httpOnly cookie — never a query string, which lands in history and in the next page's Referer.

expires_at
string<date-time>

Fifteen minutes out. There is no refresh: when this passes, the session is gone.

portal_url
string

Where the token is meant to be spent, with the environment's publishable key already on it so the page can tell whose product it is drawing. The token is deliberately not in this URL.