Your masjid · Prayer times
Your calculation method
How your athan times are computed: the method, the asr rule, the high-latitude rule and the minutes added to each prayer. Saving it makes the computed times active again.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
Your calculation method
GET/v1/masjid/calculation-method
How your athan times are computed: the method, the asr rule, the high-latitude rule, the angles and the minutes added to each prayer. active is false while a full-year athan timetable gives your times instead.
Parameters
No parameters.
Returns
The calculation method.
objectcalculation_methodAlways
calculation_method.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
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.
Show child attributes (6)
fajrnumber | nullMinutes added to the computed fajr; null when none.
sunrisenumber | nullMinutes added to the computed sunrise; null when none.
dhuhrnumber | nullMinutes added to the computed dhuhr; null when none.
asrnumber | nullMinutes added to the computed asr; null when none.
maghribnumber | nullMinutes added to the computed maghrib; null when none.
ishanumber | nullMinutes added to the computed isha; null when none.
activebooleanWhether your times are computed from this method: false while a full-year athan timetable gives them instead.
updatedAtstring | nullWhen it last changed; null before it was ever set.
Errors
curl "https://hub.masjidbox.com/v1/masjid/calculation-method" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "calculation_method",
"active": true,
"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,
"updatedAt": "2026-11-12T08:02:11.000Z"
}Change your calculation method
PATCH/v1/masjid/calculation-method
JSON Merge Patch: a field you send replaces it, adjustments merges per prayer (null removes one), a field you leave out stays. A write makes the computed times active again, over a full-year athan timetable, as saving the method on 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
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.
Show child attributes (6)
fajrinteger | nullMinutes added to the computed fajr, -120 to 120; null removes them.
sunriseinteger | nullMinutes added to the computed sunrise, -120 to 120; null removes them.
dhuhrinteger | nullMinutes added to the computed dhuhr, -120 to 120; null removes them.
asrinteger | nullMinutes added to the computed asr, -120 to 120; null removes them.
maghribinteger | nullMinutes added to the computed maghrib, -120 to 120; null removes them.
ishainteger | nullMinutes added to the computed isha, -120 to 120; null removes them.
Returns
The calculation method after the write.
objectcalculation_methodAlways
calculation_method.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
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.
Show child attributes (6)
fajrnumber | nullMinutes added to the computed fajr; null when none.
sunrisenumber | nullMinutes added to the computed sunrise; null when none.
dhuhrnumber | nullMinutes added to the computed dhuhr; null when none.
asrnumber | nullMinutes added to the computed asr; null when none.
maghribnumber | nullMinutes added to the computed maghrib; null when none.
ishanumber | nullMinutes added to the computed isha; null when none.
activebooleanWhether your times are computed from this method: false while a full-year athan 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/calculation-method" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"adjustments":{"maghrib":3},"madhab":"Hanafi"}'{
"adjustments": {
"maghrib": 3
},
"madhab": "Hanafi"
}{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "calculation_method",
"active": true,
"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,
"updatedAt": "2026-11-12T08:02:11.000Z",
"affectedMasjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
]
}