Your masjid · Prayer times
Your iqamah rules
How each iqamah is set: minutes after the athan, or a fixed time. Saving them makes them active again over an iqamah timetable.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
Your iqamah rules
GET/v1/masjid/iqamah-rules
How each iqamah is set: { "minutesAfterAthan": 20 } or { "fixed": "05:30" }. active is false while a full-year iqamah timetable gives your iqamah times instead.
Parameters
No parameters.
Returns
The iqamah rules.
objectiqamah_rulesAlways
iqamah_rules.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
fajranyThe fajr iqamah rule; null when it has none.
dhuhranyThe dhuhr iqamah rule; null when it has none.
asranyThe asr iqamah rule; null when it has none.
maghribanyThe maghrib iqamah rule; null when it has none.
ishaanyThe isha iqamah rule; null when it has none.
activebooleanWhether your iqamah times come from these rules: false while a full-year iqamah timetable gives them instead.
updatedAtstring | nullWhen it last changed; null before it was ever set.
Errors
curl "https://hub.masjidbox.com/v1/masjid/iqamah-rules" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "iqamah_rules",
"asr": {
"minutesAfterAthan": 15
},
"dhuhr": {
"fixed": "13:30"
},
"fajr": {
"minutesAfterAthan": 20
},
"isha": {
"minutesAfterAthan": 10
},
"maghrib": {
"minutesAfterAthan": 5
},
"active": true,
"updatedAt": "2026-11-12T08:02:11.000Z"
}Change your iqamah rules
PATCH/v1/masjid/iqamah-rules
JSON Merge Patch per prayer: a rule you send replaces the prayer's, null removes it, a prayer you leave out stays. A write makes the rules active again, over a full-year iqamah timetable, as the dashboard does. 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
fajranyReplaces the fajr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
dhuhranyReplaces the dhuhr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
asranyReplaces the asr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
maghribanyReplaces the maghrib rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
ishaanyReplaces the isha rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
Returns
The iqamah rules after the write.
objectiqamah_rulesAlways
iqamah_rules.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
fajranyThe fajr iqamah rule; null when it has none.
dhuhranyThe dhuhr iqamah rule; null when it has none.
asranyThe asr iqamah rule; null when it has none.
maghribanyThe maghrib iqamah rule; null when it has none.
ishaanyThe isha iqamah rule; null when it has none.
activebooleanWhether your iqamah times come from these rules: false while a full-year iqamah timetable gives them instead.
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/iqamah-rules" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"fajr":{"minutesAfterAthan":20},"maghrib":{"fixed":"18:05"}}'{
"fajr": {
"minutesAfterAthan": 20
},
"maghrib": {
"fixed": "18:05"
}
}{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "iqamah_rules",
"asr": {
"minutesAfterAthan": 15
},
"dhuhr": {
"fixed": "13:30"
},
"fajr": {
"minutesAfterAthan": 20
},
"isha": {
"minutesAfterAthan": 10
},
"maghrib": {
"minutesAfterAthan": 5
},
"active": true,
"updatedAt": "2026-11-12T08:02:11.000Z",
"affectedMasjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
]
}