Skip to main content
POST
Push a notification

Authorizations

Authorization
string
header
required

Pass your ego access token as a bearer token: Authorization: Bearer <token>. The token carries the scopes granted on the consent screen.

Body

application/json
title
string
required
Example:

"Backup complete"

body
string
required
Example:

"The nightly backup finished in 4m12s."

type
string
required

App-defined category for the notification.

Example:

"backup"

data
object

Optional structured payload carried with the notification.

Response

The notification was created.

id
string
required

Identifier of the created notification.

Example:

"k1799wxyz"