Upload the notification avatar image
Uploads and processes the banner avatar (JPEG/PNG/WebP/AVIF) for the draft notification. 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
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/admin/notification/string/avatar" \ -F file="string"{ "filename": "avatar-9f2a.webp"}{ "detail": { "code": "avatar_type", "message": "Only images are allowed (JPEG, PNG, WebP, AVIF)." }}{ "detail": { "code": "domain_not_found", "message": "Domain 'onlydasha.com' is not registered" }}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.
Remove the notification avatar
Removes the avatar from the draft notification and disables the banner (a banner cannot be enabled without an avatar). Requires a write-scoped key.