Create embed session
Creates a short-lived embed session token (JWT) to mount the chat (surface:“chat”) or connect (surface:“connect”) microfrontend on your own site via the @pilot-status/embed SDK. allowedOrigins (1–20 exact origins) restricts where the iframe may run; brandingOverride applies per-session branding; ttlSeconds controls validity (chat 15min, connect 30min, max 60min). Works with a number- or tenant-scoped key — a number-scoped key can only embed its own number. Refresh via POST /api/public/embed/refresh.
Authorizations
Your ps_ API key
Body
Microfrontend to embed.
"chat"
Exact origins (scheme://host[:port]) where the iframe may run.
"[\"https://app.tenant.com\"]"
Numbers to expose in chat (required for a tenant key on surface:chat).
"[\"num_01HZX...\"]"
Per-session branding (logo/colors/title) overriding the tenant branding.
Token validity in seconds (default 900 chat / 1800 connect).
"900"
Response
Create chat session