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

Masjid key · Screens: read

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 · query

    Items per page, 1 to 100.

  • cursorstring · query

    The previous page's pagination.nextCursor; absent for the first page.

Returns

A page of screens.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (14)
    • objectscreen

      Always screen.

    • idstring

      The screen id.

    • kindplayer | android | tizen

      The family: a Masjidbox box (player), an Android or a Tizen screen.

    • namestring | null

      The name you gave it.

    • statusstring | null

      Its last reported status.

    • statusUpdatedAtstring | null

      When it last reported its status (ISO-8601).

    • onlineAtstring | null

      When it was last seen online (ISO-8601).

    • playlistobject | null

      The playlist it plays; null for none.

    • playlist.idstring

      The playlist id.

    • playlist.namestring | null

      Its name.

    • orientationstring | null

      How it renders: portrait, landscape, …; null when its family has none.

    • versionstring | null

      The version of the app it runs.

    • createdAtstring | null

      When it was paired (ISO-8601).

    • updatedAtstring | null

      When it last changed (ISO-8601).

  • paginationobject

    Where this page stands.

    Show child attributes (3)
    • limitinteger

      The page size asked for.

    • hasMoreboolean

      Whether another page follows: stop on false, never on a short page.

    • nextCursorstring | null

      The cursor of the next page; null on the last one.

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

Masjid key · Screens: read

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 · pathrequired

    The screen id.

Returns

The screen.

  • objectscreen

    Always screen.

  • idstring

    The screen id.

  • kindplayer | android | tizen

    The family: a Masjidbox box (player), an Android or a Tizen screen.

  • namestring | null

    The name you gave it.

  • statusstring | null

    Its last reported status.

  • statusUpdatedAtstring | null

    When it last reported its status (ISO-8601).

  • onlineAtstring | null

    When it was last seen online (ISO-8601).

  • playlistobject | null

    The playlist it plays; null for none.

    Show child attributes (2)
    • idstring

      The playlist id.

    • namestring | null

      Its name.

  • orientationstring | null

    How it renders: portrait, landscape, …; null when its family has none.

  • versionstring | null

    The version of the app it runs.

  • createdAtstring | null

    When it was paired (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

GET /v1/masjid/screens/{id}
curl "https://hub.masjidbox.com/v1/masjid/screens/scr_6af5c9e2bc095fbd2dc5735a" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidScreen
{
  "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

Masjid key · secret · Screens: edit

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 · pathrequired

    The screen id.

Request body

  • namestring

    Its new name.

  • playliststring | null

    One of your playlists (pll_) for it to play; null leaves it without one.

Returns

The screen after the change.

  • objectscreen

    Always screen.

  • idstring

    The screen id.

  • kindplayer | android | tizen

    The family: a Masjidbox box (player), an Android or a Tizen screen.

  • namestring | null

    The name you gave it.

  • statusstring | null

    Its last reported status.

  • statusUpdatedAtstring | null

    When it last reported its status (ISO-8601).

  • onlineAtstring | null

    When it was last seen online (ISO-8601).

  • playlistobject | null

    The playlist it plays; null for none.

    Show child attributes (2)
    • idstring

      The playlist id.

    • namestring | null

      Its name.

  • orientationstring | null

    How it renders: portrait, landscape, …; null when its family has none.

  • versionstring | null

    The version of the app it runs.

  • createdAtstring | null

    When it was paired (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

PATCH /v1/masjid/screens/{id}
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"}'
Example request · MasjidScreenPatch
{
  "name": "Entrance",
  "playlist": "pll_6af5c9e2bc095fbd2dc5735b"
}
200 · MasjidScreen
{
  "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"
}