Your masjid · Prayer times
Your full-year timetables
Your athan and iqamah times for a whole year, day by day, for the current year or the next one.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
A full-year timetable
GET/v1/masjid/timetables/{kind}/{year}
The athan or iqamah timetable of the current year (the one in use, active, else the newest stored, inactive) or of the next year (pending, in use from 1 January), in your timezone.
Parameters
kindathan | iqamah · pathrequiredathan(the six daily times) oriqamah(the five prayers).yearinteger · pathrequiredThe current year or the next one, in your timezone; another year is a 404.
Returns
The timetable.
objecttimetableAlways
timetable.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
kindathan | iqamahathan(the six daily times) oriqamah(the five prayers).yearintegerThe year it covers, in your timezone.
statusactive | inactive | pendingactive: your times come from it this year;inactive: stored this year but not in use;pending: next year, in use from 1 January.daysobject[]The days, in date order.
Show child attributes (8)
monthintegerThe month, 1 to 12.
dayintegerThe day of the month.
fajrstring | nullThe fajr time, HH:MM.
sunrisestring | nulloptionalSunrise, HH:MM; athan timetables only.
dhuhrstring | nullThe dhuhr time, HH:MM.
asrstring | nullThe asr time, HH:MM.
maghribstring | nullThe maghrib time, HH:MM.
ishastring | nullThe isha time, HH:MM.
updatedAtstring | nullWhen it last changed; null before it was ever set.
Errors
curl "https://hub.masjidbox.com/v1/masjid/timetables/athan/2027" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "timetable",
"days": [
{
"asr": "15:01",
"day": 1,
"dhuhr": "12:32",
"fajr": "05:10",
"isha": "19:58",
"maghrib": "18:21",
"month": 3,
"sunrise": "06:41"
}
],
"kind": "athan",
"status": "pending",
"updatedAt": "2026-11-12T08:02:11.000Z",
"year": 2027
}Replace a full-year timetable
PUT/v1/masjid/timetables/{kind}/{year}
The days you send replace the stored ones. For the current year the timetable becomes the one your times come from, as the dashboard's import does (an iqamah timetable turns the iqamah rules off). For the next year it waits, pending, until 1 January. 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
kindathan | iqamah · pathrequiredathan(the six daily times) oriqamah(the five prayers).yearinteger · pathrequiredThe current year or the next one, in your timezone; another year is a 404.
Request body
daysobject[]requiredThe days of the year, HH:MM, each at most once. An athan day needs its six times; an iqamah day has no sunrise.
Show child attributes (8)
monthintegerrequiredThe month, 1 to 12.
dayintegerrequiredThe day of the month.
fajrstring · HH:mm | nullrequiredThe fajr time, HH:MM.
sunrisestring · HH:mm | nullSunrise, HH:MM; athan timetables only.
dhuhrstring · HH:mm | nullrequiredThe dhuhr time, HH:MM.
asrstring · HH:mm | nullrequiredThe asr time, HH:MM.
maghribstring · HH:mm | nullrequiredThe maghrib time, HH:MM.
ishastring · HH:mm | nullrequiredThe isha time, HH:MM.
Returns
The timetable after the write.
objecttimetableAlways
timetable.masjidsstring[]The organization's masjids: they share one timetable, so this setting is each of theirs.
kindathan | iqamahathan(the six daily times) oriqamah(the five prayers).yearintegerThe year it covers, in your timezone.
statusactive | inactive | pendingactive: your times come from it this year;inactive: stored this year but not in use;pending: next year, in use from 1 January.daysobject[]The days, in date order.
Show child attributes (8)
monthintegerThe month, 1 to 12.
dayintegerThe day of the month.
fajrstring | nullThe fajr time, HH:MM.
sunrisestring | nulloptionalSunrise, HH:MM; athan timetables only.
dhuhrstring | nullThe dhuhr time, HH:MM.
asrstring | nullThe asr time, HH:MM.
maghribstring | nullThe maghrib time, HH:MM.
ishastring | nullThe isha time, HH:MM.
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 PUT "https://hub.masjidbox.com/v1/masjid/timetables/athan/2027" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"days":[{"asr":"15:01","day":1,"dhuhr":"12:32","fajr":"05:10","isha":"19:58","maghrib":"18:21","month":3,"sunrise":"06:41"}]}'{
"days": [
{
"asr": "15:01",
"day": 1,
"dhuhr": "12:32",
"fajr": "05:10",
"isha": "19:58",
"maghrib": "18:21",
"month": 3,
"sunrise": "06:41"
}
]
}{
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"object": "timetable",
"days": [
{
"asr": "15:01",
"day": 1,
"dhuhr": "12:32",
"fajr": "05:10",
"isha": "19:58",
"maghrib": "18:21",
"month": 3,
"sunrise": "06:41"
}
],
"kind": "athan",
"status": "pending",
"updatedAt": "2026-11-12T08:02:11.000Z",
"year": 2027,
"affectedMasjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
]
}Delete next year's timetable
DELETE/v1/masjid/timetables/{kind}/{year}
Deletes the pending timetable of the next year. The current year's timetable cannot be deleted while your times come from it (409): switch back to computed times with PATCH /v1/masjid/calculation-method (athan) or /v1/masjid/iqamah-rules (iqamah). 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
kindathan | iqamah · pathrequiredathan(the six daily times) oriqamah(the five prayers).yearinteger · pathrequiredThe current year or the next one, in your timezone; another year is a 404.
Returns
Deleted. No body.
204 · No response body.
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/timetables/athan/2027" \
-H "Authorization: Bearer $MASJIDBOX_KEY"