Get an embed token for a custom view

⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet. Mints a short-lived, customer-scoped token for embedding a published custom view. Call this from your server with your API key, then pass the returned token to the embed SDK. Organization-scoped views cannot be embedded per-customer — this returns a 400 (`ORG_SCOPED_VIEW_NOT_EMBEDDABLE`) for one.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

displayIdstringRequired

Query parameters

customerIdstringRequired>=1 character

The customer to scope the view to: external id, Paid display id (cus_…), or internal id.

ttlSecondsintegerOptional

Token lifetime in seconds (capped at 3600).

Response

200
tokenstring

Short-lived signed token to pass to the embed SDK.

expiresAtdatetime

When the token expires (ISO 8601).

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error