Your masjid · Notifications

Your app's recurring pushes

The pushes your app sends again and again, daily, weekly or monthly, at a local time in the time zone you name.

Right on the key: Notifications: read for a read, edit (secret key) for a write.

Your app's recurring pushes

Masjid key · Notifications: read

GET/v1/masjid/app-notifications/recurring

The pushes your app sends again and again (daily, weekly, monthly), newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). Needs Notifications: 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 recurring pushes.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (18)
    • objectapp_recurring_notification

      Always app_recurring_notification.

    • idstring

      The recurring push id.

    • titlestring

      The push title.

    • bodystring | null

      The push body.

    • enabledboolean

      It is sent.

    • hiddenboolean

      Hidden from the in-app list.

    • sendToOneboolean

      Sent to a single test device.

    • targetobject

      Where the push opens: a URL or a page of your app.

    • target.urlstring | null

      The URL the push opens.

    • target.pagestring | null

      The id of the app page the push opens.

    • frequencydaily | weekly | monthly | null

      How often it is sent.

    • atobject

      When it is sent: at time in timezone.

    • at.timezonestring | null

      The IANA time zone of time.

    • at.daysstring[]

      The weekdays of a weekly push.

    • at.dayOfMonthnumber | null

      The day of a monthly push; past the month's last day, it is sent on the last day.

    • at.timestring | null

      The local time it is sent, HH:MM.

    • 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-notifications/recurring
curl "https://hub.masjidbox.com/v1/masjid/app-notifications/recurring" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidAppRecurringNotificationsPage
{
  "data": [
    {
      "at": {
        "dayOfMonth": null,
        "days": [
          "friday"
        ],
        "time": "11:30",
        "timezone": "Europe/London"
      },
      "body": "Jumu'ah at 13:15.",
      "createdAt": "2026-12-01T10:00:00.000Z",
      "enabled": true,
      "frequency": "weekly",
      "hidden": false,
      "id": "arn_6af5c9e2bc095fbd2dc5735d",
      "object": "app_recurring_notification",
      "sendToOne": false,
      "target": {
        "page": null,
        "url": null
      },
      "title": "Jumu'ah reminder",
      "updatedAt": "2026-12-01T10:00:00.000Z"
    }
  ],
  "object": "list",
  "pagination": {
    "hasMore": false,
    "limit": 25,
    "nextCursor": null
  }
}

One of your recurring pushes

Masjid key · Notifications: read

GET/v1/masjid/app-notifications/recurring/{id}

A recurring push of your app, and when it is sent. Needs Notifications: read.

Parameters

  • idstring · pathrequired

    The recurring push id.

Returns

The recurring push.

  • objectapp_recurring_notification

    Always app_recurring_notification.

  • idstring

    The recurring push id.

  • titlestring

    The push title.

  • bodystring | null

    The push body.

  • enabledboolean

    It is sent.

  • hiddenboolean

    Hidden from the in-app list.

  • sendToOneboolean

    Sent to a single test device.

  • targetobject

    Where the push opens: a URL or a page of your app.

    Show child attributes (2)
    • urlstring | null

      The URL the push opens.

    • pagestring | null

      The id of the app page the push opens.

  • frequencydaily | weekly | monthly | null

    How often it is sent.

  • atobject

    When it is sent: at time in timezone.

    Show child attributes (4)
    • timezonestring | null

      The IANA time zone of time.

    • daysstring[]

      The weekdays of a weekly push.

    • dayOfMonthnumber | null

      The day of a monthly push; past the month's last day, it is sent on the last day.

    • timestring | null

      The local time it is sent, HH:MM.

  • createdAtstring | null

    When it was created (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

GET /v1/masjid/app-notifications/recurring/{id}
curl "https://hub.masjidbox.com/v1/masjid/app-notifications/recurring/arn_6af5c9e2bc095fbd2dc5735d" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidAppRecurringNotification
{
  "at": {
    "dayOfMonth": null,
    "days": [
      "friday"
    ],
    "time": "11:30",
    "timezone": "Europe/London"
  },
  "body": "Jumu'ah at 13:15.",
  "createdAt": "2026-12-01T10:00:00.000Z",
  "enabled": true,
  "frequency": "weekly",
  "hidden": false,
  "id": "arn_6af5c9e2bc095fbd2dc5735d",
  "object": "app_recurring_notification",
  "sendToOne": false,
  "target": {
    "page": null,
    "url": null
  },
  "title": "Jumu'ah reminder",
  "updatedAt": "2026-12-01T10:00:00.000Z"
}

Create a recurring push of your app

Masjid key · secret · Notifications: edit

POST/v1/masjid/app-notifications/recurring

Creates a push sent to every device of the app, daily, weekly (on at.days) or monthly (on at.dayOfMonth, the last day of a shorter month), at at.time in at.timezone (an IANA zone, else 400). 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

  • titlestringrequired

    The push title.

  • bodystring

    The push body.

  • enabledboolean

    false: it is not sent.

  • hiddenboolean

    Hidden from the in-app list.

  • sendToOneboolean

    Sent to a single test device.

  • targetobject

    Where the push opens; null clears a side.

    Show child attributes (2)
    • urlstring | null

      The URL the push opens; null clears it.

    • pagestring | null

      The id of the app page the push opens; null clears it.

  • frequencydaily | weekly | monthlyrequired

    How often it is sent.

  • atobjectrequired

    When it is sent: days for a weekly push, dayOfMonth for a monthly one.

    Show child attributes (4)
    • timezonestringrequired

      The IANA time zone of time.

    • daysstring[]

      The weekdays of a weekly push.

    • dayOfMonthinteger

      The day of a monthly push, 1 to 31; past the month's last day, it is sent on the last day.

    • timestring · HH:mmrequired

      The local time it is sent, HH:MM.

Returns

The recurring push, as stored.

  • objectapp_recurring_notification

    Always app_recurring_notification.

  • idstring

    The recurring push id.

  • titlestring

    The push title.

  • bodystring | null

    The push body.

  • enabledboolean

    It is sent.

  • hiddenboolean

    Hidden from the in-app list.

  • sendToOneboolean

    Sent to a single test device.

  • targetobject

    Where the push opens: a URL or a page of your app.

    Show child attributes (2)
    • urlstring | null

      The URL the push opens.

    • pagestring | null

      The id of the app page the push opens.

  • frequencydaily | weekly | monthly | null

    How often it is sent.

  • atobject

    When it is sent: at time in timezone.

    Show child attributes (4)
    • timezonestring | null

      The IANA time zone of time.

    • daysstring[]

      The weekdays of a weekly push.

    • dayOfMonthnumber | null

      The day of a monthly push; past the month's last day, it is sent on the last day.

    • timestring | null

      The local time it is sent, HH:MM.

  • createdAtstring | null

    When it was created (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

POST /v1/masjid/app-notifications/recurring
curl -X POST "https://hub.masjidbox.com/v1/masjid/app-notifications/recurring" \
  -H "Authorization: Bearer $MASJIDBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"at":{"days":["friday"],"time":"11:30","timezone":"Europe/London"},"frequency":"weekly","title":"Jumu'ah reminder"}'
Example request · MasjidAppRecurringNotificationCreate
{
  "at": {
    "days": [
      "friday"
    ],
    "time": "11:30",
    "timezone": "Europe/London"
  },
  "frequency": "weekly",
  "title": "Jumu'ah reminder"
}
201 · MasjidAppRecurringNotification
{
  "at": {
    "dayOfMonth": null,
    "days": [
      "friday"
    ],
    "time": "11:30",
    "timezone": "Europe/London"
  },
  "body": "Jumu'ah at 13:15.",
  "createdAt": "2026-12-01T10:00:00.000Z",
  "enabled": true,
  "frequency": "weekly",
  "hidden": false,
  "id": "arn_6af5c9e2bc095fbd2dc5735d",
  "object": "app_recurring_notification",
  "sendToOne": false,
  "target": {
    "page": null,
    "url": null
  },
  "title": "Jumu'ah reminder",
  "updatedAt": "2026-12-01T10:00:00.000Z"
}

Change a recurring push

Masjid key · secret · Notifications: edit

PATCH/v1/masjid/app-notifications/recurring/{id}

A merge: a field you leave out stays, nested ones (target, at) field by field. The next push is sent at the new at.time in at.timezone. Needs a secret key with Notifications: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.

Parameters

  • idstring · pathrequired

    The recurring push id.

Request body

  • titlestring

    The push title.

  • bodystring

    The push body.

  • enabledboolean

    false: it is not sent.

  • hiddenboolean

    Hidden from the in-app list.

  • sendToOneboolean

    Sent to a single test device.

  • targetobject

    Where the push opens; null clears a side.

    Show child attributes (2)
    • urlstring | null

      The URL the push opens; null clears it.

    • pagestring | null

      The id of the app page the push opens; null clears it.

  • frequencydaily | weekly | monthly

    How often it is sent.

  • atobject

    When it is sent; the fields named merge.

    Show child attributes (4)
    • timezonestring

      The IANA time zone of time.

    • daysstring[]

      The weekdays of a weekly push.

    • dayOfMonthinteger

      The day of a monthly push, 1 to 31; past the month's last day, it is sent on the last day.

    • timestring · HH:mm

      The local time it is sent, HH:MM.

Returns

The recurring push after the change.

  • objectapp_recurring_notification

    Always app_recurring_notification.

  • idstring

    The recurring push id.

  • titlestring

    The push title.

  • bodystring | null

    The push body.

  • enabledboolean

    It is sent.

  • hiddenboolean

    Hidden from the in-app list.

  • sendToOneboolean

    Sent to a single test device.

  • targetobject

    Where the push opens: a URL or a page of your app.

    Show child attributes (2)
    • urlstring | null

      The URL the push opens.

    • pagestring | null

      The id of the app page the push opens.

  • frequencydaily | weekly | monthly | null

    How often it is sent.

  • atobject

    When it is sent: at time in timezone.

    Show child attributes (4)
    • timezonestring | null

      The IANA time zone of time.

    • daysstring[]

      The weekdays of a weekly push.

    • dayOfMonthnumber | null

      The day of a monthly push; past the month's last day, it is sent on the last day.

    • timestring | null

      The local time it is sent, HH:MM.

  • createdAtstring | null

    When it was created (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

PATCH /v1/masjid/app-notifications/recurring/{id}
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/app-notifications/recurring/arn_6af5c9e2bc095fbd2dc5735d" \
  -H "Authorization: Bearer $MASJIDBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"at":{"time":"12:00"}}'
Example request · MasjidAppRecurringNotificationPatch
{
  "at": {
    "time": "12:00"
  }
}
200 · MasjidAppRecurringNotification
{
  "at": {
    "dayOfMonth": null,
    "days": [
      "friday"
    ],
    "time": "11:30",
    "timezone": "Europe/London"
  },
  "body": "Jumu'ah at 13:15.",
  "createdAt": "2026-12-01T10:00:00.000Z",
  "enabled": true,
  "frequency": "weekly",
  "hidden": false,
  "id": "arn_6af5c9e2bc095fbd2dc5735d",
  "object": "app_recurring_notification",
  "sendToOne": false,
  "target": {
    "page": null,
    "url": null
  },
  "title": "Jumu'ah reminder",
  "updatedAt": "2026-12-01T10:00:00.000Z"
}

Delete a recurring push

Masjid key · secret · Notifications: edit

DELETE/v1/masjid/app-notifications/recurring/{id}

Deletes a recurring push: it is never sent again. Needs a secret key with Notifications: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.

Parameters

  • idstring · pathrequired

    The recurring push id.

Returns

Deleted. No body.

204 · No response body.

DELETE /v1/masjid/app-notifications/recurring/{id}
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/app-notifications/recurring/arn_6af5c9e2bc095fbd2dc5735d" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"