Documentation

One API for the prayer times of every masjid on Masjidbox, and for your own. The key you hold decides what you reach.

For developers

Developer key

Show the prayer times, jumu'ah and campaigns of any masjid on Masjidbox in your app, site or directory. Key from the developer console.

For your masjid

Masjid key

Read and update your own masjid's times from your website, your screens or your tools. Key from your Masjidbox dashboard.

API reference

  • Developer keyDeveloper sign-up

    How a developer’s agent creates the account and asks for its first project, with no browser: a code mailed to the person, then the project and its screenshots. Masjidbox staff review the project by hand before any key exists.

  • Developer keyMasjids

    The canonical public representation of one masjid. Find one by name or around a point, then read it by its id.

  • Developer keyPrayer times

    A masjid's prayer and jumu'ah times in its own timezone: wall-clock times, never converted to UTC.

  • Developer keyDonation campaigns

    A masjid's default donation campaign, amounts in minor units.

  • Developer keyContributions

    The pages hosted by Masjidbox your users open to add a missing masjid, claim one or report an error, credited to your project.

  • Masjid keyYour organization

    Your masjid's id, and your organization's name, contact, location, languages and timezone. A new address moves your computed prayer times.

  • Masjid keyYour masjid's profile

    The public profile of your masjid: contact, capacity, services, facilities and the prayers held there.

  • Masjid keyYour prayer times

    Your organization's prayer and iqama times for today, read with its own key. No masjid id to pass: the key says which organization it belongs to.

  • Masjid keyYour jumu'ah times

    Your organization's jumu'ah services, read with its own key and updated with a secret one.

  • Masjid keyYour athan

    Where your athan times come from (computed, or your full-year timetable), how they are computed and the rules on top of them. The source changes only when you send it.

  • Masjid keyYour iqama

    Where your iqama times come from (the rules, or your full-year timetable) and the rules: minutes after the athan, or a fixed time. The source changes only when you send it.

  • Masjid keyYour special times

    Imsak, iftar and taraweeh as your screens and apps show them: a fixed time, or minutes from a prayer.

  • Masjid keyYour full-year timetables

    Your athan and iqama times for a whole year, day by day, for the current year or the next one.

  • Masjid keyYour events

    Your organization's events, one-off or recurring, as the Masjidbox apps, pages and screens show them, with the media each one shows.

  • Masjid keyYour announcements

    The banners your apps and screens show: a text, its colours and an optional media.

  • Masjid keyYour media

    The pictures, videos and documents of your organization, the ones your events and announcements show.

  • Masjid keyYour news

    The news items of your organization, as the Masjidbox apps and pages show them: a title, a text and a media.

  • Masjid keyYour albums

    Photo and video albums: a cover and your media, in order.

  • Masjid keyYour collections

    Titled sets of your news or your events, in order.

  • Masjid keyYour polls

    Your polls and their results, counted per choice. Never a vote: a vote carries the voter's IP.

  • Masjid keyYour quizzes

    Your quizzes and their results, counted per answer. Never a play: a play carries the player's name and email.

  • Masjid keyAsk-the-imam questions

    The questions asked to your imam in the apps, with the asker's name and email. Every question operation needs a secret key, its reads too; an answer is mailed to the asker.

  • Masjid keyYour lives

    The live streams your apps and pages show. One at most is active: activating one deactivates the others.

  • Masjid keyYour One notifications

    The push notifications the Masjidbox One app sends for your masjid: to its followers and to the devices nearby, once.

  • Masjid keyYour One statistics

    How your masjid does in the Masjidbox One app: followers, follows, searches and the devices your notifications reached.

  • Masjid keyYour app's widget

    The widget of your app's home screen: its colours, its banner, its donation campaign and its text overrides.

  • Masjid keyYour app's popups

    The popups your app shows on the pages that name them: their texts, colours, image and button, and how often they show.

  • Masjid keyYour app's pages

    The pages of your app, their id and title, and the popup each shows: set one, or none.

  • Masjid keyYour app's scheduled pushes

    The pushes your app sends once, to every device of the app, at the time you schedule them.

  • Masjid keyYour app's recurring pushes

    The pushes your app sends again and again, daily, weekly or monthly, at a local time in the time zone you name.

  • Masjid keyYour app's one-time pushes

    The pushes your app sends at once, to every device of the app: a send cannot be recalled, a change only edits the app's list.

  • Masjid keyYour app figures

    What your app did on one platform over the last 30 days: downloads, versions, sessions, screen views, countries, languages and pages.

  • Masjid keyYour website

    Close your website, reopen it or put it in maintenance with a message: visitors see the change within minutes.

  • Masjid keyYour website figures

    What your website did over the last 30 days: pageviews, visitors, visits and their duration, by country, device, source and page.

  • Masjid keyYour website widgets

    The widgets your website embeds, the prayer times or a donation campaign, each under the public key of its embed snippet.

  • Masjid keyYour donation account

    Your organization's donation account: its currency, whether Stripe takes and pays out donations, and its default campaign. Never a Stripe id or a bank detail.

  • Masjid keyYour donation campaigns

    The campaigns your donors give to, each with what it collected. Change one, or close it with enabled: false: a campaign is never deleted.

  • Masjid keyYour donation figures

    What your organization collected over a range of days: totals, a series per period, and the split per source, frequency, campaign and card reader.

  • Masjid keyYour donations

    Every donation, by last change, narrowed if you need by payment date, campaign, status or amount: keep the last page's cursor and the next call reads only what changed. Donor names and emails need a secret key.

  • Masjid keyYour recurring donations

    The recurring donations of your donors, whatever their status, by last change. Donor names and emails need a secret key.

  • Masjid keyYour fiscal receipts

    The fiscal receipts issued for your donations, canceled ones included, by last change, and the PDF of each. They need a secret key.

  • Masjid keyYour Gift Aid declarations

    Your donors' UK Gift Aid declarations, by last change: the details HMRC reads, where HMRC is with each one and the claim it went into. They need a secret key.

  • Masjid keyYour Gift Aid claims

    The Gift Aid claims your organization sent, or will send, to HMRC: their status, counts and amounts, by last change. They need a secret key.

  • Masjid keyYour donors

    One row per donor, from their succeeded donations: what they gave over a period and ever, their first and latest gift, how their recurring donations stand, and whether they are new, returning or lapsed. They need a secret key.

  • Masjid keyYour screens

    Every screen of your organization, the three families together: rename one, or change the playlist it plays. Never a device credential.

  • Masjid keyYour screen settings

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

  • Masjid keyYour playlists

    The playlists your screens play and their slides, each typed by its type: create one, change it, delete it.

  • Masjid keyYour 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.

  • Masjid keyYour webhook endpoints

    The URLs Masjidbox posts your organization's events to, each signed with its endpoint's secret. They need a secret key.

  • Masjid keyWebhook deliveries

    What Masjidbox posted to each endpoint over 30 days, and a resend. They need a secret key.