Your masjid · Notifications
Your app's scheduled pushes
The pushes your app sends once, to every device of the app, at the time you schedule them.
Right on the key: Notifications: read for a read, edit (secret key) for a write.
Your app's scheduled pushes
GET/v1/masjid/app-notifications/scheduled
The pushes of your app scheduled once, sent ones included, 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 scheduled pushes.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (14)
objectapp_notificationAlways
app_notification.idstringThe scheduled push id.
titlestringThe push title.
bodystring | nullThe push body.
enabledbooleanIt is sent.
hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens: a URL or a page of your app.
target.urlstring | nullThe URL the push opens.
target.pagestring | nullThe id of the app page the push opens.
scheduleTimestring | nullWhen it is sent (ISO-8601).
sentAtstring | nullWhen it was sent; null until then (ISO-8601).
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
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.
curl "https://hub.masjidbox.com/v1/masjid/app-notifications/scheduled" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"body": "Eid prayer at 8:00.",
"createdAt": "2026-12-01T10:00:00.000Z",
"enabled": true,
"hidden": false,
"id": "apn_6af5c9e2bc095fbd2dc5735c",
"object": "app_notification",
"scheduleTime": "2026-12-01T10:00:00.000Z",
"sendToOne": false,
"sentAt": null,
"target": {
"page": null,
"url": "https://example.org/eid"
},
"title": "Eid Mubarak",
"updatedAt": "2026-12-01T10:00:00.000Z"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your scheduled pushes
GET/v1/masjid/app-notifications/scheduled/{id}
A scheduled push of your app, and when it was sent. Needs Notifications: read.
Parameters
idstring · pathrequiredThe scheduled push id.
Returns
The scheduled push.
objectapp_notificationAlways
app_notification.idstringThe scheduled push id.
titlestringThe push title.
bodystring | nullThe push body.
enabledbooleanIt is sent.
hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens: a URL or a page of your app.
Show child attributes (2)
urlstring | nullThe URL the push opens.
pagestring | nullThe id of the app page the push opens.
scheduleTimestring | nullWhen it is sent (ISO-8601).
sentAtstring | nullWhen it was sent; null until then (ISO-8601).
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/app-notifications/scheduled/apn_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"body": "Eid prayer at 8:00.",
"createdAt": "2026-12-01T10:00:00.000Z",
"enabled": true,
"hidden": false,
"id": "apn_6af5c9e2bc095fbd2dc5735c",
"object": "app_notification",
"scheduleTime": "2026-12-01T10:00:00.000Z",
"sendToOne": false,
"sentAt": null,
"target": {
"page": null,
"url": "https://example.org/eid"
},
"title": "Eid Mubarak",
"updatedAt": "2026-12-01T10:00:00.000Z"
}Schedule a push of your app
POST/v1/masjid/app-notifications/scheduled
Schedules a push of your app, sent once to every device of the app at scheduleTime (within a minute when you leave it out). As in the dashboard, a restricted organization's push is sent within a minute without a target, whatever the body says. A push already sent cannot be recalled. 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 body.
enabledbooleanfalse: it is not sent.hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens; null clears a side.
Show child attributes (2)
urlstring | nullThe URL the push opens; null clears it.
pagestring | nullThe id of the app page the push opens; null clears it.
scheduleTimestringWhen it is sent, with its offset; left out at creation: within a minute.
Returns
The scheduled push, as stored.
objectapp_notificationAlways
app_notification.idstringThe scheduled push id.
titlestringThe push title.
bodystring | nullThe push body.
enabledbooleanIt is sent.
hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens: a URL or a page of your app.
Show child attributes (2)
urlstring | nullThe URL the push opens.
pagestring | nullThe id of the app page the push opens.
scheduleTimestring | nullWhen it is sent (ISO-8601).
sentAtstring | nullWhen it was sent; null until then (ISO-8601).
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X POST "https://hub.masjidbox.com/v1/masjid/app-notifications/scheduled" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"scheduleTime":"2026-12-01T10:00:00.000Z","title":"Eid Mubarak"}'{
"scheduleTime": "2026-12-01T10:00:00.000Z",
"title": "Eid Mubarak"
}{
"body": "Eid prayer at 8:00.",
"createdAt": "2026-12-01T10:00:00.000Z",
"enabled": true,
"hidden": false,
"id": "apn_6af5c9e2bc095fbd2dc5735c",
"object": "app_notification",
"scheduleTime": "2026-12-01T10:00:00.000Z",
"sendToOne": false,
"sentAt": null,
"target": {
"page": null,
"url": "https://example.org/eid"
},
"title": "Eid Mubarak",
"updatedAt": "2026-12-01T10:00:00.000Z"
}Change a scheduled push
PATCH/v1/masjid/app-notifications/scheduled/{id}
A merge: a field you leave out stays, nested ones (target, at) field by field. A new scheduleTime moves when it is sent; a push already sent stays sent. Needs a secret key with Notifications: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
idstring · pathrequiredThe scheduled push id.
Request body
titlestringThe push title.
bodystringThe push body.
enabledbooleanfalse: it is not sent.hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens; null clears a side.
Show child attributes (2)
urlstring | nullThe URL the push opens; null clears it.
pagestring | nullThe id of the app page the push opens; null clears it.
scheduleTimestringWhen it is sent, with its offset; left out at creation: within a minute.
Returns
The scheduled push after the change.
objectapp_notificationAlways
app_notification.idstringThe scheduled push id.
titlestringThe push title.
bodystring | nullThe push body.
enabledbooleanIt is sent.
hiddenbooleanHidden from the in-app list.
sendToOnebooleanSent to a single test device.
targetobjectWhere the push opens: a URL or a page of your app.
Show child attributes (2)
urlstring | nullThe URL the push opens.
pagestring | nullThe id of the app page the push opens.
scheduleTimestring | nullWhen it is sent (ISO-8601).
sentAtstring | nullWhen it was sent; null until then (ISO-8601).
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/app-notifications/scheduled/apn_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"scheduleTime":"2026-12-01T10:00:00.000Z"}'{
"scheduleTime": "2026-12-01T10:00:00.000Z"
}{
"body": "Eid prayer at 8:00.",
"createdAt": "2026-12-01T10:00:00.000Z",
"enabled": true,
"hidden": false,
"id": "apn_6af5c9e2bc095fbd2dc5735c",
"object": "app_notification",
"scheduleTime": "2026-12-01T10:00:00.000Z",
"sendToOne": false,
"sentAt": null,
"target": {
"page": null,
"url": "https://example.org/eid"
},
"title": "Eid Mubarak",
"updatedAt": "2026-12-01T10:00:00.000Z"
}Delete a scheduled push
DELETE/v1/masjid/app-notifications/scheduled/{id}
Deletes a scheduled push: not sent yet, it never is; already sent, it stays on the devices it reached. Needs a secret key with Notifications: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
idstring · pathrequiredThe scheduled push id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/app-notifications/scheduled/apn_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY"