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

Masjid key · Website and app: read

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 · query

    Items per page, 1 to 100.

  • cursorstring · query

    The previous page's pagination.nextCursor; absent for the first page.

Returns

A page of app pages.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (6)
    • objectapp_page

      Always app_page.

    • idstring

      The app page id, as a push target or a popup button names it.

    • titlestring | null

      Its title.

    • popupstring | null

      The popup it shows; null for none.

    • createdAtstring | null

      When it was created (ISO-8601).

    • updatedAtstring | null

      When it last changed (ISO-8601).

  • paginationobject

    Where this page stands.

    Show child attributes (3)
    • limitinteger

      The page size asked for.

    • hasMoreboolean

      Whether another page follows: stop on false, never on a short page.

    • nextCursorstring | null

      The cursor of the next page; null on the last one.

GET /v1/masjid/app-pages
curl "https://hub.masjidbox.com/v1/masjid/app-pages" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidAppPagesPage
{
  "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

Masjid key · secret · Website and app: edit

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 · pathrequired

    The app page id.

Request body

  • popupstring | nullrequired

    The popup the page shows (apo_), one of your app's; null for none.

Returns

The page, with its popup.

  • objectapp_page

    Always app_page.

  • idstring

    The app page id, as a push target or a popup button names it.

  • titlestring | null

    Its title.

  • popupstring | null

    The popup it shows; null for none.

  • createdAtstring | null

    When it was created (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

PUT /v1/masjid/app-pages/{id}/popup
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"}'
Example request · MasjidAppPagePopup
{
  "popup": "apo_6af5c9e2bc095fbd2dc57360"
}
200 · MasjidAppPage
{
  "createdAt": "2026-12-01T10:00:00.000Z",
  "id": "6af5c9e2bc095fbd2dc5735e",
  "object": "app_page",
  "popup": "apo_6af5c9e2bc095fbd2dc57360",
  "title": "Home",
  "updatedAt": "2026-12-01T10:00:00.000Z"
}