Make an app
A web, SPA, native or machine app of the brand. A web or machine app's secret is in the response, this once; only its hash is kept. Needs `org.apps.edit`, and room under the org's plan (403 `plan_quota_exceeded`, naming the plan that has room in `required_plan`; apps that registered themselves don't count). Recorded as `app.created`.
/v1/orgs/{org}/brands/{brand}/appsA web, SPA, native or machine app of the brand. A web or machine app's secret is in the response, this once; only its hash is kept. Needs org.apps.edit, and room under the org's plan (403 plan_quota_exceeded, naming the plan that has room in required_plan; apps that registered themselves don't count). Recorded as app.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
curl -X POST "https://example.com/v1/orgs/string/brands/string/apps" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "app_type": "web" }'{ "id": "string", "brand_id": "string", "name": "string", "app_type": "web", "source": "dashboard", "first_party": true, "own_ui_sign_in": true, "sign_in_methods": [ "string" ], "test_sign_ins": true, "disabled": true, "redirect_uris": [ "string" ], "post_logout_redirect_uris": [ "string" ], "backchannel_logout_uri": "string", "backchannel_logout_session_required": true, "client_uri": "string", "logo_uri": "string", "policy_uri": "string", "tos_uri": "string", "initiate_login_uri": "string", "jwks_uri": "string", "token_endpoint_auth_method": "string", "pkce_optional": true, "spa_refresh_tokens": true, "refresh_token_reuse_window_seconds": 0, "previous_secret_expires_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "warnings": [ { "code": "string", "message": "string" } ], "client_secret": "string"}Rotate an app's secret POST
A new secret, in the response this once. The current one keeps working for `overlap_seconds`, so the app can be redeployed with the new one first. Needs `org.apps.edit`. Recorded as `app.secret_rotated`.
Remove a brand's custom domain DELETE
It stops answering at once, and Synq takes it out of Cloudflare: every app that signs in with its issuer stops working, while the brand's own issuer goes on. Once it has served, the hostname is kept from other brands for 30 days. Needs `org.brands.edit`, on any plan. Recorded as `brand.custom_domain_removed`.