Apply a preset to domains
Stamps the preset into each target domain's draft banner (texts, files, preset_id and a single-preset assignment), materializes the preset's master files into each domain folder, and enables the banner only when the preset is complete (all texts, an avatar and — in the 'manual' link mode — the link). Drafts are re-baked; going live stays an explicit /publish. 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
Notification preset id.
Request Body
application/json
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/library/notifications/0/apply" \ -H "Content-Type: application/json" \ -d '{ "domains": [ "onlydasha.com" ] }'{ "id": 7, "creator_id": "dasha", "name": "July drop", "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, "avatar_filename": "avatar_9f2c1a7b3d4e5f60.webp", "sound_filename": null, "translations": null, "variants": null, "activity_source": null, "created_at": 1752537600, "updated_at": 1752537600}{ "detail": { "code": "no_domains", "message": "Pick at least one domain" }}{ "detail": { "code": "preset_not_found", "message": "Preset not found" }}Remove a preset avatar
Removes the preset's master avatar. Domains bound to the preset lose it too and their banners are disabled (a banner cannot render without an avatar). Enabled follows the preset's readiness, so re-uploading an avatar switches the bound domains back on automatically. Requires a write-scoped key.
Upload a background source image
Uploads the original (un-edited) background image for a domain and variant, stored as the draft source. Requires a write-scoped key.