Skip to main content
GET
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

The environment's id.

Response

The stored branding.

How one environment's screens look. Per environment on purpose: a palette can be tried in test while the live one stays untouched.

logo_url
string

An absolute http(s) URL, or empty. It ends up in an <img src> on a page your customers read, which is why nothing else is accepted.

tokens
object

The design tokens the drop-in components render with, one set per theme. Both themes are always present in a response, even empty — an empty set is the honest spelling of "your own defaults", and a client that had to handle dark being absent would be a client whose dark palette works depending on whether anybody ever set one.

The keys are exactly the ones appearance.variables takes in @userkit/react, so a token set in the panel and one passed as a prop name the same thing. A key outside this list is refused by name.

custom_css
string

Your own stylesheet. Present on this staff read so the editor can show what you wrote, and served to a browser only over a custom domain you have verified.