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.

Parâmetros de caminho

id
string<uuid>
obrigatório

The environment's id.

Resposta

What the edge said.

The address your customers reach the hosted portal at.

connected is false for an environment that has none, which is a state a screen renders rather than a 404 — and custom_domain_available still answers, because a screen has to know whether the capability exists on the server before it offers the form.

Every status that is not verified names a different repair.

connected
boolean

Whether this environment has claimed a host. The fields below it are present only when true.

custom_domain_available
boolean

Whether the server can register a custom domain at all. False means connecting answers 501, whatever else is reported here.

host
string
Exemplo:

"accounts.example.com"

status
enum<string>

pending: nothing answers for this host yet — add the records in verification. misconfigured: something answers and it is not us — remove or replace it. verified: nothing to do. Only an explicit yes from the edge ever reaches verified.

Opções disponíveis:
pending,
misconfigured,
verified
status_detail
string

Why it is not verified, in the edge's own words. Empty on a verified domain. Never parse it.

verification
object[]

The DNS records to create. Stored as the edge described them rather than recomputed, because an apex takes an A record and a subdomain a CNAME — which one is not ours to decide.

last_checked_at
string<date-time> | null

When we last asked, whatever the answer — it moves even when the edge could not be reached, which is what separates "checked a minute ago" from "nobody has looked since Tuesday".

verified_at
string<date-time> | null

When it first answered yes. Kept through a later misconfigured: a domain that worked and stopped is a different problem from one that never worked.

created_at
string<date-time>