Make a brand
A new user pool with its own issuer. The org's own apps at sign-in providers sign it in too, so each must register its callback: `warnings` says so (`org_provider_apps_need_redirect_uri`), naming each. Needs `org.brands.edit`, and room under the org's plan (403 `plan_quota_exceeded`, naming the plan that has room in `required_plan`). A brand deleted in the last 30 days still takes its place: its issuer slug is held until it's purged. Recorded as `brand.created`.
/v1/orgs/{org}/brandsA new user pool with its own issuer. The org's own apps at sign-in providers sign it in too, so each must register its callback: warnings says so (org_provider_apps_need_redirect_uri), naming each. Needs org.brands.edit, and room under the org's plan (403 plan_quota_exceeded, naming the plan that has room in required_plan). A brand deleted in the last 30 days still takes its place: its issuer slug is held until it's purged. Recorded as brand.created.
Authorization
bearer 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
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
application/problem+json
curl -X POST "https://example.com/v1/orgs/string/brands" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "issuer_slug": "string" }'{ "id": "string", "org_id": "string", "issuer_slug": "string", "issuer": "string", "custom_domain_issuer": "string", "name": "string", "is_default": true, "sign_up_enabled": true, "sign_in_cancels_deletion": true, "breached_password_check": true, "show_last_used": true, "built_in_methods": { "email": true, "password": true, "passkey": true, "wallet": true }, "logo_url": "string", "primary_color": "string", "background_color": "string", "support_email": "string", "privacy_policy_url": "string", "terms_of_service_url": "string", "created_at": "2019-08-24T14:15:22Z", "warnings": [ { "code": "string", "message": "string" } ]}Preview a brand's theme POST
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`.
Read a change request GET
Its target, the change and whether it was approved. Needs `org.apps.view`.