TEASEDocs
API ReferencePages & Publish

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
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Query Parameters

domain*string

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

POST
/api/admin/bg/canvas-color
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"  }}