Your masjid · Webhooks

Webhook deliveries

What Masjidbox posted to each endpoint over 30 days, and a resend. They need a secret key.

The endpoints you register and the deliveries sent to them. A secret key with Masjid profile: read.

A webhook endpoint's deliveries

Masjid key · secret · Masjid profile: read

GET/v1/masjid/webhook-endpoints/{id}/deliveries

What Masjidbox posted to an endpoint over the last 30 days, newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). Each delivery with its attempts and the status of the last one. Needs a secret key with Masjid profile: read; an endpoint belongs to your organization, not to the key.

Parameters

  • idstring · pathrequired

    The webhook endpoint id.

  • 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 deliveries.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (12)
    • objectwebhook_delivery

      Always webhook_delivery.

    • idstring

      The delivery id.

    • eventstring

      The event id, the id of the payload: the same on every retry, dedupe on it.

    • typemasjid.updated | profile.updated | prayer_times.updated | jumuah_times.updated | event.created | event.updated | event.deleted | announcement.created | announcement.updated | announcement.deleted | media.created | media.updated | media.deleted | news.created | news.updated | news.deleted | album.created | album.updated | album.deleted | collection.created | collection.updated | collection.deleted | poll.created | poll.updated | poll.deleted | quiz.created | quiz.updated | quiz.deleted | question.updated | question.deleted | live.created | live.updated | live.deleted | notification.created | notification.updated | notification.deleted | app_notification.created | app_notification.updated | app_notification.deleted | app_recurring_notification.created | app_recurring_notification.updated | app_recurring_notification.deleted | app_one_time_notification.created | app_one_time_notification.updated | app_one_time_notification.deleted | donation_account.updated | donation_campaign.created | donation_campaign.updated | donation_campaign.deleted | website.updated | widget.created | widget.updated | widget.deleted | app_widget.updated | app_popup.created | app_popup.updated | app_popup.deleted | app_page.created | app_page.updated | app_page.deleted | screen.updated | screen.deleted | screen_settings.updated | playlist.created | playlist.updated | playlist.deleted | playlist_schedule.created | playlist_schedule.updated | playlist_schedule.deleted

      The event type.

    • resourcestring | null

      The public id of the resource it is about; null for an organization-wide event.

    • statuspending | delivered | failed

      pending (an attempt is due), delivered (a 2xx came back) or failed (every attempt failed).

    • attemptsnumber

      Attempts made.

    • lastStatusCodenumber | null

      The HTTP status of the last attempt.

    • lastErrorstring | null

      Why the last attempt failed (timeout, blocked_address…).

    • nextAttemptAtstring | null

      When the next attempt is due (ISO-8601).

    • deliveredAtstring | null

      When it was delivered (ISO-8601).

    • createdAtstring | null

      When it was queued (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/webhook-endpoints/{id}/deliveries
curl "https://hub.masjidbox.com/v1/masjid/webhook-endpoints/whk_3f0c2a52-7d8e-4b1a-9c6f-2e5d8a4b7c10/deliveries" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidWebhookDeliveriesPage
{
  "data": [
    {
      "attempts": 1,
      "createdAt": "2026-11-13T08:00:00.000Z",
      "deliveredAt": "2026-11-13T08:00:00.000Z",
      "event": "whe_9f8e7d6c5b4a39281706f5e4d3c2b1a0",
      "id": "whd_7b1e4d90-2c3a-4f5e-8a6b-9c0d1e2f3a4b",
      "lastError": null,
      "lastStatusCode": 200,
      "nextAttemptAt": null,
      "object": "webhook_delivery",
      "resource": "evt_6af5c9e2bc095fbd2dc5735a",
      "status": "delivered",
      "type": "event.created"
    }
  ],
  "object": "list",
  "pagination": {
    "hasMore": false,
    "limit": 25,
    "nextCursor": null
  }
}

Resend a delivery

Masjid key · secret · Masjid profile: read

POST/v1/masjid/webhook-endpoints/{id}/deliveries/{deliveryId}/resend

Posts a delivery of the last 30 days again, due now, its attempts from zero, under the same event id (your receiver dedupes on it). A disabled endpoint is a 409: enable it first. Needs a secret key with Masjid profile: read; an endpoint belongs to your organization, not to the key.

Parameters

  • idstring · pathrequired

    The webhook endpoint id.

  • deliveryIdstring · pathrequired

    The delivery id.

Returns

The delivery, queued again.

  • objectwebhook_delivery

    Always webhook_delivery.

  • idstring

    The delivery id.

  • eventstring

    The event id, the id of the payload: the same on every retry, dedupe on it.

  • typemasjid.updated | profile.updated | prayer_times.updated | jumuah_times.updated | event.created | event.updated | event.deleted | announcement.created | announcement.updated | announcement.deleted | media.created | media.updated | media.deleted | news.created | news.updated | news.deleted | album.created | album.updated | album.deleted | collection.created | collection.updated | collection.deleted | poll.created | poll.updated | poll.deleted | quiz.created | quiz.updated | quiz.deleted | question.updated | question.deleted | live.created | live.updated | live.deleted | notification.created | notification.updated | notification.deleted | app_notification.created | app_notification.updated | app_notification.deleted | app_recurring_notification.created | app_recurring_notification.updated | app_recurring_notification.deleted | app_one_time_notification.created | app_one_time_notification.updated | app_one_time_notification.deleted | donation_account.updated | donation_campaign.created | donation_campaign.updated | donation_campaign.deleted | website.updated | widget.created | widget.updated | widget.deleted | app_widget.updated | app_popup.created | app_popup.updated | app_popup.deleted | app_page.created | app_page.updated | app_page.deleted | screen.updated | screen.deleted | screen_settings.updated | playlist.created | playlist.updated | playlist.deleted | playlist_schedule.created | playlist_schedule.updated | playlist_schedule.deleted

    The event type.

  • resourcestring | null

    The public id of the resource it is about; null for an organization-wide event.

  • statuspending | delivered | failed

    pending (an attempt is due), delivered (a 2xx came back) or failed (every attempt failed).

  • attemptsnumber

    Attempts made.

  • lastStatusCodenumber | null

    The HTTP status of the last attempt.

  • lastErrorstring | null

    Why the last attempt failed (timeout, blocked_address…).

  • nextAttemptAtstring | null

    When the next attempt is due (ISO-8601).

  • deliveredAtstring | null

    When it was delivered (ISO-8601).

  • createdAtstring | null

    When it was queued (ISO-8601).

POST /v1/masjid/webhook-endpoints/{id}/deliveries/{deliveryId}/resend
curl -X POST "https://hub.masjidbox.com/v1/masjid/webhook-endpoints/whk_3f0c2a52-7d8e-4b1a-9c6f-2e5d8a4b7c10/deliveries/whd_7b1e4d90-2c3a-4f5e-8a6b-9c0d1e2f3a4b/resend" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidWebhookDelivery
{
  "attempts": 1,
  "createdAt": "2026-11-13T08:00:00.000Z",
  "deliveredAt": "2026-11-13T08:00:00.000Z",
  "event": "whe_9f8e7d6c5b4a39281706f5e4d3c2b1a0",
  "id": "whd_7b1e4d90-2c3a-4f5e-8a6b-9c0d1e2f3a4b",
  "lastError": null,
  "lastStatusCode": 200,
  "nextAttemptAt": null,
  "object": "webhook_delivery",
  "resource": "evt_6af5c9e2bc095fbd2dc5735a",
  "status": "delivered",
  "type": "event.created"
}