TEASEDocs
API ReferencePages & Publish

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
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

domain*string

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

POST
/api/admin/notification/{domain}/avatar
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"  }}