Set the desktop canvas color
Sets the per-domain solid backdrop color shown behind the phone-card on desktop, written to the draft state. Requires a write-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Query Parameters
Registered hostname, e.g. onlydasha.com.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/admin/bg/canvas-color?domain=string" \ -H "Content-Type: application/json" \ -d '{ "color": "#0d0604" }'{ "domain": "onlydasha.com", "canvas_color": "#0d0604", "changed": true}{ "detail": { "code": "canvas_color_invalid", "message": "Color must be in #rrggbb format" }}{ "detail": { "code": "domain_not_found", "message": "Domain 'onlydasha.com' is not registered" }}Apply background edits and regenerate variants
Applies the client-side image-editor design state to the uploaded source and regenerates the responsive draft background variants. Requires a write-scoped key.
Set button appearance, profile card & 18+ gate
Sets the landing-wide UI style for a domain, written to the draft state: the button appearance (buttons), the profile-card look (profile), and the optional 18+ sensitive-content gate (gate). Applies only while the domain uses a built-in (platform) design — an uploaded custom-HTML design owns its own look and never inherits these settings. Each section object replaces the stored section wholesale; null resets that section to the stock look. Unknown keys are rejected. Changing buttons.font re-renders every draft button label of the domain server-side (the response reports the count as relabeled). Requires a write-scoped key.