Create in-app notification

POST/v1/admin/notifications/in-app

Create an active HTML in-app notification shown to all authenticated users.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
None.
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
idstringNoOptional stable notification ID. Auto-generated when omitted.
htmlstringYesHTML string beginning with a div element.
expiresAtstringNo
metadataobjectNoFree-form metadata object.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201In-app notification createdapplication/json
FieldTypeRequiredDescription
notificationobjectNo
notification.idstringNoUnique identifier.
notification.htmlstringNoSanitizable HTML div content for the notification body.
notification.createdAtstringNoISO 8601 timestamp.
notification.createdBystringNo
notification.expiresAtstringNo
notification.metadataobjectNoFree-form metadata object.
Create in-app notification
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow