Your masjid · Screens
Your playlist schedules
When one of your playlists replaces the one your screens play: the days, a daily window by time or by prayer, and the screens.
Right on the key: Screens: read for a read, edit (secret key) for a write.
Your playlist schedules
GET/v1/masjid/playlist-schedules
When your playlists replace the one your screens play — the days, the daily window, the screens — newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). Needs Screens: read.
Parameters
limitinteger · queryItems per page, 1 to 100.
cursorstring · queryThe previous page's
pagination.nextCursor; absent for the first page.
Returns
A page of playlist schedules.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (22)
objectplaylist_scheduleAlways
playlist_schedule.idstringThe schedule id.
playlistobject | nullThe playlist it shows; null when that playlist no longer exists.
playlist.idstringThe playlist id.
playlist.namestring | nullIts name.
playersstring[]Your screens of kind
playerit applies to.androidsstring[]Your screens of kind
androidit applies to.availableFromstring | nullFirst day it applies; null for no start (ISO-8601).
availableTostring | nullLast day it applies; null for no end (ISO-8601).
weekdaysnumber[]Days of the week it applies, 0 (Sunday) to 6.
timeFromobjectWhen the window opens each day.
timeFrom.timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.timeFrom.prayerstring | nullThe prayer it is relative to; null for a time.
timeFrom.prayerTypestring | nullWhich time of that prayer:
athanoriqamah.timeFrom.offsetnumber | nullMinutes after (positive) or before (negative) it.
timeToobjectWhen the window closes each day.
timeTo.timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.timeTo.prayerstring | nullThe prayer it is relative to; null for a time.
timeTo.prayerTypestring | nullWhich time of that prayer:
athanoriqamah.timeTo.offsetnumber | nullMinutes after (positive) or before (negative) it.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
paginationobjectWhere this page stands.
Show child attributes (3)
limitintegerThe page size asked for.
hasMorebooleanWhether another page follows: stop on false, never on a short page.
nextCursorstring | nullThe
cursorof the next page; null on the last one.
curl "https://hub.masjidbox.com/v1/masjid/playlist-schedules" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"androids": [],
"availableFrom": "2026-03-01T00:00:00.000Z",
"availableTo": "2026-03-30T00:00:00.000Z",
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "psc_6af5c9e2bc095fbd2dc5735c",
"object": "playlist_schedule",
"players": [
"scr_6af5c9e2bc095fbd2dc5735a"
],
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Friday"
},
"timeFrom": {
"offset": null,
"prayer": null,
"prayerType": null,
"time": "12:00"
},
"timeTo": {
"offset": 30,
"prayer": "dhuhr",
"prayerType": "iqamah",
"time": null
},
"updatedAt": "2026-11-12T08:00:00.000Z",
"weekdays": [
5
]
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your playlist schedules
GET/v1/masjid/playlist-schedules/{id}
A playlist schedule: the playlist it shows, on which of your screens, on which days and in which daily window. Needs Screens: read.
Parameters
idstring · pathrequiredThe playlist schedule id.
Returns
The playlist schedule.
objectplaylist_scheduleAlways
playlist_schedule.idstringThe schedule id.
playlistobject | nullThe playlist it shows; null when that playlist no longer exists.
Show child attributes (2)
idstringThe playlist id.
namestring | nullIts name.
playersstring[]Your screens of kind
playerit applies to.androidsstring[]Your screens of kind
androidit applies to.availableFromstring | nullFirst day it applies; null for no start (ISO-8601).
availableTostring | nullLast day it applies; null for no end (ISO-8601).
weekdaysnumber[]Days of the week it applies, 0 (Sunday) to 6.
timeFromobjectWhen the window opens each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
timeToobjectWhen the window closes each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/playlist-schedules/psc_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"androids": [],
"availableFrom": "2026-03-01T00:00:00.000Z",
"availableTo": "2026-03-30T00:00:00.000Z",
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "psc_6af5c9e2bc095fbd2dc5735c",
"object": "playlist_schedule",
"players": [
"scr_6af5c9e2bc095fbd2dc5735a"
],
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Friday"
},
"timeFrom": {
"offset": null,
"prayer": null,
"prayerType": null,
"time": "12:00"
},
"timeTo": {
"offset": 30,
"prayer": "dhuhr",
"prayerType": "iqamah",
"time": null
},
"updatedAt": "2026-11-12T08:00:00.000Z",
"weekdays": [
5
]
}Schedule a playlist
POST/v1/masjid/playlist-schedules
Schedules one of your playlists (pll_) on your screens (scr_: players for Masjidbox boxes, androids for Android screens; Tizen screens take no schedule), from availableFrom to availableTo, on weekdays, between timeFrom and timeTo: each end a time or a prayer with an offset, not both. A playlist or a screen that is not your organization's is a 404, and nothing is written. Needs a secret key with Screens: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
playliststringrequiredThe playlist it shows: one of yours (
pll_).playersstring[]Your screens of kind
playerit applies to (scr_ids): the whole list.androidsstring[]Your screens of kind
androidit applies to (scr_ids): the whole list.availableFromstring | nullFirst day it applies. ISO-8601; null for none.
availableTostring | nullLast day it applies. ISO-8601; null for none.
weekdaysinteger[]Days of the week it applies, 0 (Sunday) to 6: the whole list.
timeFromobjectWhen the window opens each day. A time, or a prayer with an offset: not both.
Show child attributes (4)
timestring · HH:mm | nullA wall-clock time,
HH:mm(00:00 to 23:59).prayerfajr | sunrise | dhuhr | asr | maghrib | isha | nullThe prayer it is relative to.
prayerTypeathan | iqamah | nullWhich time of that prayer.
offsetinteger | nullMinutes after (positive) or before (negative) that prayer time, -1440 to 1440.
timeToobjectWhen the window closes each day. A time, or a prayer with an offset: not both.
Show child attributes (4)
timestring · HH:mm | nullA wall-clock time,
HH:mm(00:00 to 23:59).prayerfajr | sunrise | dhuhr | asr | maghrib | isha | nullThe prayer it is relative to.
prayerTypeathan | iqamah | nullWhich time of that prayer.
offsetinteger | nullMinutes after (positive) or before (negative) that prayer time, -1440 to 1440.
Returns
The playlist schedule, as stored.
objectplaylist_scheduleAlways
playlist_schedule.idstringThe schedule id.
playlistobject | nullThe playlist it shows; null when that playlist no longer exists.
Show child attributes (2)
idstringThe playlist id.
namestring | nullIts name.
playersstring[]Your screens of kind
playerit applies to.androidsstring[]Your screens of kind
androidit applies to.availableFromstring | nullFirst day it applies; null for no start (ISO-8601).
availableTostring | nullLast day it applies; null for no end (ISO-8601).
weekdaysnumber[]Days of the week it applies, 0 (Sunday) to 6.
timeFromobjectWhen the window opens each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
timeToobjectWhen the window closes each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X POST "https://hub.masjidbox.com/v1/masjid/playlist-schedules" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"players":["scr_6af5c9e2bc095fbd2dc5735a"],"playlist":"pll_6af5c9e2bc095fbd2dc5735b","weekdays":[5]}'{
"players": [
"scr_6af5c9e2bc095fbd2dc5735a"
],
"playlist": "pll_6af5c9e2bc095fbd2dc5735b",
"weekdays": [
5
]
}{
"androids": [],
"availableFrom": "2026-03-01T00:00:00.000Z",
"availableTo": "2026-03-30T00:00:00.000Z",
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "psc_6af5c9e2bc095fbd2dc5735c",
"object": "playlist_schedule",
"players": [
"scr_6af5c9e2bc095fbd2dc5735a"
],
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Friday"
},
"timeFrom": {
"offset": null,
"prayer": null,
"prayerType": null,
"time": "12:00"
},
"timeTo": {
"offset": 30,
"prayer": "dhuhr",
"prayerType": "iqamah",
"time": null
},
"updatedAt": "2026-11-12T08:00:00.000Z",
"weekdays": [
5
]
}Change a playlist schedule
PATCH/v1/masjid/playlist-schedules/{id}
A merge: a field you leave out stays, a list (players, androids, weekdays) is replaced whole. A playlist or a screen that is not your organization's is a 404, and nothing is written. Needs a secret key with Screens: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
idstring · pathrequiredThe playlist schedule id.
Request body
playliststringThe playlist it shows: one of yours (
pll_).playersstring[]Your screens of kind
playerit applies to (scr_ids): the whole list.androidsstring[]Your screens of kind
androidit applies to (scr_ids): the whole list.availableFromstring | nullFirst day it applies. ISO-8601; null for none.
availableTostring | nullLast day it applies. ISO-8601; null for none.
weekdaysinteger[]Days of the week it applies, 0 (Sunday) to 6: the whole list.
timeFromobjectWhen the window opens each day. A time, or a prayer with an offset: not both.
Show child attributes (4)
timestring · HH:mm | nullA wall-clock time,
HH:mm(00:00 to 23:59).prayerfajr | sunrise | dhuhr | asr | maghrib | isha | nullThe prayer it is relative to.
prayerTypeathan | iqamah | nullWhich time of that prayer.
offsetinteger | nullMinutes after (positive) or before (negative) that prayer time, -1440 to 1440.
timeToobjectWhen the window closes each day. A time, or a prayer with an offset: not both.
Show child attributes (4)
timestring · HH:mm | nullA wall-clock time,
HH:mm(00:00 to 23:59).prayerfajr | sunrise | dhuhr | asr | maghrib | isha | nullThe prayer it is relative to.
prayerTypeathan | iqamah | nullWhich time of that prayer.
offsetinteger | nullMinutes after (positive) or before (negative) that prayer time, -1440 to 1440.
Returns
The playlist schedule after the change.
objectplaylist_scheduleAlways
playlist_schedule.idstringThe schedule id.
playlistobject | nullThe playlist it shows; null when that playlist no longer exists.
Show child attributes (2)
idstringThe playlist id.
namestring | nullIts name.
playersstring[]Your screens of kind
playerit applies to.androidsstring[]Your screens of kind
androidit applies to.availableFromstring | nullFirst day it applies; null for no start (ISO-8601).
availableTostring | nullLast day it applies; null for no end (ISO-8601).
weekdaysnumber[]Days of the week it applies, 0 (Sunday) to 6.
timeFromobjectWhen the window opens each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
timeToobjectWhen the window closes each day.
Show child attributes (4)
timestring | nullA wall-clock time,
HH:mm; null when relative to a prayer.prayerstring | nullThe prayer it is relative to; null for a time.
prayerTypestring | nullWhich time of that prayer:
athanoriqamah.offsetnumber | nullMinutes after (positive) or before (negative) it.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/playlist-schedules/psc_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"weekdays":[4,5]}'{
"weekdays": [
4,
5
]
}{
"androids": [],
"availableFrom": "2026-03-01T00:00:00.000Z",
"availableTo": "2026-03-30T00:00:00.000Z",
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "psc_6af5c9e2bc095fbd2dc5735c",
"object": "playlist_schedule",
"players": [
"scr_6af5c9e2bc095fbd2dc5735a"
],
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Friday"
},
"timeFrom": {
"offset": null,
"prayer": null,
"prayerType": null,
"time": "12:00"
},
"timeTo": {
"offset": 30,
"prayer": "dhuhr",
"prayerType": "iqamah",
"time": null
},
"updatedAt": "2026-11-12T08:00:00.000Z",
"weekdays": [
5
]
}Delete a playlist schedule
DELETE/v1/masjid/playlist-schedules/{id}
Deletes a schedule: its screens go back to the playlist they play. The playlist itself stays. Needs a secret key with Screens: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
idstring · pathrequiredThe playlist schedule id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/playlist-schedules/psc_6af5c9e2bc095fbd2dc5735c" \
-H "Authorization: Bearer $MASJIDBOX_KEY"