Your masjid · Screens
Your screens
Every screen of your organization, the three families together: rename one, or change the playlist it plays. Never a device credential.
Right on the key: Screens: read for a read, edit (secret key) for a write.
Your screens
GET/v1/masjid/screens
Every screen of your organization, the three families (player, android, tizen) together, 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 screens.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (14)
objectscreenAlways
screen.idstringThe screen id.
kindplayer | android | tizenThe family: a Masjidbox box (
player), an Android or a Tizen screen.namestring | nullThe name you gave it.
statusstring | nullIts last reported status.
statusUpdatedAtstring | nullWhen it last reported its status (ISO-8601).
onlineAtstring | nullWhen it was last seen online (ISO-8601).
playlistobject | nullThe playlist it plays; null for none.
playlist.idstringThe playlist id.
playlist.namestring | nullIts name.
orientationstring | nullHow it renders:
portrait,landscape, …; null when its family has none.versionstring | nullThe version of the app it runs.
createdAtstring | nullWhen it was paired (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/screens" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "scr_6af5c9e2bc095fbd2dc5735a",
"kind": "android",
"name": "Prayer hall left",
"object": "screen",
"onlineAt": "2026-11-12T08:00:00.000Z",
"orientation": "landscape",
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Main hall"
},
"status": "online",
"statusUpdatedAt": "2026-11-12T08:00:00.000Z",
"updatedAt": "2026-11-12T08:00:00.000Z",
"version": "4.1.0"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your screens
GET/v1/masjid/screens/{id}
A screen of your organization: its name, status, when it was last seen, the playlist it plays, its orientation and version. Needs Screens: read.
Parameters
idstring · pathrequiredThe screen id.
Returns
The screen.
objectscreenAlways
screen.idstringThe screen id.
kindplayer | android | tizenThe family: a Masjidbox box (
player), an Android or a Tizen screen.namestring | nullThe name you gave it.
statusstring | nullIts last reported status.
statusUpdatedAtstring | nullWhen it last reported its status (ISO-8601).
onlineAtstring | nullWhen it was last seen online (ISO-8601).
playlistobject | nullThe playlist it plays; null for none.
Show child attributes (2)
idstringThe playlist id.
namestring | nullIts name.
orientationstring | nullHow it renders:
portrait,landscape, …; null when its family has none.versionstring | nullThe version of the app it runs.
createdAtstring | nullWhen it was paired (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/screens/scr_6af5c9e2bc095fbd2dc5735a" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "scr_6af5c9e2bc095fbd2dc5735a",
"kind": "android",
"name": "Prayer hall left",
"object": "screen",
"onlineAt": "2026-11-12T08:00:00.000Z",
"orientation": "landscape",
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Main hall"
},
"status": "online",
"statusUpdatedAt": "2026-11-12T08:00:00.000Z",
"updatedAt": "2026-11-12T08:00:00.000Z",
"version": "4.1.0"
}Rename a screen or change its playlist
PATCH/v1/masjid/screens/{id}
Changes a screen's name and the playlist it plays (pll_ id; null for none), nothing else; the screen plays the new playlist at its next refresh. A playlist that is not your organization's is a 404, and nothing changes. 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 screen id.
Request body
namestringIts new name.
playliststring | nullOne of your playlists (
pll_) for it to play; null leaves it without one.
Returns
The screen after the change.
objectscreenAlways
screen.idstringThe screen id.
kindplayer | android | tizenThe family: a Masjidbox box (
player), an Android or a Tizen screen.namestring | nullThe name you gave it.
statusstring | nullIts last reported status.
statusUpdatedAtstring | nullWhen it last reported its status (ISO-8601).
onlineAtstring | nullWhen it was last seen online (ISO-8601).
playlistobject | nullThe playlist it plays; null for none.
Show child attributes (2)
idstringThe playlist id.
namestring | nullIts name.
orientationstring | nullHow it renders:
portrait,landscape, …; null when its family has none.versionstring | nullThe version of the app it runs.
createdAtstring | nullWhen it was paired (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/screens/scr_6af5c9e2bc095fbd2dc5735a" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Entrance","playlist":"pll_6af5c9e2bc095fbd2dc5735b"}'{
"name": "Entrance",
"playlist": "pll_6af5c9e2bc095fbd2dc5735b"
}{
"createdAt": "2026-11-12T08:00:00.000Z",
"id": "scr_6af5c9e2bc095fbd2dc5735a",
"kind": "android",
"name": "Prayer hall left",
"object": "screen",
"onlineAt": "2026-11-12T08:00:00.000Z",
"orientation": "landscape",
"playlist": {
"id": "pll_6af5c9e2bc095fbd2dc5735b",
"name": "Main hall"
},
"status": "online",
"statusUpdatedAt": "2026-11-12T08:00:00.000Z",
"updatedAt": "2026-11-12T08:00:00.000Z",
"version": "4.1.0"
}