API Documentation
REST API reference with examples, authentication and rate limits.
POST
/notificationsSend a notification
Triggers a notification for one or more recipients across the requested channels. Returns immediately with a queued notification.
Base URL:
Parameters
Example request (cURL)
curl -X POST "/notifications" \
-H "Authorization: Bearer $BAAP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"application": "HRMS",
"event": "leave.approved",
"recipients": [
"usr_1024"
],
"channels": [
"email",
"inApp"
],
"templateId": "tpl_leave_approval",
"variables": {
"name": "Asha",
"days": 3
},
"priority": "normal"
}'Example response
{
"id": "ntf_9001",
"status": "queued",
"channels": [
"email",
"inApp"
],
"credits": 2,
"createdAt": "2026-11-20T09:30:00Z"
}Authentication
Authenticate every request with an API key sent as a Bearer token. Use bn_test_ keys against the sandbox and bn_live_ keys in production. Never expose keys in client-side code.
Request headers
Authorization: Bearer bn_live_xxxxxxxxxxxxxxxx
X-Application: HRMSRate limits
Requests are limited per API key (default 600 requests per minute). Exceeding the limit returns HTTP 429; back off and retry after the indicated delay.
- X-RateLimit-LimitRequests allowed per window
- X-RateLimit-RemainingRequests left in the window
- Retry-AfterSeconds to wait after a 429