Your masjid · Prayer times
Your athan rules
Rules on top of the computed athan times: a fixed time for a prayer, or a window it must stay in.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
Your athan rules
GET/v1/masjid/athan-rules
The rules applied on top of the computed athan times, per prayer: a fixed time (equal), or a window (min, max) as HH:MM or minutes from another prayer (maghrib+90).
Parameters
No parameters.
Returns
The athan rules.
objectathan_rulesAlways
athan_rules.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
fajrobject | nullThe fajr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe fajr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe fajr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe fajr athan never after this: HH:MM, or
<prayer>±minutes.
sunriseobject | nullThe sunrise rules; null when it has none.
Show child attributes (3)
equalstring | nullThe sunrise athan at this time, HH:MM, whatever the computation says.
minstring | nullThe sunrise athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe sunrise athan never after this: HH:MM, or
<prayer>±minutes.
dhuhrobject | nullThe dhuhr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe dhuhr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe dhuhr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe dhuhr athan never after this: HH:MM, or
<prayer>±minutes.
asrobject | nullThe asr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe asr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe asr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe asr athan never after this: HH:MM, or
<prayer>±minutes.
maghribobject | nullThe maghrib rules; null when it has none.
Show child attributes (3)
equalstring | nullThe maghrib athan at this time, HH:MM, whatever the computation says.
minstring | nullThe maghrib athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe maghrib athan never after this: HH:MM, or
<prayer>±minutes.
ishaobject | nullThe isha rules; null when it has none.
Show child attributes (3)
equalstring | nullThe isha athan at this time, HH:MM, whatever the computation says.
minstring | nullThe isha athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe isha athan never after this: HH:MM, or
<prayer>±minutes.
updatedAtstring | nullWhen it last changed; null before it was ever set.
Errors
curl "https://hub.masjidbox.com/v1/masjid/athan-rules" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "athan_rules",
"asr": null,
"dhuhr": {
"equal": "13:30",
"max": null,
"min": null
},
"fajr": null,
"isha": {
"equal": null,
"max": null,
"min": "maghrib+90"
},
"maghrib": null,
"sunrise": null,
"updatedAt": "2026-11-12T08:02:11.000Z"
}Change your athan rules
PATCH/v1/masjid/athan-rules
JSON Merge Patch per prayer: a prayer you send merges with its rules, null removes all of them, a prayer 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
fajrobject | nullReplaces the fajr rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe fajr athan at this time, HH:MM; null removes it.
minstring | nullThe fajr athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe fajr athan never after this, HH:MM or
<prayer>±minutes; null removes it.
sunriseobject | nullReplaces the sunrise rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe sunrise athan at this time, HH:MM; null removes it.
minstring | nullThe sunrise athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe sunrise athan never after this, HH:MM or
<prayer>±minutes; null removes it.
dhuhrobject | nullReplaces the dhuhr rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe dhuhr athan at this time, HH:MM; null removes it.
minstring | nullThe dhuhr athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe dhuhr athan never after this, HH:MM or
<prayer>±minutes; null removes it.
asrobject | nullReplaces the asr rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe asr athan at this time, HH:MM; null removes it.
minstring | nullThe asr athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe asr athan never after this, HH:MM or
<prayer>±minutes; null removes it.
maghribobject | nullReplaces the maghrib rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe maghrib athan at this time, HH:MM; null removes it.
minstring | nullThe maghrib athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe maghrib athan never after this, HH:MM or
<prayer>±minutes; null removes it.
ishaobject | nullReplaces the isha rule: one of equal, min and max, exactly; null removes it.
Show child attributes (3)
equalstring · HH:mm | nullThe isha athan at this time, HH:MM; null removes it.
minstring | nullThe isha athan never before this, HH:MM or
<prayer>±minutes; null removes it.maxstring | nullThe isha athan never after this, HH:MM or
<prayer>±minutes; null removes it.
Returns
The athan rules after the write.
objectathan_rulesAlways
athan_rules.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
fajrobject | nullThe fajr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe fajr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe fajr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe fajr athan never after this: HH:MM, or
<prayer>±minutes.
sunriseobject | nullThe sunrise rules; null when it has none.
Show child attributes (3)
equalstring | nullThe sunrise athan at this time, HH:MM, whatever the computation says.
minstring | nullThe sunrise athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe sunrise athan never after this: HH:MM, or
<prayer>±minutes.
dhuhrobject | nullThe dhuhr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe dhuhr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe dhuhr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe dhuhr athan never after this: HH:MM, or
<prayer>±minutes.
asrobject | nullThe asr rules; null when it has none.
Show child attributes (3)
equalstring | nullThe asr athan at this time, HH:MM, whatever the computation says.
minstring | nullThe asr athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe asr athan never after this: HH:MM, or
<prayer>±minutes.
maghribobject | nullThe maghrib rules; null when it has none.
Show child attributes (3)
equalstring | nullThe maghrib athan at this time, HH:MM, whatever the computation says.
minstring | nullThe maghrib athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe maghrib athan never after this: HH:MM, or
<prayer>±minutes.
ishaobject | nullThe isha rules; null when it has none.
Show child attributes (3)
equalstring | nullThe isha athan at this time, HH:MM, whatever the computation says.
minstring | nullThe isha athan never before this: HH:MM, or
<prayer>±minutes.maxstring | nullThe isha athan never after this: HH:MM, or
<prayer>±minutes.
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/athan-rules" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"isha":{"min":"maghrib+90"}}'{
"isha": {
"min": "maghrib+90"
}
}{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "athan_rules",
"asr": null,
"dhuhr": {
"equal": "13:30",
"max": null,
"min": null
},
"fajr": null,
"isha": {
"equal": null,
"max": null,
"min": "maghrib+90"
},
"maghrib": null,
"sunrise": null,
"updatedAt": "2026-11-12T08:02:11.000Z",
"affectedMasjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
]
}