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
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_timesAlways
special_times.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
timezonestringThe organization's IANA timezone: a fixed time is wall-clock in it.
imsakanyThe imsak: a fixed time or minutes from a prayer; null when unset.
iftaranyThe iftar: a fixed time or minutes from a prayer; null when unset.
taraweehanyThe taraweeh: a fixed time or minutes from a prayer; null when unset.
updatedAtstring | nullWhen it last changed; null before it was ever set.
Errors
curl "https://hub.masjidbox.com/v1/masjid/special-times" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"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
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
imsakanyReplaces the imsak (a fixed time drops an offset, and the reverse); null clears it.
iftaranyReplaces the iftar (a fixed time drops an offset, and the reverse); null clears it.
taraweehanyReplaces the taraweeh (a fixed time drops an offset, and the reverse); null clears it.
Returns
The special times after the write.
objectspecial_timesAlways
special_times.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
timezonestringThe organization's IANA timezone: a fixed time is wall-clock in it.
imsakanyThe imsak: a fixed time or minutes from a prayer; null when unset.
iftaranyThe iftar: a fixed time or minutes from a prayer; null when unset.
taraweehanyThe taraweeh: a fixed time or minutes from a prayer; null when unset.
updatedAtstring | nullWhen it last changed; null before it was ever set.
affectedMasjidsstring[]The masjids the write changed: every masjid of the organization.
Errors
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"}}'{
"imsak": {
"fixed": "04:10"
}
}{
"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"
]
}