Changelog
Changes to the API, newest first. A new field or a new operation can land at any time; a change that breaks clients says so in its title.
4 December 2026 — credited attribution links, a partners page
- Credited links.
links.reportandlinks.claimare now credited to the calling project. Their URL ends with your project's reference, which does not expire: what your users send through them counts in your contributions. Nothing to change on your side; keep the URLs as received. - Partners page. A new public partners page lists the apps Masjidbox features, with one total of contributions for all partner apps together. Opt in from your partner profile in the console: add a website, then tick Public.
2 December 2026 — donation analysis
- Donors.
GET /v1/masjid/donorslists your donors, one per email, from their succeeded donations: what each gave over a window (from,to) and ever, their first and latest gift, how their recurring donations stand (recurring), and, withfrom, whether they arenew,returningorlapsed(segment). Sort bytotalorlastGift; filter bysegmentandrecurring. In@masjidbox/sdk/masjid:masjid.donors.list(). It needs a secret key with Donations: read. - Donation filters.
GET /v1/masjid/donationstakesfromandto(the payment date),campaign(cmp_…),status(comma-separated) andamountMin/amountMax(minor units), all combined, with the same cursor. - Donation figures.
GET /v1/masjid/stats/donationsaddsbyFrequency: the payments of recurring donations per frequency (day,week,month,year), each with its monthly value. The other fields are unchanged.
28 November 2026 — publishable keys on websites
A website can call /v1 from its visitors' browsers with a publishable key, from the origins the key lists. See From a browser.
- Allowed origins. In the console, a publishable key lists up to 10 origins (
https://www.example.org;http://localhostfor development, any port). A key with none is an app key: calls without anOriginheader work as before, browser calls are refused. - CORS. The API answers a browser's preflight on
/v1, and serves a publishable key's answer, readable by the page, only to an origin the key lists. - One new refusal. A browser call from another origin is a 403
ORIGIN_NOT_ALLOWED. It does not count against the key's rate limit. - Secret keys. A secret key's answer is never readable by a page. A browser call with one will become a 403
SECRET_KEY_IN_BROWSER: a later entry here will give the date.
28 November 2026 — Idempotency-Key on notification sends
POST /v1/masjid/notifications takes an Idempotency-Key header: a UUID you mint for each notification and keep for its retries. A push cannot be taken back, so a retry must not send it twice.
- Retry safely. A retry with the same key and the same body answers
201with the notification the first send made, and sends nothing. It answers even once your write quota is spent, and counts no write. - Two new refusals. The same key with another body is a 409
IDEMPOTENCY_KEY_REUSED. A retry while the first send has no answer yet is a 409IDEMPOTENCY_REQUEST_UNSETTLED: that notification may already have been sent, so never resend it under a new key. - Keys are kept 24 hours, per organization.
- Optional for now, required later. Without the header, a send behaves as before. The header will become required: a later entry here will give the date. Start sending it now.
- SDK.
@masjidbox/sdk/masjidwill mint the key and retry a failed send once the header is required; until then it does not retry a send.
26 November 2026 — one masjid per key, named once (breaking)
A masjid key manages one masjid: yours. The masjid API stops answering it as a list. This change breaks clients and lands inside V1: the removed fields keep no alias.
- Your masjid's id.
GETandPATCH /v1/masjidanswerid, your masjid's public id (msj_…, the oneGET /v1/masjids/{id}reads), in place ofmasjids. It is null while your masjid is not in the Masjidbox directory yet, and, after aPATCH, when the directory could not give a valid id: the change is saved all the same. - No more
masjidsandaffectedMasjids. The prayer times, iqamah times, jumu'ah services, athan, iqamah, special times, timetables and profile no longer carrymasjids, and their writes no longer carryaffectedMasjids: a write answers the resource as a read does. - Notifications.
POST /v1/masjid/notificationsno longer takesmasjid, which is now refused (400): the notification goes to your masjid. A notification no longer carriesmasjid. - One statistics.
GET /v1/masjid/stats/oneanswersstatsas one object, your masjid's figures, withoutmasjid, in place of a list of lines andmasjids. It is null only while your masjid is not in the Masjidbox directory yet. - SDK. In
@masjidbox/sdk/masjid, the…Updatedtypes (MasjidJumuahTimesUpdated,MasjidAthanUpdated,MasjidIqamahUpdated,MasjidSpecialTimesUpdated,MasjidTimetableUpdated,MasjidProfileUpdated,MasjidOrganizationUpdated) are gone: a write returns the same type as its read.
26 November 2026 — the athan and iqamah source becomes explicit (breaking)
Where a masjid's times come from, computed or a full-year timetable, is now a field you read and set, instead of a side effect of other writes. This change breaks clients and lands inside V1: the removed routes keep no alias.
- Masjid API, athan.
GETandPATCH /v1/masjid/athanreplace/v1/masjid/calculation-methodand/v1/masjid/athan-rules. The answer, whoseobjectisathan, carriessource(calculationortimetable),calculation(the former calculation method, withoutactiveandupdatedAt) andrules(the former athan rules, withoutupdatedAt). APATCHmergescalculationandrulesas before, and changessourceonly when you send it. - Masjid API, iqamah.
GETandPATCH /v1/masjid/iqamahreplace/v1/masjid/iqamah-rules. The answer, whoseobjectisiqamah, carriessource(rulesortimetable) andrules(the former iqamah rules, withoutactiveandupdatedAt). - Switching to a timetable.
"source": "timetable"needs a timetable of the current year: without one the write answers 409 (RESOURCE_CONFLICT) and changes nothing. Put it first withPUT /v1/masjid/timetables/{kind}/{year}. - Masjid API, timetables.
PUT /v1/masjid/timetables/{kind}/{year}no longer makes the timetable the source of your times: a current-year timetable your times do not come from staysinactiveuntil you switch. Changing the calculation or the rules no longer switches back to them either. - SDK. In
@masjidbox/sdk/masjid,masjid.calculationMethod,masjid.athanRulesandmasjid.iqamahRulesbecomemasjid.athan.retrieve()/update()andmasjid.iqamah.retrieve()/update().
26 November 2026 — Gift Aid
- Gift Aid declarations.
GET /v1/masjid/gift-aid-declarationslists your donors' UK Gift Aid declarations by last change, with the details HMRC reads, where HMRC is with each one and the claim it went into;GET /v1/masjid/gift-aid-declarations/{id}reads one (gad_…). In@masjidbox/sdk/masjid:masjid.giftAidDeclarations.list()andretrieve(). - Gift Aid claims.
GET /v1/masjid/gift-aid-claimslists the claims your organization sent, or will send, to HMRC, with their counts and amounts;GET /v1/masjid/gift-aid-claims/{id}reads one (gac_…). In@masjidbox/sdk/masjid:masjid.giftAidClaims.list()andretrieve(). - Both need a secret key with Donations: read.
25 November 2026 — adhan becomes athan (breaking)
Every adhan of the API is now spelled athan, on the public API (/v1/masjids/*) and on the masjid API (/v1/masjid/*) alike. This change breaks clients and lands inside V1: no alias is kept, so a client that reads adhan gets nothing from 25 November 2026. Rename these, field by field:
- Public API, prayer times.
prayers.<prayer>.adhanbecomesprayers.<prayer>.athaninGET /v1/masjids/{id}/prayer-times, in each day of/prayer-times/weeklyand/prayer-times/monthly(data[].prayers.<prayer>.athan), forfajr,dhuhr,asr,maghribandisha. - Public API, report link. The
kindyou append tolinks.reporttakesathanoriqamah;kind=adhanis ignored and the form opens as without it. See Attribution. - Masjid API, prayer times.
GET /v1/masjid/prayer-times:prayers.<prayer>.adhanbecomesprayers.<prayer>.athan. - Masjid API, athan rules.
GETandPATCH /v1/masjid/adhan-rulesbecome/v1/masjid/athan-rules, whoseobjectisathan_rules(wasadhan_rules). In@masjidbox/sdk/masjid,masjid.adhanRules.retrieve()andupdate()becomemasjid.athanRules.retrieve()andupdate(). - Masjid API, iqamah rules. A rule
{ "minutesAfterAdhan": 20 }becomes{ "minutesAfterAthan": 20 }, read and written, in/v1/masjid/iqamah-rules. - Masjid API, special times. A relative time's
totakesathanoriqamah(wasadhan), read and written, in/v1/masjid/special-times. - Masjid API, timetables. The
kindof/v1/masjid/timetables/{kind}/{year}and of a timetable's body isathanoriqamah:/v1/masjid/timetables/adhan/2027becomes/v1/masjid/timetables/athan/2027, and the old path answers 400.
13 November 2026 — hosted pages
- Hosted pages. The add a masjid page (
surface=suggest) suggests addresses as the user types and lets them search the country; picking an address fills the country in. Your project's approved logo now shows on the hosted pages served fromdashboard.masjidbox.com, where the browser used to block it. No change to the API.
11 November 2026 — referral links and contribution totals
- Referral links, published.
GET /v1/referrals/linkis now in the API reference: it gives the credited links to the three hosted pages, add a missing masjid (surface=suggest), claim a masjid and report an error (claimandreport, with the masjid). See Contributions. - Contribution totals.
GET /v1/contributions/totalsanswers what came through your project, counted per month and per type. It replaces the per-contribution route,GET /v1/contributions/{id}.
18 October 2026 — the API opens
Masjid retrieval, search and nearby, prayer times for today, the week and the month, jumu'ah services and donation campaigns.