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.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/admin/notification/string" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "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, "translations": { "es": { "title": "Nueva publicacion", "body": "Toca para ver", "link_text": "Abrir" } } }'{ "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": 1719767000, "translations": { "es": { "title": "Nueva publicacion", "body": "Toca para ver", "link_text": "Abrir" } }, "style": null, "preset_id": null, "assignment": null}{ "detail": { "code": "notification_incomplete", "message": "To enable the notification, fill in all fields and upload an avatar." }}{ "detail": { "code": "domain_not_found", "message": "Domain 'onlydasha.com' is not registered" }}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.
Upload the notification avatar image
Uploads and processes the banner avatar (JPEG/PNG/WebP/AVIF) for the draft notification. Requires a write-scoped key.