Get the draft notification banner for a domain
Returns the editable push-style notification banner for the given domain, creating an empty draft on first access. Requires a read-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Path Parameters
Registered hostname, e.g. onlydasha.com.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/admin/notification/string"{ "domain": "onlydasha.com", "enabled": true, "avatar_filename": "avatar-9f2a.webp", "sound_filename": null, "title": "New post is live", "body": "Tap to see what you've been missing", "link_text": "Open", "target_url": "https://onlyfans.com/dasha", "link_mode": "", "delay_ms": 2500, "updated_at": 1719766800, "translations": { "es": { "title": "Nueva publicacion", "body": "Toca para ver", "link_text": "Abrir" } }, "style": null, "preset_id": null, "assignment": null}{ "detail": { "code": "domain_not_found", "message": "Domain 'onlydasha.com' is not registered" }}Get draft and published page state
Returns both the draft and currently-published snapshots for every domain you own, plus a dirty flag and the list of domains with unpublished edits. Requires a read-scoped key.
Edit the draft notification banner
Partially updates the draft notification banner. Only supplied fields change; omit a field to leave it untouched. Enabling the banner requires title, body, link_text and an uploaded avatar; target_url is additionally required only in the 'manual' link mode — in the default smart-link mode ('') a banner click mirrors the matched segment's primary button and needs no URL of its own. assignment binds the banner to library presets — the first enabled preset is stamped into the domain, and 2+ enabled presets run a creative A/B. Requires a write-scoped key.