Synq Docs
Management APIBrands

Preview a brand's theme

The brand's sign-in page with these settings on top of its theme, saving nothing: what the dashboard's editor shows. It renders whatever the plan allows or not, and `needs` names what saving it would need. Render `html` only in a sandboxed iframe (`srcdoc`, with neither `allow-scripts` nor `allow-same-origin`) under the returned `content_security_policy`, never inline. Needs `org.brands.view`.

POST/v1/orgs/{org}/brands/{brand}/theme/preview

The brand's sign-in page with these settings on top of its theme, saving nothing: what the dashboard's editor shows. It renders whatever the plan allows or not, and needs names what saving it would need. Render html only in a sandboxed iframe (srcdoc, with neither allow-scripts nor allow-same-origin) under the returned content_security_policy, never inline. Needs org.brands.view.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Path Parameters

org*string
brand*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/orgs/string/brands/string/theme/preview" \  -H "Content-Type: application/json" \  -d '{}'
{  "html": "string",  "content_security_policy": "string",  "needs": [    "string"  ]}