Your masjid · Prayer times
Your athan
Where your athan times come from (computed, or your full-year timetable), how they are computed and the rules on top of them. The source changes only when you send it.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
Your athan
GET/v1/masjid/athan
Where your athan times come from (source: calculation or timetable, your full-year athan timetable of the current year), how they are computed (calculation: the method, the asr rule, the high-latitude rule, the angles and the minutes added to each prayer) and the rules over the computed times (rules: per prayer, a fixed time, or a window). calculation and rules stay readable while the timetable gives your times.
Parameters
No parameters.
Returns
Your athan.
objectathanAlways
athan.sourcecalculation | timetableWhere your athan times come from:
calculation(computed fromcalculation, thenrules) ortimetable(your full-year athan timetable of the current year).calculationobjectHow your athan times are computed; kept, and editable, while a full-year athan timetable gives them.
Show child attributes (15)
methodstring | nullThe calculation method:
auto(the country default),custom(your own angles) or a named method; null before one was ever set.methodVersioninteger | nullThe calibration generation of
method: 0 (the original catalogue) or 2026 (re-measured on published tables).madhabstring | nullThe asr rule:
Shafi(shadow once) orHanafi(twice).highLatitudestring | nullHow fajr and isha are placed where the twilight never ends:
MiddleOfTheNight,SeventhOfTheNightorTwilightAngle.fajrAnglenumber | nullThe fajr angle, degrees; with
custom.fajrIntervalnumber | nullFajr as minutes before sunrise instead of an angle; null when unused.
ishaAnglenumber | nullThe isha angle, degrees; with
custom.ishaIntervalnumber | nullIsha as minutes after maghrib instead of an angle; null when unused.
adjustmentsobjectMinutes added to each computed athan time.
adjustments.fajrnumber | nullMinutes added to the computed fajr; null when none.
adjustments.sunrisenumber | nullMinutes added to the computed sunrise; null when none.
adjustments.dhuhrnumber | nullMinutes added to the computed dhuhr; null when none.
adjustments.asrnumber | nullMinutes added to the computed asr; null when none.
adjustments.maghribnumber | nullMinutes added to the computed maghrib; null when none.
adjustments.ishanumber | nullMinutes added to the computed isha; null when none.
rulesobjectRules that override or bound the computed athan times: a fixed time, or a window.
Show child attributes (24)
fajrobject | nullThe fajr rule: one of equal, min and max; null when it has none.
fajr.equalstring | nulloptionalThe fajr athan at this time, HH:MM.
fajr.minstring | nulloptionalThe fajr athan never before this, HH:MM or
<prayer>±minutes.fajr.maxstring | nulloptionalThe fajr athan never after this, HH:MM or
<prayer>±minutes.sunriseobject | nullThe sunrise rule: one of equal, min and max; null when it has none.
sunrise.equalstring | nulloptionalThe sunrise athan at this time, HH:MM.
sunrise.minstring | nulloptionalThe sunrise athan never before this, HH:MM or
<prayer>±minutes.sunrise.maxstring | nulloptionalThe sunrise athan never after this, HH:MM or
<prayer>±minutes.dhuhrobject | nullThe dhuhr rule: one of equal, min and max; null when it has none.
dhuhr.equalstring | nulloptionalThe dhuhr athan at this time, HH:MM.
dhuhr.minstring | nulloptionalThe dhuhr athan never before this, HH:MM or
<prayer>±minutes.dhuhr.maxstring | nulloptionalThe dhuhr athan never after this, HH:MM or
<prayer>±minutes.asrobject | nullThe asr rule: one of equal, min and max; null when it has none.
asr.equalstring | nulloptionalThe asr athan at this time, HH:MM.
asr.minstring | nulloptionalThe asr athan never before this, HH:MM or
<prayer>±minutes.asr.maxstring | nulloptionalThe asr athan never after this, HH:MM or
<prayer>±minutes.maghribobject | nullThe maghrib rule: one of equal, min and max; null when it has none.
maghrib.equalstring | nulloptionalThe maghrib athan at this time, HH:MM.
maghrib.minstring | nulloptionalThe maghrib athan never before this, HH:MM or
<prayer>±minutes.maghrib.maxstring | nulloptionalThe maghrib athan never after this, HH:MM or
<prayer>±minutes.ishaobject | nullThe isha rule: one of equal, min and max; null when it has none.
isha.equalstring | nulloptionalThe isha athan at this time, HH:MM.
isha.minstring | nulloptionalThe isha athan never before this, HH:MM or
<prayer>±minutes.isha.maxstring | nulloptionalThe isha athan never after this, HH:MM or
<prayer>±minutes.
curl "https://hub.masjidbox.com/v1/masjid/athan" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"object": "athan",
"calculation": {
"adjustments": {
"asr": 0,
"dhuhr": 2,
"fajr": 0,
"isha": 0,
"maghrib": 3,
"sunrise": 0
},
"fajrAngle": null,
"fajrInterval": null,
"highLatitude": "MiddleOfTheNight",
"ishaAngle": null,
"ishaInterval": null,
"madhab": "Shafi",
"method": "MuslimWorldLeague",
"methodVersion": 2026
},
"rules": {
"asr": null,
"dhuhr": {
"equal": "13:30"
},
"fajr": null,
"isha": {
"min": "maghrib+90"
},
"maghrib": null,
"sunrise": null
},
"source": "calculation"
}Change your athan
PATCH/v1/masjid/athan
JSON Merge Patch on each part: in calculation a field you send replaces it, adjustments merges per prayer (null removes one); in rules a prayer you send replaces its rule, null removes it; a field or a part you leave out stays. source changes only when you send it: calculation makes your times computed again, timetable makes them come from your full-year athan timetable of the current year, and is refused (409) while you have none: PUT it first. Changing the calculation or the rules never changes the source. An empty body changes nothing. Needs a secret key with Prayer times: edit. 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
sourcecalculation | timetableChanges where your athan times come from; left out, it stays.
timetableneeds a timetable of the current year (409 otherwise).calculationobjectA change to the calculation method: a field you leave out stays.
Show child attributes (15)
methodstringauto,customor a named method (MuslimWorldLeague,Egyptian,Karachi,UmmAlQura,Diyanet,Maroc…); an unknown name is a 400.methodVersionintegerThe calibration generation, 0 or 2026; a new method starts at 2026.
madhabShafi | HanafiThe asr rule.
highLatitudeMiddleOfTheNight | SeventhOfTheNight | TwilightAngleThe high-latitude rule.
fajrAnglenumber | nullThe fajr angle, 0 to 30 degrees; null removes it.
fajrIntervalinteger | nullFajr as 0 to 300 minutes before sunrise; null removes it.
ishaAnglenumber | nullThe isha angle, 0 to 30 degrees; null removes it.
ishaIntervalinteger | nullIsha as 0 to 300 minutes after maghrib; null removes it.
adjustmentsobjectMerged per prayer; a prayer you leave out stays.
adjustments.fajrinteger | nullMinutes added to the computed fajr, -120 to 120; null removes them.
adjustments.sunriseinteger | nullMinutes added to the computed sunrise, -120 to 120; null removes them.
adjustments.dhuhrinteger | nullMinutes added to the computed dhuhr, -120 to 120; null removes them.
adjustments.asrinteger | nullMinutes added to the computed asr, -120 to 120; null removes them.
adjustments.maghribinteger | nullMinutes added to the computed maghrib, -120 to 120; null removes them.
adjustments.ishainteger | nullMinutes added to the computed isha, -120 to 120; null removes them.
rulesobjectA change to the athan rules: a prayer you leave out stays.
Show child attributes (24)
fajrobject | nullReplaces the fajr rule: one of equal, min and max, exactly; null removes it.
fajr.equalstring · HH:mm | nullThe fajr athan at this time, HH:MM.
fajr.minstring | nullThe fajr athan never before this, HH:MM or
<prayer>±minutes.fajr.maxstring | nullThe fajr athan never after this, HH:MM or
<prayer>±minutes.sunriseobject | nullReplaces the sunrise rule: one of equal, min and max, exactly; null removes it.
sunrise.equalstring · HH:mm | nullThe sunrise athan at this time, HH:MM.
sunrise.minstring | nullThe sunrise athan never before this, HH:MM or
<prayer>±minutes.sunrise.maxstring | nullThe sunrise athan never after this, HH:MM or
<prayer>±minutes.dhuhrobject | nullReplaces the dhuhr rule: one of equal, min and max, exactly; null removes it.
dhuhr.equalstring · HH:mm | nullThe dhuhr athan at this time, HH:MM.
dhuhr.minstring | nullThe dhuhr athan never before this, HH:MM or
<prayer>±minutes.dhuhr.maxstring | nullThe dhuhr athan never after this, HH:MM or
<prayer>±minutes.asrobject | nullReplaces the asr rule: one of equal, min and max, exactly; null removes it.
asr.equalstring · HH:mm | nullThe asr athan at this time, HH:MM.
asr.minstring | nullThe asr athan never before this, HH:MM or
<prayer>±minutes.asr.maxstring | nullThe asr athan never after this, HH:MM or
<prayer>±minutes.maghribobject | nullReplaces the maghrib rule: one of equal, min and max, exactly; null removes it.
maghrib.equalstring · HH:mm | nullThe maghrib athan at this time, HH:MM.
maghrib.minstring | nullThe maghrib athan never before this, HH:MM or
<prayer>±minutes.maghrib.maxstring | nullThe maghrib athan never after this, HH:MM or
<prayer>±minutes.ishaobject | nullReplaces the isha rule: one of equal, min and max, exactly; null removes it.
isha.equalstring · HH:mm | nullThe isha athan at this time, HH:MM.
isha.minstring | nullThe isha athan never before this, HH:MM or
<prayer>±minutes.isha.maxstring | nullThe isha athan never after this, HH:MM or
<prayer>±minutes.
Returns
Your athan after the write.
objectathanAlways
athan.sourcecalculation | timetableWhere your athan times come from:
calculation(computed fromcalculation, thenrules) ortimetable(your full-year athan timetable of the current year).calculationobjectHow your athan times are computed; kept, and editable, while a full-year athan timetable gives them.
Show child attributes (15)
methodstring | nullThe calculation method:
auto(the country default),custom(your own angles) or a named method; null before one was ever set.methodVersioninteger | nullThe calibration generation of
method: 0 (the original catalogue) or 2026 (re-measured on published tables).madhabstring | nullThe asr rule:
Shafi(shadow once) orHanafi(twice).highLatitudestring | nullHow fajr and isha are placed where the twilight never ends:
MiddleOfTheNight,SeventhOfTheNightorTwilightAngle.fajrAnglenumber | nullThe fajr angle, degrees; with
custom.fajrIntervalnumber | nullFajr as minutes before sunrise instead of an angle; null when unused.
ishaAnglenumber | nullThe isha angle, degrees; with
custom.ishaIntervalnumber | nullIsha as minutes after maghrib instead of an angle; null when unused.
adjustmentsobjectMinutes added to each computed athan time.
adjustments.fajrnumber | nullMinutes added to the computed fajr; null when none.
adjustments.sunrisenumber | nullMinutes added to the computed sunrise; null when none.
adjustments.dhuhrnumber | nullMinutes added to the computed dhuhr; null when none.
adjustments.asrnumber | nullMinutes added to the computed asr; null when none.
adjustments.maghribnumber | nullMinutes added to the computed maghrib; null when none.
adjustments.ishanumber | nullMinutes added to the computed isha; null when none.
rulesobjectRules that override or bound the computed athan times: a fixed time, or a window.
Show child attributes (24)
fajrobject | nullThe fajr rule: one of equal, min and max; null when it has none.
fajr.equalstring | nulloptionalThe fajr athan at this time, HH:MM.
fajr.minstring | nulloptionalThe fajr athan never before this, HH:MM or
<prayer>±minutes.fajr.maxstring | nulloptionalThe fajr athan never after this, HH:MM or
<prayer>±minutes.sunriseobject | nullThe sunrise rule: one of equal, min and max; null when it has none.
sunrise.equalstring | nulloptionalThe sunrise athan at this time, HH:MM.
sunrise.minstring | nulloptionalThe sunrise athan never before this, HH:MM or
<prayer>±minutes.sunrise.maxstring | nulloptionalThe sunrise athan never after this, HH:MM or
<prayer>±minutes.dhuhrobject | nullThe dhuhr rule: one of equal, min and max; null when it has none.
dhuhr.equalstring | nulloptionalThe dhuhr athan at this time, HH:MM.
dhuhr.minstring | nulloptionalThe dhuhr athan never before this, HH:MM or
<prayer>±minutes.dhuhr.maxstring | nulloptionalThe dhuhr athan never after this, HH:MM or
<prayer>±minutes.asrobject | nullThe asr rule: one of equal, min and max; null when it has none.
asr.equalstring | nulloptionalThe asr athan at this time, HH:MM.
asr.minstring | nulloptionalThe asr athan never before this, HH:MM or
<prayer>±minutes.asr.maxstring | nulloptionalThe asr athan never after this, HH:MM or
<prayer>±minutes.maghribobject | nullThe maghrib rule: one of equal, min and max; null when it has none.
maghrib.equalstring | nulloptionalThe maghrib athan at this time, HH:MM.
maghrib.minstring | nulloptionalThe maghrib athan never before this, HH:MM or
<prayer>±minutes.maghrib.maxstring | nulloptionalThe maghrib athan never after this, HH:MM or
<prayer>±minutes.ishaobject | nullThe isha rule: one of equal, min and max; null when it has none.
isha.equalstring | nulloptionalThe isha athan at this time, HH:MM.
isha.minstring | nulloptionalThe isha athan never before this, HH:MM or
<prayer>±minutes.isha.maxstring | nulloptionalThe isha athan never after this, HH:MM or
<prayer>±minutes.
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/athan" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"calculation":{"madhab":"Hanafi"},"source":"calculation"}'{
"calculation": {
"madhab": "Hanafi"
},
"source": "calculation"
}{
"object": "athan",
"calculation": {
"adjustments": {
"asr": 0,
"dhuhr": 2,
"fajr": 0,
"isha": 0,
"maghrib": 3,
"sunrise": 0
},
"fajrAngle": null,
"fajrInterval": null,
"highLatitude": "MiddleOfTheNight",
"ishaAngle": null,
"ishaInterval": null,
"madhab": "Shafi",
"method": "MuslimWorldLeague",
"methodVersion": 2026
},
"rules": {
"asr": null,
"dhuhr": {
"equal": "13:30"
},
"fajr": null,
"isha": {
"min": "maghrib+90"
},
"maghrib": null,
"sunrise": null
},
"source": "calculation"
}