Your masjid · Prayer times

Your special times

Imsak, iftar and taraweeh as your screens and apps show them: a fixed time, or minutes from a prayer.

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

Your special times

Masjid key · Prayer times: read

GET/v1/masjid/special-times

Imsak, iftar and taraweeh as your screens and apps place them: a fixed time, or minutes from a prayer’s athan or iqamah. A time not set reads null.

Parameters

No parameters.

Returns

The special times.

  • objectspecial_times

    Always special_times.

  • masjidsstring[]

    The organization's masjids: they share one timetable, so this setting is each of theirs.

  • timezonestring

    The organization's IANA timezone: a fixed time is wall-clock in it.

  • imsakany

    The imsak: a fixed time or minutes from a prayer; null when unset.

  • iftarany

    The iftar: a fixed time or minutes from a prayer; null when unset.

  • taraweehany

    The taraweeh: a fixed time or minutes from a prayer; null when unset.

  • updatedAtstring | null

    When it last changed; null before it was ever set.

GET /v1/masjid/special-times
curl "https://hub.masjidbox.com/v1/masjid/special-times" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidSpecialTimes
{
  "masjids": [
    "msj_o5urjd3hd5",
    "msj_k2w8x1p0aa"
  ],
  "object": "special_times",
  "iftar": {
    "relative": {
      "minutes": 0,
      "prayer": "maghrib",
      "to": "athan"
    }
  },
  "imsak": {
    "relative": {
      "minutes": -10,
      "prayer": "fajr",
      "to": "athan"
    }
  },
  "taraweeh": {
    "relative": {
      "minutes": 15,
      "prayer": "isha",
      "to": "iqamah"
    }
  },
  "timezone": "Europe/London",
  "updatedAt": "2026-11-12T08:02:11.000Z"
}

Change your special times

Masjid key · secret · Prayer times: edit

PATCH/v1/masjid/special-times

JSON Merge Patch per time: a time you send replaces it (a fixed time drops an offset, and the reverse), null clears it, a time you leave out stays. An empty body changes nothing. Every masjid of your organization gets the change, listed in affectedMasjids. Needs a secret key with Prayer times: edit. 30 writes an hour and 300 a day per organization.

Parameters

No parameters.

Request body

  • imsakany

    Replaces the imsak (a fixed time drops an offset, and the reverse); null clears it.

  • iftarany

    Replaces the iftar (a fixed time drops an offset, and the reverse); null clears it.

  • taraweehany

    Replaces the taraweeh (a fixed time drops an offset, and the reverse); null clears it.

Returns

The special times after the write.

  • objectspecial_times

    Always special_times.

  • masjidsstring[]

    The organization's masjids: they share one timetable, so this setting is each of theirs.

  • timezonestring

    The organization's IANA timezone: a fixed time is wall-clock in it.

  • imsakany

    The imsak: a fixed time or minutes from a prayer; null when unset.

  • iftarany

    The iftar: a fixed time or minutes from a prayer; null when unset.

  • taraweehany

    The taraweeh: a fixed time or minutes from a prayer; null when unset.

  • updatedAtstring | null

    When it last changed; null before it was ever set.

  • affectedMasjidsstring[]

    The masjids the write changed: every masjid of the organization.

PATCH /v1/masjid/special-times
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/special-times" \
  -H "Authorization: Bearer $MASJIDBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"imsak":{"fixed":"04:10"}}'
Example request · MasjidSpecialTimesPatch
{
  "imsak": {
    "fixed": "04:10"
  }
}
200 · MasjidSpecialTimesUpdated
{
  "masjids": [
    "msj_o5urjd3hd5",
    "msj_k2w8x1p0aa"
  ],
  "object": "special_times",
  "iftar": {
    "relative": {
      "minutes": 0,
      "prayer": "maghrib",
      "to": "athan"
    }
  },
  "imsak": {
    "relative": {
      "minutes": -10,
      "prayer": "fajr",
      "to": "athan"
    }
  },
  "taraweeh": {
    "relative": {
      "minutes": 15,
      "prayer": "isha",
      "to": "iqamah"
    }
  },
  "timezone": "Europe/London",
  "updatedAt": "2026-11-12T08:02:11.000Z",
  "affectedMasjids": [
    "msj_o5urjd3hd5",
    "msj_k2w8x1p0aa"
  ]
}