Your masjid · Screens

Your screen settings

The settings every screen follows: languages, how prayer times show, what shows during the prayers, alerts, branding and duas.

Right on the key: Screens: read for a read, edit (secret key) for a write.

Your screen settings

Masjid key · Screens: read

GET/v1/masjid/screen-settings

The settings every screen of your organization follows: languages, how prayer times show, what shows during the prayers, alert durations and sounds, branding, duas and label overrides. Needs Screens: read.

Parameters

No parameters.

Returns

The screen settings.

  • objectscreen_settings

    Always screen_settings.

  • languagesstring[]

    Languages the screens cycle through.

  • languageDelaynumber | null

    Seconds each language stays before the next.

  • customRemindersboolean | null

    You show your own reminders.

  • timesobject

    How prayer times are shown.

    Show child attributes (7)
    • showTomorrowboolean | null

      Tomorrow's times are shown.

    • hideTomorrowIndicatorboolean | null

      The "tomorrow" indicator is hidden.

    • athanboolean | null

      The athan times are shown.

    • iqamahboolean | null

      The iqamah times are shown.

    • iqamahTypestandard | delay | null

      Iqamah shown as a time or as a delay.

    • highlightathan | iqamah | null

      Which time of the next prayer is highlighted.

    • hideSunriseboolean | null

      Sunrise is hidden.

  • blackScreenobject

    What the screens show during the prayers.

    Show child attributes (2)
    • salatoff | black | default | null

      What the screens show during the prayer.

    • jumuahoff | black | default | null

      What the screens show during Jumu'ah.

  • iqamahCountdownTypeoff | badge | banner | null

    How the countdown to iqamah is shown.

  • hideobject

    Parts of the screen that are hidden.

    Show child attributes (2)
    • statusboolean | null

      The status bar is hidden.

    • alertsboolean | null

      The alerts are hidden.

  • alertsobject

    Durations of the prayer alerts.

    Show child attributes (10)
    • athannumber | null

      Seconds the athan alert stays.

    • athanDuanumber | null

      Seconds the dua after the athan stays.

    • iqamahnumber | null

      Seconds the iqamah alert stays.

    • fajrnumber | null

      Minutes the Fajr prayer lasts.

    • dhuhrnumber | null

      Minutes the Dhuhr prayer lasts.

    • jumuahnumber | null

      Minutes Jumu'ah lasts.

    • asrnumber | null

      Minutes the Asr prayer lasts.

    • maghribnumber | null

      Minutes the Maghrib prayer lasts.

    • ishanumber | null

      Minutes the Isha prayer lasts.

    • tasbeehnumber | null

      Seconds the tasbeeh stays.

  • audioAlertobject

    Sounds played at the athan and the iqamah.

    Show child attributes (6)
    • athanobject

      Sound of the athan.

    • athan.genreoff | bip | audio | null

      Sound played at the athan: none, a beep, or the audio.

    • athan.audiostring | null

      The audio played at the athan.

    • iqamahobject

      Sound of the iqamah.

    • iqamah.genreoff | bip | audio | null

      Sound played at the iqamah: none, a beep, or the audio.

    • iqamah.audiostring | null

      The audio played at the iqamah.

  • brandingobject

    Branding shown on the screens.

    Show child attributes (2)
    • logostring | null

      The logo shown on the screens.

    • platformboolean | null

      The Masjidbox branding is shown.

  • duasobject

    Your own duas.

    Show child attributes (2)
    • afterAzanobject[]

      Duas shown after the athan.

    • tasbeehobject[]

      Tasbeeh shown after the prayer.

  • translationsobject[]

    Label overrides, one entry per language.

    Show child attributes (2)
    • codestring | null

      The language.

    • labelsobject

      Label overrides, by label key.

  • createdAtstring | null

    When the settings were created (ISO-8601).

  • updatedAtstring | null

    When they last changed (ISO-8601).

GET /v1/masjid/screen-settings
curl "https://hub.masjidbox.com/v1/masjid/screen-settings" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidScreenSettings
{
  "alerts": {
    "athan": 60,
    "athanDua": 60,
    "iqamah": 60,
    "fajr": 10,
    "dhuhr": 10,
    "jumuah": 45,
    "asr": 10,
    "maghrib": 10,
    "isha": 10,
    "tasbeeh": 60
  },
  "audioAlert": {
    "athan": {
      "audio": "https://cdn.example.org/athan.mp3",
      "genre": "audio"
    },
    "iqamah": {
      "audio": null,
      "genre": "bip"
    }
  },
  "blackScreen": {
    "jumuah": "black",
    "salat": "default"
  },
  "branding": {
    "logo": "https://cdn.example.org/logo.webp",
    "platform": true
  },
  "createdAt": "2026-11-12T08:00:00.000Z",
  "customReminders": false,
  "duas": {
    "afterAzan": [
      {
        "en": {
          "text": "Dua",
          "trans": "Transliteration"
        }
      }
    ],
    "tasbeeh": []
  },
  "hide": {
    "alerts": false,
    "status": false
  },
  "iqamahCountdownType": "banner",
  "languageDelay": 10,
  "languages": [
    "en",
    "ar"
  ],
  "object": "screen_settings",
  "times": {
    "athan": true,
    "hideSunrise": false,
    "hideTomorrowIndicator": false,
    "highlight": "athan",
    "iqamah": true,
    "iqamahType": "standard",
    "showTomorrow": false
  },
  "translations": [
    {
      "code": "fr",
      "labels": {
        "PRAYER_FAJR": "Sobh"
      }
    }
  ],
  "updatedAt": "2026-11-12T08:00:00.000Z"
}

Change your screen settings

Masjid key · secret · Screens: edit

PATCH/v1/masjid/screen-settings

A merge into the stored settings, as the dashboard's: a nested object keeps the fields it does not name, a list (languages, duas.*, translations) is replaced whole. Every duration is an integer of 0 to 3600, every URL https. Every screen follows 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

No parameters.

Request body

  • languagesstring[]

    Languages the screens cycle through, up to 10: the whole list.

  • languageDelayinteger

    Seconds each language stays before the next. An integer, 0 to 3600.

  • customRemindersboolean

    You show your own reminders.

  • timesobject

    How prayer times are shown; the fields named merge.

    Show child attributes (7)
    • showTomorrowboolean

      Tomorrow's times are shown.

    • hideTomorrowIndicatorboolean

      The "tomorrow" indicator is hidden.

    • athanboolean

      The athan times are shown.

    • iqamahboolean

      The iqamah times are shown.

    • iqamahTypestandard | delay

      Iqamah shown as a time or as a delay.

    • highlightathan | iqamah

      Which time of the next prayer is highlighted.

    • hideSunriseboolean

      Sunrise is hidden.

  • blackScreenobject

    What the screens show during the prayers.

    Show child attributes (2)
    • salatoff | black | default

      What the screens show during the prayer.

    • jumuahoff | black | default

      What the screens show during Jumu'ah.

  • iqamahCountdownTypeoff | badge | banner

    How the countdown to iqamah is shown.

  • hideobject

    Parts of the screen that are hidden.

    Show child attributes (2)
    • statusboolean

      The status bar is hidden.

    • alertsboolean

      The alerts are hidden.

  • alertsobject

    Durations of the prayer alerts; the fields named merge.

    Show child attributes (10)
    • athaninteger

      Seconds the athan alert stays. An integer, 0 to 3600.

    • athanDuainteger

      Seconds the dua after the athan stays. An integer, 0 to 3600.

    • iqamahinteger

      Seconds the iqamah alert stays. An integer, 0 to 3600.

    • fajrinteger

      Minutes the Fajr prayer lasts. An integer, 0 to 3600.

    • dhuhrinteger

      Minutes the Dhuhr prayer lasts. An integer, 0 to 3600.

    • jumuahinteger

      Minutes Jumu'ah lasts. An integer, 0 to 3600.

    • asrinteger

      Minutes the Asr prayer lasts. An integer, 0 to 3600.

    • maghribinteger

      Minutes the Maghrib prayer lasts. An integer, 0 to 3600.

    • ishainteger

      Minutes the Isha prayer lasts. An integer, 0 to 3600.

    • tasbeehinteger

      Seconds the tasbeeh stays. An integer, 0 to 3600.

  • audioAlertobject

    Sounds played at the athan and the iqamah.

    Show child attributes (6)
    • athanobject

      Sound of the athan.

    • athan.genreoff | bip | audio

      Sound played at the athan: none (off), a beep (bip), or the audio.

    • athan.audiostring | null

      The audio played at the athan. An https URL; null removes it.

    • iqamahobject

      Sound of the iqamah.

    • iqamah.genreoff | bip | audio

      Sound played at the iqamah: none (off), a beep (bip), or the audio.

    • iqamah.audiostring | null

      The audio played at the iqamah. An https URL; null removes it.

  • brandingobject

    Branding shown on the screens.

    Show child attributes (2)
    • logostring | null

      The logo shown on the screens. An https URL; null removes it.

    • platformboolean

      The Masjidbox branding is shown.

  • duasobject

    Your own duas.

    Show child attributes (2)
    • afterAzanobject[]

      Duas shown after the athan: the whole list.

    • tasbeehobject[]

      Tasbeeh shown after the prayer: the whole list.

  • translationsobject[]

    Label overrides, one entry per language: the whole list.

    Show child attributes (2)
    • codestringrequired

      The language.

    • labelsobjectrequired

      Label overrides, by label key.

Returns

The screen settings after the change.

  • objectscreen_settings

    Always screen_settings.

  • languagesstring[]

    Languages the screens cycle through.

  • languageDelaynumber | null

    Seconds each language stays before the next.

  • customRemindersboolean | null

    You show your own reminders.

  • timesobject

    How prayer times are shown.

    Show child attributes (7)
    • showTomorrowboolean | null

      Tomorrow's times are shown.

    • hideTomorrowIndicatorboolean | null

      The "tomorrow" indicator is hidden.

    • athanboolean | null

      The athan times are shown.

    • iqamahboolean | null

      The iqamah times are shown.

    • iqamahTypestandard | delay | null

      Iqamah shown as a time or as a delay.

    • highlightathan | iqamah | null

      Which time of the next prayer is highlighted.

    • hideSunriseboolean | null

      Sunrise is hidden.

  • blackScreenobject

    What the screens show during the prayers.

    Show child attributes (2)
    • salatoff | black | default | null

      What the screens show during the prayer.

    • jumuahoff | black | default | null

      What the screens show during Jumu'ah.

  • iqamahCountdownTypeoff | badge | banner | null

    How the countdown to iqamah is shown.

  • hideobject

    Parts of the screen that are hidden.

    Show child attributes (2)
    • statusboolean | null

      The status bar is hidden.

    • alertsboolean | null

      The alerts are hidden.

  • alertsobject

    Durations of the prayer alerts.

    Show child attributes (10)
    • athannumber | null

      Seconds the athan alert stays.

    • athanDuanumber | null

      Seconds the dua after the athan stays.

    • iqamahnumber | null

      Seconds the iqamah alert stays.

    • fajrnumber | null

      Minutes the Fajr prayer lasts.

    • dhuhrnumber | null

      Minutes the Dhuhr prayer lasts.

    • jumuahnumber | null

      Minutes Jumu'ah lasts.

    • asrnumber | null

      Minutes the Asr prayer lasts.

    • maghribnumber | null

      Minutes the Maghrib prayer lasts.

    • ishanumber | null

      Minutes the Isha prayer lasts.

    • tasbeehnumber | null

      Seconds the tasbeeh stays.

  • audioAlertobject

    Sounds played at the athan and the iqamah.

    Show child attributes (6)
    • athanobject

      Sound of the athan.

    • athan.genreoff | bip | audio | null

      Sound played at the athan: none, a beep, or the audio.

    • athan.audiostring | null

      The audio played at the athan.

    • iqamahobject

      Sound of the iqamah.

    • iqamah.genreoff | bip | audio | null

      Sound played at the iqamah: none, a beep, or the audio.

    • iqamah.audiostring | null

      The audio played at the iqamah.

  • brandingobject

    Branding shown on the screens.

    Show child attributes (2)
    • logostring | null

      The logo shown on the screens.

    • platformboolean | null

      The Masjidbox branding is shown.

  • duasobject

    Your own duas.

    Show child attributes (2)
    • afterAzanobject[]

      Duas shown after the athan.

    • tasbeehobject[]

      Tasbeeh shown after the prayer.

  • translationsobject[]

    Label overrides, one entry per language.

    Show child attributes (2)
    • codestring | null

      The language.

    • labelsobject

      Label overrides, by label key.

  • createdAtstring | null

    When the settings were created (ISO-8601).

  • updatedAtstring | null

    When they last changed (ISO-8601).

PATCH /v1/masjid/screen-settings
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/screen-settings" \
  -H "Authorization: Bearer $MASJIDBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"alerts":{"athan":60},"languages":["en","ar"]}'
Example request · MasjidScreenSettingsPatch
{
  "alerts": {
    "athan": 60
  },
  "languages": [
    "en",
    "ar"
  ]
}
200 · MasjidScreenSettings
{
  "alerts": {
    "athan": 60,
    "athanDua": 60,
    "iqamah": 60,
    "fajr": 10,
    "dhuhr": 10,
    "jumuah": 45,
    "asr": 10,
    "maghrib": 10,
    "isha": 10,
    "tasbeeh": 60
  },
  "audioAlert": {
    "athan": {
      "audio": "https://cdn.example.org/athan.mp3",
      "genre": "audio"
    },
    "iqamah": {
      "audio": null,
      "genre": "bip"
    }
  },
  "blackScreen": {
    "jumuah": "black",
    "salat": "default"
  },
  "branding": {
    "logo": "https://cdn.example.org/logo.webp",
    "platform": true
  },
  "createdAt": "2026-11-12T08:00:00.000Z",
  "customReminders": false,
  "duas": {
    "afterAzan": [
      {
        "en": {
          "text": "Dua",
          "trans": "Transliteration"
        }
      }
    ],
    "tasbeeh": []
  },
  "hide": {
    "alerts": false,
    "status": false
  },
  "iqamahCountdownType": "banner",
  "languageDelay": 10,
  "languages": [
    "en",
    "ar"
  ],
  "object": "screen_settings",
  "times": {
    "athan": true,
    "hideSunrise": false,
    "hideTomorrowIndicator": false,
    "highlight": "athan",
    "iqamah": true,
    "iqamahType": "standard",
    "showTomorrow": false
  },
  "translations": [
    {
      "code": "fr",
      "labels": {
        "PRAYER_FAJR": "Sobh"
      }
    }
  ],
  "updatedAt": "2026-11-12T08:00:00.000Z"
}