Skip to main content
POST
Send web push notification (server-to-server)

Authorizations

X-API-KEY
string
header
required

Server-to-Server API Key for internal/lambda/cron calls

Body

application/json
template
string

Web notification template name

Example:

"web_push_deal"

replace_data
object

Key-value pairs to replace in the template

Example:
receiver
integer

Recipient user ID

Example:

1

deal_id
integer | null

Related deal/job ID (optional)

Example:

1

deliverable_id
integer | null

Related deliverable ID (optional)

Example:

1

Response

200 - application/json

Web notification sent

status
string
Example:

"success"

message
string
Example:

"Web notification sent successfully."