Discard draft changes
Reverts the draft snapshot back to the currently-published state, throwing away unpublished edits. Optionally scope to specific domains; omit the body to discard all. Requires a write-scoped key.
Authorization
bearerAuth 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
curl -X POST "https://example.com/api/admin/discard" \ -H "Content-Type: application/json" \ -d '{ "domains": [ "onlydasha.com" ] }'{ "ok": true, "domains": [ "onlydasha.com" ]}{ "detail": { "code": "domain_not_found", "message": "Domain 'onlydasha.com' is not registered" }}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.
List smart links
Lists all registered smart links (one paid slot, one free-trial slot) with resolved metrics, conversion rollup, and ARPS. Ordered by offer then creation time. Requires a read-scoped key.