Your masjid · Screens
Your playlists
The playlists your screens play and their slides, each typed by its type: create one, change it, delete it.
Right on the key: Screens: read for a read, edit (secret key) for a write.
Your playlists
GET/v1/masjid/playlists
The playlists your screens play, with their slides, 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 playlists.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (11)
objectplaylistAlways
playlist.idstringThe playlist id.
namestring | nullIts name.
directionstring | nullIts text direction.
hideTopBarboolean | nullThe top bar is hidden; null follows the settings.
languagesstring[]Languages it cycles through.
languageDelaynumber | nullSeconds each language stays; null follows the settings.
themeobjectColours, fonts and backgrounds, as stored.
slidesany[]Its slides, in order: each typed by its
type(MasjidPlaylistSlide), or as stored for a slide written before the slides were typed that does not parse as its type.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/playlists" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"createdAt": "2026-11-12T08:00:00.000Z",
"direction": "ltr",
"hideTopBar": false,
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"languageDelay": 10,
"languages": [
"en",
"ar"
],
"name": "Main hall",
"object": "playlist",
"slides": [
{
"delay": 10,
"showHijri": true,
"type": "clock"
}
],
"theme": {
"background": "#000000"
},
"updatedAt": "2026-11-12T08:00:00.000Z"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your playlists
GET/v1/masjid/playlists/{id}
A playlist and its slides, in order: each typed by its type (MasjidPlaylistSlide), the content ids it names under their public prefix; a slide stored before the slides were typed that does not parse as its type is answered as stored. Needs Screens: read.
Parameters
idstring · pathrequiredThe playlist id.
Returns
The playlist.
objectplaylistAlways
playlist.idstringThe playlist id.
namestring | nullIts name.
directionstring | nullIts text direction.
hideTopBarboolean | nullThe top bar is hidden; null follows the settings.
languagesstring[]Languages it cycles through.
languageDelaynumber | nullSeconds each language stays; null follows the settings.
themeobjectColours, fonts and backgrounds, as stored.
slidesany[]Its slides, in order: each typed by its
type(MasjidPlaylistSlide), or as stored for a slide written before the slides were typed that does not parse as its type.createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/playlists/pll_6af5c9e2bc095fbd2dc5735b" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"createdAt": "2026-11-12T08:00:00.000Z",
"direction": "ltr",
"hideTopBar": false,
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"languageDelay": 10,
"languages": [
"en",
"ar"
],
"name": "Main hall",
"object": "playlist",
"slides": [
{
"delay": 10,
"showHijri": true,
"type": "clock"
}
],
"theme": {
"background": "#000000"
},
"updatedAt": "2026-11-12T08:00:00.000Z"
}Create a playlist
POST/v1/masjid/playlists
Creates a playlist as the dashboard does: its name, text direction, languages and slides. The slides are typed: each by its type, with the fields of that type only (MasjidPlaylistSlide, 23 types); an unknown key, a field of another type or an unknown type is a 400, and every URL is https. A media, announcement, event or donation campaign a slide names is one of yours, by its public id (med_, ann_, evt_, cmp_): another organization's renders nothing. A request body is at most 16 KB, about a hundred slides. The theme is not written by the API. It plays nowhere until a screen or a schedule names it. 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
namestringrequiredIts name.
directionltr | rtlIts text direction: left to right, or right to left.
hideTopBarboolean | nullThe top bar is hidden; null follows the screen settings again.
languagesstring[]Languages it cycles through.
languageDelayinteger | nullSeconds each language stays, 0 to 3600; null follows the screen settings again.
slidesany[]Its slides, in the order they play: the whole list, each typed by its
type(MasjidPlaylistSlide). An unknown key, a field of another type or an unknown type is a 400.
Returns
The playlist, as stored.
objectplaylistAlways
playlist.idstringThe playlist id.
namestring | nullIts name.
directionstring | nullIts text direction.
hideTopBarboolean | nullThe top bar is hidden; null follows the settings.
languagesstring[]Languages it cycles through.
languageDelaynumber | nullSeconds each language stays; null follows the settings.
themeobjectColours, fonts and backgrounds, as stored.
slidesany[]Its slides, in order: each typed by its
type(MasjidPlaylistSlide), or as stored for a slide written before the slides were typed that does not parse as its type.createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X POST "https://hub.masjidbox.com/v1/masjid/playlists" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Friday","slides":[{"delay":20,"layout":"fullscreen","showIqamah":true,"type":"prayers"}]}'{
"name": "Friday",
"slides": [
{
"delay": 20,
"layout": "fullscreen",
"showIqamah": true,
"type": "prayers"
}
]
}{
"createdAt": "2026-11-12T08:00:00.000Z",
"direction": "ltr",
"hideTopBar": false,
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"languageDelay": 10,
"languages": [
"en",
"ar"
],
"name": "Main hall",
"object": "playlist",
"slides": [
{
"delay": 10,
"showHijri": true,
"type": "clock"
}
],
"theme": {
"background": "#000000"
},
"updatedAt": "2026-11-12T08:00:00.000Z"
}Change a playlist
PATCH/v1/masjid/playlists/{id}
A merge: a field you leave out stays, a slides list replaces the slides whole ([] empties them), null resets hideTopBar and languageDelay to your screen settings. The slides are typed: each by its type, with the fields of that type only (MasjidPlaylistSlide, 23 types); an unknown key, a field of another type or an unknown type is a 400, and every URL is https. A media, announcement, event or donation campaign a slide names is one of yours, by its public id (med_, ann_, evt_, cmp_): another organization's renders nothing. A request body is at most 16 KB, about a hundred slides. Every screen playing it shows the change at its next refresh. 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 id.
Request body
namestringIts name.
directionltr | rtlIts text direction: left to right, or right to left.
hideTopBarboolean | nullThe top bar is hidden; null follows the screen settings again.
languagesstring[]Languages it cycles through.
languageDelayinteger | nullSeconds each language stays, 0 to 3600; null follows the screen settings again.
slidesany[]Its slides, in the order they play: the whole list, each typed by its
type(MasjidPlaylistSlide). An unknown key, a field of another type or an unknown type is a 400.
Returns
The playlist after the change.
objectplaylistAlways
playlist.idstringThe playlist id.
namestring | nullIts name.
directionstring | nullIts text direction.
hideTopBarboolean | nullThe top bar is hidden; null follows the settings.
languagesstring[]Languages it cycles through.
languageDelaynumber | nullSeconds each language stays; null follows the settings.
themeobjectColours, fonts and backgrounds, as stored.
slidesany[]Its slides, in order: each typed by its
type(MasjidPlaylistSlide), or as stored for a slide written before the slides were typed that does not parse as its type.createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/playlists/pll_6af5c9e2bc095fbd2dc5735b" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"slides":[{"delay":20,"showHijri":true,"type":"clock"}]}'{
"slides": [
{
"delay": 20,
"showHijri": true,
"type": "clock"
}
]
}{
"createdAt": "2026-11-12T08:00:00.000Z",
"direction": "ltr",
"hideTopBar": false,
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"languageDelay": 10,
"languages": [
"en",
"ar"
],
"name": "Main hall",
"object": "playlist",
"slides": [
{
"delay": 10,
"showHijri": true,
"type": "clock"
}
],
"theme": {
"background": "#000000"
},
"updatedAt": "2026-11-12T08:00:00.000Z"
}Delete a playlist
DELETE/v1/masjid/playlists/{id}
Deletes a playlist for good. Point the screens that play it at another one first (PATCH /v1/masjid/screens/{id}); a schedule that showed it stays, its playlist null, and shows nothing. 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 id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/playlists/pll_6af5c9e2bc095fbd2dc5735b" \
-H "Authorization: Bearer $MASJIDBOX_KEY"