Your masjid · Website and app
Your app's pages
The pages of your app, their id and title, and the popup each shows: set one, or none.
Right on the key: Website and app: read for a read, edit (secret key) for a write.
Your app's pages
GET/v1/masjid/app-pages
The pages of your app — their id, title and the popup each shows — newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). The id is what a push target.page and a popup button.page name. The page builder itself is not in the API. Needs Website and app: 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 app pages.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (6)
objectapp_pageAlways
app_page.idstringThe app page id, as a push target or a popup button names it.
titlestring | nullIts title.
popupstring | nullThe popup it shows; null for none.
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-pages" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"createdAt": "2026-12-01T10:00:00.000Z",
"id": "6af5c9e2bc095fbd2dc5735e",
"object": "app_page",
"popup": "apo_6af5c9e2bc095fbd2dc57360",
"title": "Home",
"updatedAt": "2026-12-01T10:00:00.000Z"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}Set or clear the popup an app page shows
PUT/v1/masjid/app-pages/{id}/popup
Sets the popup a page of your app shows (apo_ id), or none with null; nothing else of the page changes. A popup that is not one of your app's is a 400. Needs a secret key with Website and app: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
idstring · pathrequiredThe app page id.
Request body
popupstring | nullrequiredThe popup the page shows (
apo_), one of your app's; null for none.
Returns
The page, with its popup.
objectapp_pageAlways
app_page.idstringThe app page id, as a push target or a popup button names it.
titlestring | nullIts title.
popupstring | nullThe popup it shows; null for none.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PUT "https://hub.masjidbox.com/v1/masjid/app-pages/6af5c9e2bc095fbd2dc5735e/popup" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"popup":"apo_6af5c9e2bc095fbd2dc57360"}'{
"popup": "apo_6af5c9e2bc095fbd2dc57360"
}{
"createdAt": "2026-12-01T10:00:00.000Z",
"id": "6af5c9e2bc095fbd2dc5735e",
"object": "app_page",
"popup": "apo_6af5c9e2bc095fbd2dc57360",
"title": "Home",
"updatedAt": "2026-12-01T10:00:00.000Z"
}