Contributions
Why it matters: Why contribute.
Your users help keep the directory right and complete. Your app opens three pages hosted by Masjidbox for them: add a missing masjid, report an error on a masjid, or invite its manager to claim it. You have nothing to receive or store.
The three pages
| Page | surface | Address |
|---|---|---|
| Add a masjid | suggest | https://dashboard.masjidbox.com/hub/suggest?ref=… |
| Claim a masjid | claim | https://dashboard.masjidbox.com/hub/claim/msj_123?ref=… |
| Report a time error | report | https://hub.masjidbox.com/report/msj_123?ref=… |
Get a link credited to your project
GET /v1/referrals/link, in the API reference, gives the three credited doors: surface=suggest with no masjidId, claim and report with one. The link is credited to the key's project, signed in ref, and short-lived: request it per visit, when your user opens it, and do not store it.
GET /v1/referrals/link?surface=suggest
GET /v1/referrals/link?surface=claim&masjidId=msj_123
GET /v1/referrals/link?surface=report&masjidId=msj_123{
"object": "referral_link",
"surface": "claim",
"masjidId": "msj_123",
"url": "https://dashboard.masjidbox.com/hub/claim/msj_123?ref=<signed-referral>",
"token": "<signed-referral>",
"expiresAt": "2026-10-28T10:00:00.000Z"
}What is sent through these three pages counts for your project: masjids added, reports and claims. Without ref, or once the link has expired, the contribution still arrives but does not count for you.
Masjids returned by the API also carry links.claim and links.report: easy to show, but not credited. For contributions to count for you, use the signed links.
Let your users add a mosque
Put an "Add a mosque" button where a search finds nothing. When the user taps it, request GET /v1/referrals/link?surface=suggest and open the url it returns. There is no fixed per-project link: this one comes only from the API, at that moment.
// a search with no result
const res = await fetch('https://hub.masjidbox.com/v1/referrals/link?surface=suggest', {
headers: { Authorization: `Bearer ${key}` },
});
const { url } = await res.json();
openInBrowser(url); // https://dashboard.masjidbox.com/hub/suggest?ref=…If your app already holds a masjid's details
A secondary option: POST /v1/masjid-suggestions relays a missing masjid with your key, without the page. It follows the same rules as the other contributions: see the terms, §6.
Where a contribution goes
To the masjid and to Masjidbox. The masjid fixes it; a masjid not yet claimed is kept by Masjidbox for it. The fix reaches every app, yours included. Who contributions belong to: terms, §6.
What you see
Totals per month and per type (masjids added, reports, claims), in your console and by API.
GET /v1/contributions/totals?from=2026-10&to=2026-11{
"object": "contribution_totals",
"months": [
{ "month": "2026-11", "suggestions": 3, "claims": 1, "reports": 18 },
{ "month": "2026-10", "suggestions": 4, "claims": 2, "reports": 24 }
]
}The per-contribution route, GET /v1/contributions/{id}, is replaced by these totals: see the changelog.
More quota
A request for a higher quota is reviewed by the team; contributions made through your app count in the decision.