# Masjidbox API hub > The Masjidbox API: third-party apps find a masjid by name or near a point and read its prayer times (athan, iqamah, jumu'ah) and its donation campaign with a free project key; a masjid's own key reads and edits its prayer times, content, notifications, donations, website and screens. Every docs page has its Markdown at the same address followed by `.md` (`?lang=fr` for French). The OpenAPI document of the public API: https://hub.masjidbox.com/openapi.json. Signing up from an agent: no account yet? You can create the account and request its first project for your person, without a browser: 1. `POST https://hub.masjidbox.com/api/public/developer/sign-up` with `{ "email" }`: a six-digit code is mailed to that address, valid 15 minutes. 2. Ask your person for the code, and whether they accept the developer terms (https://hub.masjidbox.com/terms). 3. `POST https://hub.masjidbox.com/api/public/developer/sign-up/verify` with `{ "email", "code", "acceptTerms": true, "account": { "name" }, "project": { "name", "platforms", "intendedUse", "link", "audience", "screenshots" } }`. The project needs an https `link` and 1 to 3 screenshots; the answer holds a presigned upload URL per screenshot and an `uploadToken`. 4. PUT each screenshot to its upload URL, then `POST https://hub.masjidbox.com/api/public/developer/sign-up/screenshots/{screenshotId}/confirm` with `{ "token": uploadToken }` (valid a day). Once every screenshot is confirmed, the project reaches review. Masjidbox staff review the project by hand: no key until it is approved, and your person is emailed the decision. They then sign in to the console to create the key. Details: https://hub.masjidbox.com/docs/quickstart.md. Every page below in one file: https://hub.masjidbox.com/llms-full.txt. ## Guides - [Quickstart](https://hub.masjidbox.com/docs/quickstart.md) - [Authentication](https://hub.masjidbox.com/docs/authentication.md) - [Attribution](https://hub.masjidbox.com/docs/attribution.md) - [Why contribute](https://hub.masjidbox.com/docs/why-contribute.md) - [Contributions](https://hub.masjidbox.com/docs/contributions.md) - [Limits & quotas](https://hub.masjidbox.com/docs/limits.md) - [Errors](https://hub.masjidbox.com/docs/errors.md) - [Request ids & logs](https://hub.masjidbox.com/docs/request-ids.md) - [Changelog](https://hub.masjidbox.com/docs/changelog.md) ## Masjid API guides - [Quickstart](https://hub.masjidbox.com/docs/masjid/quickstart.md) - [Keys & rights](https://hub.masjidbox.com/docs/masjid/keys.md) - [Limits](https://hub.masjidbox.com/docs/masjid/limits.md) - [Webhooks](https://hub.masjidbox.com/docs/masjid/webhooks.md) ## AI assistants (MCP) - [Connect an AI assistant](https://hub.masjidbox.com/docs/mcp.md) - [Using assistants safely](https://hub.masjidbox.com/docs/mcp/security.md) ## Public API reference (a developer key, for third-party apps) - [Developer sign-up](https://hub.masjidbox.com/docs/reference/developer-sign-up.md): 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. - [Masjids](https://hub.masjidbox.com/docs/reference/masjids.md): The canonical public representation of one masjid. Find one by name or around a point, then read it by its `id`. - [Prayer times](https://hub.masjidbox.com/docs/reference/prayer-times.md): A masjid's prayer and jumu'ah times in its own timezone: wall-clock times, never converted to UTC. - [Donation campaigns](https://hub.masjidbox.com/docs/reference/donation-campaigns.md): A masjid's default donation campaign, amounts in minor units. - [Contributions](https://hub.masjidbox.com/docs/reference/contributions.md): The pages hosted by Masjidbox your users open to add a missing masjid, claim one or report an error, credited to your project. ## Masjid API reference (a masjid's own key) - [Your organization](https://hub.masjidbox.com/docs/reference/masjid-organization.md): Your masjid's id, and your organization's name, contact, location, languages and timezone. A new address moves your computed prayer times. - [Your masjid's profile](https://hub.masjidbox.com/docs/reference/masjid-profile.md): The public profile of your masjid: contact, capacity, services, facilities and the prayers held there. - [Your prayer times](https://hub.masjidbox.com/docs/reference/masjid-prayer-times.md): 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. - [Your jumu'ah times](https://hub.masjidbox.com/docs/reference/masjid-jumuah-times.md): Your organization's jumu'ah services, read with its own key and updated with a secret one. - [Your athan](https://hub.masjidbox.com/docs/reference/masjid-athan.md): 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. - [Your iqama](https://hub.masjidbox.com/docs/reference/masjid-iqamah.md): 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. - [Your special times](https://hub.masjidbox.com/docs/reference/masjid-special-times.md): Imsak, iftar and taraweeh as your screens and apps show them: a fixed time, or minutes from a prayer. - [Your full-year timetables](https://hub.masjidbox.com/docs/reference/masjid-timetables.md): Your athan and iqama times for a whole year, day by day, for the current year or the next one. - [Your events](https://hub.masjidbox.com/docs/reference/masjid-events.md): Your organization's events, one-off or recurring, as the Masjidbox apps, pages and screens show them, with the media each one shows. - [Your announcements](https://hub.masjidbox.com/docs/reference/masjid-announcements.md): The banners your apps and screens show: a text, its colours and an optional media. - [Your media](https://hub.masjidbox.com/docs/reference/masjid-media.md): The pictures, videos and documents of your organization, the ones your events and announcements show. - [Your news](https://hub.masjidbox.com/docs/reference/masjid-news.md): The news items of your organization, as the Masjidbox apps and pages show them: a title, a text and a media. - [Your albums](https://hub.masjidbox.com/docs/reference/masjid-albums.md): Photo and video albums: a cover and your media, in order. - [Your collections](https://hub.masjidbox.com/docs/reference/masjid-collections.md): Titled sets of your news or your events, in order. - [Your polls](https://hub.masjidbox.com/docs/reference/masjid-polls.md): Your polls and their results, counted per choice. Never a vote: a vote carries the voter's IP. - [Your quizzes](https://hub.masjidbox.com/docs/reference/masjid-quizzes.md): Your quizzes and their results, counted per answer. Never a play: a play carries the player's name and email. - [Ask-the-imam questions](https://hub.masjidbox.com/docs/reference/masjid-questions.md): 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. - [Your lives](https://hub.masjidbox.com/docs/reference/masjid-lives.md): The live streams your apps and pages show. One at most is active: activating one deactivates the others. - [Your One notifications](https://hub.masjidbox.com/docs/reference/masjid-notifications.md): The push notifications the Masjidbox One app sends for your masjid: to its followers and to the devices nearby, once. - [Your One statistics](https://hub.masjidbox.com/docs/reference/masjid-one-stats.md): How your masjid does in the Masjidbox One app: followers, follows, searches and the devices your notifications reached. - [Your app's widget](https://hub.masjidbox.com/docs/reference/masjid-app-widget.md): The widget of your app's home screen: its colours, its banner, its donation campaign and its text overrides. - [Your app's popups](https://hub.masjidbox.com/docs/reference/masjid-app-popups.md): The popups your app shows on the pages that name them: their texts, colours, image and button, and how often they show. - [Your app's pages](https://hub.masjidbox.com/docs/reference/masjid-app-pages.md): The pages of your app, their id and title, and the popup each shows: set one, or none. - [Your app's scheduled pushes](https://hub.masjidbox.com/docs/reference/masjid-app-notifications.md): The pushes your app sends once, to every device of the app, at the time you schedule them. - [Your app's recurring pushes](https://hub.masjidbox.com/docs/reference/masjid-app-recurring-notifications.md): The pushes your app sends again and again, daily, weekly or monthly, at a local time in the time zone you name. - [Your app's one-time pushes](https://hub.masjidbox.com/docs/reference/masjid-app-one-time-notifications.md): 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. - [Your app figures](https://hub.masjidbox.com/docs/reference/masjid-app-stats.md): What your app did on one platform over the last 30 days: downloads, versions, sessions, screen views, countries, languages and pages. - [Your website](https://hub.masjidbox.com/docs/reference/masjid-website.md): Close your website, reopen it or put it in maintenance with a message: visitors see the change within minutes. - [Your website figures](https://hub.masjidbox.com/docs/reference/masjid-website-stats.md): What your website did over the last 30 days: pageviews, visitors, visits and their duration, by country, device, source and page. - [Your website widgets](https://hub.masjidbox.com/docs/reference/masjid-widgets.md): The widgets your website embeds, the prayer times or a donation campaign, each under the public key of its embed snippet. - [Your donation account](https://hub.masjidbox.com/docs/reference/masjid-donation-account.md): 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. - [Your donation campaigns](https://hub.masjidbox.com/docs/reference/masjid-donation-campaigns.md): The campaigns your donors give to, each with what it collected. Change one, or close it with `enabled: false`: a campaign is never deleted. - [Your donation figures](https://hub.masjidbox.com/docs/reference/masjid-donation-stats.md): What your organization collected over a range of days: totals, a series per period, and the split per source, frequency, campaign and card reader. - [Your donations](https://hub.masjidbox.com/docs/reference/masjid-donations.md): 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. - [Your recurring donations](https://hub.masjidbox.com/docs/reference/masjid-donation-subscriptions.md): The recurring donations of your donors, whatever their status, by last change. Donor names and emails need a secret key. - [Your fiscal receipts](https://hub.masjidbox.com/docs/reference/masjid-donation-receipts.md): The fiscal receipts issued for your donations, canceled ones included, by last change, and the PDF of each. They need a secret key. - [Your Gift Aid declarations](https://hub.masjidbox.com/docs/reference/masjid-gift-aid-declarations.md): 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. - [Your Gift Aid claims](https://hub.masjidbox.com/docs/reference/masjid-gift-aid-claims.md): 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. - [Your donors](https://hub.masjidbox.com/docs/reference/masjid-donors.md): 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. - [Your screens](https://hub.masjidbox.com/docs/reference/masjid-screens.md): Every screen of your organization, the three families together: rename one, or change the playlist it plays. Never a device credential. - [Your screen settings](https://hub.masjidbox.com/docs/reference/masjid-screen-settings.md): The settings every screen follows: languages, how prayer times show, what shows during the prayers, alerts, branding and duas. - [Your playlists](https://hub.masjidbox.com/docs/reference/masjid-playlists.md): The playlists your screens play and their slides, each typed by its type: create one, change it, delete it. - [Your playlist schedules](https://hub.masjidbox.com/docs/reference/masjid-playlist-schedules.md): When one of your playlists replaces the one your screens play: the days, a daily window by time or by prayer, and the screens. - [Your webhook endpoints](https://hub.masjidbox.com/docs/reference/masjid-webhook-endpoints.md): The URLs Masjidbox posts your organization's events to, each signed with its endpoint's secret. They need a secret key. - [Webhook deliveries](https://hub.masjidbox.com/docs/reference/masjid-webhook-deliveries.md): What Masjidbox posted to each endpoint over 30 days, and a resend. They need a secret key.