Complete guide to using Push Notifications API
curl -X POST https://push_api.bigopenbox.co.uk/push \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"type": "topic",
"target": "all_users",
"title": "Hello World",
"body": "Your first notification!"
}'
All API requests require an API key in the header:
Send a push notification
{
"type": "topic|token",
"target": "topic_name or device_token",
"title": "Notification title",
"body": "Notification body",
"priority": "high|normal|low",
"scheduled_for": "2024-12-31T23:59:59Z"
}
Send multiple notifications (max 1000)
{
"notifications": [
{"type": "topic", "target": "news", "title": "...", "body": "..."},
{"type": "token", "target": "device_token", "title": "...", "body": "..."}
]
}
Get notification status
Cancel pending notification
Register a device
{
"device_token": "fcm_token",
"user_id": "user123",
"platform": "android|ios",
"device_model": "Pixel 7",
"os_version": "13"
}
Get notification statistics
Get delivery analytics by platform
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request |
| 401 | Unauthorized |
| 429 | Rate Limit Exceeded |
| 500 | Server Error |
npm install @pushapi/client
pip install pushapi
go get pushapi.com/sdk