TEASEDocs
API ReferencePages & Publish

Publish draft changes live

Promotes the draft snapshot to the live published page. Optionally scope the publish to specific domains; omit the body to publish all domains with pending changes. 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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

POST
/api/admin/publish
curl -X POST "https://example.com/api/admin/publish" \  -H "Content-Type: application/json" \  -d '{    "domains": [      "onlydasha.com"    ]  }'
{  "ok": true,  "bg_files_by_domain": {    "onlydasha.com": {      "mobile": [        "bg-720.jpg",        "bg-1080.jpg"      ]    }  },  "domains": [    "onlydasha.com"  ]}
{  "detail": {    "code": "nothing_to_publish",    "message": "No changes to publish"  }}
{  "detail": {    "code": "domain_not_found",    "message": "Domain 'onlydasha.com' is not registered"  }}