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

Masjid key · Prayer times: read

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_rules

    Always iqamah_rules.

  • masjidsstring[]

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

  • fajrany

    The fajr iqamah rule; null when it has none.

  • dhuhrany

    The dhuhr iqamah rule; null when it has none.

  • asrany

    The asr iqamah rule; null when it has none.

  • maghribany

    The maghrib iqamah rule; null when it has none.

  • ishaany

    The isha iqamah rule; null when it has none.

  • activeboolean

    Whether your iqamah times come from these rules: false while a full-year iqamah timetable gives them instead.

  • updatedAtstring | null

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

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

Masjid key · secret · Prayer times: edit

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

  • fajrany

    Replaces the fajr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

  • dhuhrany

    Replaces the dhuhr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

  • asrany

    Replaces the asr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

  • maghribany

    Replaces the maghrib rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

  • ishaany

    Replaces the isha rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

Returns

The iqamah rules after the write.

  • objectiqamah_rules

    Always iqamah_rules.

  • masjidsstring[]

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

  • fajrany

    The fajr iqamah rule; null when it has none.

  • dhuhrany

    The dhuhr iqamah rule; null when it has none.

  • asrany

    The asr iqamah rule; null when it has none.

  • maghribany

    The maghrib iqamah rule; null when it has none.

  • ishaany

    The isha iqamah rule; null when it has none.

  • activeboolean

    Whether your iqamah times come from these rules: false while a full-year iqamah 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/iqamah-rules
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"}}'
Example request · MasjidIqamahRulesPatch
{
  "fajr": {
    "minutesAfterAthan": 20
  },
  "maghrib": {
    "fixed": "18:05"
  }
}
200 · MasjidIqamahRulesUpdated
{
  "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"
  ]
}