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

Masjid key · Prayer times: read

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_method

    Always calculation_method.

  • masjidsstring[]

    The organization's masjids: they share one timetable, so this setting is each of theirs.

  • methodstring | null

    The calculation method: auto (the country default), custom (your own angles) or a named method; null before one was ever set.

  • methodVersioninteger | null

    The calibration generation of method: 0 (the original catalogue) or 2026 (re-measured on published tables).

  • madhabstring | null

    The asr rule: Shafi (shadow once) or Hanafi (twice).

  • highLatitudestring | null

    How fajr and isha are placed where the twilight never ends: MiddleOfTheNight, SeventhOfTheNight or TwilightAngle.

  • fajrAnglenumber | null

    The fajr angle, degrees; with custom.

  • fajrIntervalnumber | null

    Fajr as minutes before sunrise instead of an angle; null when unused.

  • ishaAnglenumber | null

    The isha angle, degrees; with custom.

  • ishaIntervalnumber | null

    Isha as minutes after maghrib instead of an angle; null when unused.

  • adjustmentsobject

    Minutes added to each computed athan time.

    Show child attributes (6)
    • fajrnumber | null

      Minutes added to the computed fajr; null when none.

    • sunrisenumber | null

      Minutes added to the computed sunrise; null when none.

    • dhuhrnumber | null

      Minutes added to the computed dhuhr; null when none.

    • asrnumber | null

      Minutes added to the computed asr; null when none.

    • maghribnumber | null

      Minutes added to the computed maghrib; null when none.

    • ishanumber | null

      Minutes added to the computed isha; null when none.

  • activeboolean

    Whether your times are computed from this method: false while a full-year athan timetable gives them instead.

  • updatedAtstring | null

    When it last changed; null before it was ever set.

GET /v1/masjid/calculation-method
curl "https://hub.masjidbox.com/v1/masjid/calculation-method" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidCalculationMethod
{
  "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

Masjid key · secret · Prayer times: edit

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

  • methodstring

    auto, custom or a named method (MuslimWorldLeague, Egyptian, Karachi, UmmAlQura, Diyanet, Maroc…); an unknown name is a 400.

  • methodVersioninteger

    The calibration generation, 0 or 2026; a new method starts at 2026.

  • madhabShafi | Hanafi

    The asr rule.

  • highLatitudeMiddleOfTheNight | SeventhOfTheNight | TwilightAngle

    The high-latitude rule.

  • fajrAnglenumber | null

    The fajr angle, 0 to 30 degrees; null removes it.

  • fajrIntervalinteger | null

    Fajr as 0 to 300 minutes before sunrise; null removes it.

  • ishaAnglenumber | null

    The isha angle, 0 to 30 degrees; null removes it.

  • ishaIntervalinteger | null

    Isha as 0 to 300 minutes after maghrib; null removes it.

  • adjustmentsobject

    Merged per prayer; a prayer you leave out stays.

    Show child attributes (6)
    • fajrinteger | null

      Minutes added to the computed fajr, -120 to 120; null removes them.

    • sunriseinteger | null

      Minutes added to the computed sunrise, -120 to 120; null removes them.

    • dhuhrinteger | null

      Minutes added to the computed dhuhr, -120 to 120; null removes them.

    • asrinteger | null

      Minutes added to the computed asr, -120 to 120; null removes them.

    • maghribinteger | null

      Minutes added to the computed maghrib, -120 to 120; null removes them.

    • ishainteger | null

      Minutes added to the computed isha, -120 to 120; null removes them.

Returns

The calculation method after the write.

  • objectcalculation_method

    Always calculation_method.

  • masjidsstring[]

    The organization's masjids: they share one timetable, so this setting is each of theirs.

  • methodstring | null

    The calculation method: auto (the country default), custom (your own angles) or a named method; null before one was ever set.

  • methodVersioninteger | null

    The calibration generation of method: 0 (the original catalogue) or 2026 (re-measured on published tables).

  • madhabstring | null

    The asr rule: Shafi (shadow once) or Hanafi (twice).

  • highLatitudestring | null

    How fajr and isha are placed where the twilight never ends: MiddleOfTheNight, SeventhOfTheNight or TwilightAngle.

  • fajrAnglenumber | null

    The fajr angle, degrees; with custom.

  • fajrIntervalnumber | null

    Fajr as minutes before sunrise instead of an angle; null when unused.

  • ishaAnglenumber | null

    The isha angle, degrees; with custom.

  • ishaIntervalnumber | null

    Isha as minutes after maghrib instead of an angle; null when unused.

  • adjustmentsobject

    Minutes added to each computed athan time.

    Show child attributes (6)
    • fajrnumber | null

      Minutes added to the computed fajr; null when none.

    • sunrisenumber | null

      Minutes added to the computed sunrise; null when none.

    • dhuhrnumber | null

      Minutes added to the computed dhuhr; null when none.

    • asrnumber | null

      Minutes added to the computed asr; null when none.

    • maghribnumber | null

      Minutes added to the computed maghrib; null when none.

    • ishanumber | null

      Minutes added to the computed isha; null when none.

  • activeboolean

    Whether your times are computed from this method: false while a full-year athan timetable gives them instead.

  • updatedAtstring | null

    When it last changed; null before it was ever set.

  • affectedMasjidsstring[]

    The masjids the write changed: every masjid of the organization.

PATCH /v1/masjid/calculation-method
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"}'
Example request · MasjidCalculationMethodPatch
{
  "adjustments": {
    "maghrib": 3
  },
  "madhab": "Hanafi"
}
200 · MasjidCalculationMethodUpdated
{
  "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"
  ]
}