Your masjid · Notifications
Your One notifications
The push notifications the Masjidbox One app sends for your masjids: to their followers and to the devices nearby, once.
Right on the key: Notifications: read for a read, edit (secret key) for a write.
Your One notifications
GET/v1/masjid/notifications
The One push notifications sent for your masjids, newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). Needs Notifications: read.
Parameters
limitinteger · queryItems per page, 1 to 100.
cursorstring · queryThe previous page's
pagination.nextCursor; absent for the first page.
Returns
A page of notifications.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (14)
objectnotificationAlways
notification.idstringThe notification id.
masjidstring | nullThe masjid it was sent for; null when that masjid is gone.
titlestringThe push title.
bodystring | nullThe push text.
targetstring | nullWhere a tap leads (a URL); null or empty: the masjid page in One.
createdAtstringWhen it was sent (ISO-8601).
deliveryobjectThe devices reached, per wave; zero until the send completes.
delivery.followersobjectThe masjid's followers reached.
delivery.followers.iosintegeriOS devices reached.
delivery.followers.androidintegerAndroid devices reached.
delivery.nearbyobjectDevices within 3 km of the masjid reached.
delivery.nearby.iosintegeriOS devices reached.
delivery.nearby.androidintegerAndroid devices reached.
paginationobjectWhere this page stands.
Show child attributes (3)
limitintegerThe page size asked for.
hasMorebooleanWhether another page follows: stop on false, never on a short page.
nextCursorstring | nullThe
cursorof the next page; null on the last one.
Errors
curl "https://hub.masjidbox.com/v1/masjid/notifications" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"body": "Iftar at 18:02.",
"createdAt": "2026-11-12T08:00:00.000Z",
"delivery": {
"followers": {
"android": 20,
"ios": 10
},
"nearby": {
"android": 3,
"ios": 1
}
},
"id": "ntf_6af5c9e2bc095fbd2dc5735d",
"masjid": "msj_o5urjd3hd5",
"object": "notification",
"target": null,
"title": "Iftar tonight"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your notifications
GET/v1/masjid/notifications/{id}
A One push notification sent for one of your masjids, with the devices it reached. Needs Notifications: read.
Parameters
idstring · pathrequiredThe notification id.
Returns
The notification.
objectnotificationAlways
notification.idstringThe notification id.
masjidstring | nullThe masjid it was sent for; null when that masjid is gone.
titlestringThe push title.
bodystring | nullThe push text.
targetstring | nullWhere a tap leads (a URL); null or empty: the masjid page in One.
createdAtstringWhen it was sent (ISO-8601).
deliveryobjectThe devices reached, per wave; zero until the send completes.
Show child attributes (6)
followersobjectThe masjid's followers reached.
followers.iosintegeriOS devices reached.
followers.androidintegerAndroid devices reached.
nearbyobjectDevices within 3 km of the masjid reached.
nearby.iosintegeriOS devices reached.
nearby.androidintegerAndroid devices reached.
Errors
curl "https://hub.masjidbox.com/v1/masjid/notifications/ntf_6af5c9e2bc095fbd2dc5735d" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"body": "Iftar at 18:02.",
"createdAt": "2026-11-12T08:00:00.000Z",
"delivery": {
"followers": {
"android": 20,
"ios": 10
},
"nearby": {
"android": 3,
"ios": 1
}
},
"id": "ntf_6af5c9e2bc095fbd2dc5735d",
"masjid": "msj_o5urjd3hd5",
"object": "notification",
"target": null,
"title": "Iftar tonight"
}Send a One notification
POST/v1/masjid/notifications
Sends a One push notification now, once, to the masjid's followers and to the devices nearby. It cannot be edited afterwards. masjid may be left out when your organization has only one masjid. Needs a secret key with Notifications: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
titlestringrequiredThe push title.
bodystringThe push text.
targetanyWhere a tap leads: an https URL; empty or left out, the masjid page in One.
masjidstringThe masjid it is sent for; may be left out when your organization has only one.
Returns
The notification, as sent.
objectnotificationAlways
notification.idstringThe notification id.
masjidstring | nullThe masjid it was sent for; null when that masjid is gone.
titlestringThe push title.
bodystring | nullThe push text.
targetstring | nullWhere a tap leads (a URL); null or empty: the masjid page in One.
createdAtstringWhen it was sent (ISO-8601).
deliveryobjectThe devices reached, per wave; zero until the send completes.
Show child attributes (6)
followersobjectThe masjid's followers reached.
followers.iosintegeriOS devices reached.
followers.androidintegerAndroid devices reached.
nearbyobjectDevices within 3 km of the masjid reached.
nearby.iosintegeriOS devices reached.
nearby.androidintegerAndroid devices reached.
Errors
curl -X POST "https://hub.masjidbox.com/v1/masjid/notifications" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Iftar at 18:02.","title":"Iftar tonight"}'{
"body": "Iftar at 18:02.",
"title": "Iftar tonight"
}{
"body": "Iftar at 18:02.",
"createdAt": "2026-11-12T08:00:00.000Z",
"delivery": {
"followers": {
"android": 20,
"ios": 10
},
"nearby": {
"android": 3,
"ios": 1
}
},
"id": "ntf_6af5c9e2bc095fbd2dc5735d",
"masjid": "msj_o5urjd3hd5",
"object": "notification",
"target": null,
"title": "Iftar tonight"
}Delete one of your notifications
DELETE/v1/masjid/notifications/{id}
Removes a notification from your list. A push already sent stays on the devices it reached. Needs a secret key with Notifications: edit. Counts against the write quota.
Parameters
idstring · pathrequiredThe notification id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/notifications/ntf_6af5c9e2bc095fbd2dc5735d" \
-H "Authorization: Bearer $MASJIDBOX_KEY"