> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeplo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# POST Create Notification

> Create a new notification.

## Create notification

`POST /api/notifications`

Create a notification for a user.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

### Body parameters

**userId** `integer` *required*

Target user ID.

**type** `string` *required*

Notification type: `system`, `message`, `campaign`, `payment`.

**title** `string` *required*

Notification title.

**message** `string` *required*

Notification body.

**actionUrl** `string`

URL to navigate on click.

***

## Send notification

`POST /api/notifications/:id/send`

Send a previously created notification to the user.

```bash cURL theme={null}
curl -X POST https://zeplo.ai/api/notifications/1/send \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.