Third-party apps
Contributions
The pages hosted by Masjidbox your users open to add a missing masjid, claim one or report an error, credited to your project.
The hosted pages your users open, credited to your project. No right on the key: an approved developer project.
Get a credited link to a hosted page
GET/v1/referrals/link
A signed, short-lived link to a page hosted by Masjidbox, credited to your project: suggest lets your user add a missing masjid, claim lets a manager take a masjid over, report lets your user report an error on it. Ask for it when your user opens it, once per visit, and link it as it is: it stops crediting you at expiresAt. Only an approved developer project's key issues links.
Parameters
surfaceclaim | suggest | report · queryrequiredclaim: a manager takes over the masjid;report: anyone reports an error on it;suggest: anyone adds a missing masjid.masjidIdstring · queryThe masjid the page is about,
msj_…: required withclaimandreport, refused withsuggest.
Returns
The link.
objectreferral_linkAlways
referral_link.urlstringThe hosted page to open, the referral in its
refparameter. Link it as it is: it stops crediting you atexpiresAt.tokenstringThe signed referral alone, for a page you build the address of yourself.
surfaceclaim | suggest | reportThe page it opens.
masjidIdstring | nullThe masjid it is about; null for
suggest.expiresAtstringWhen the referral stops holding: generate a link per visit, never store one.
curl "https://hub.masjidbox.com/v1/referrals/link?surface=claim" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"expiresAt": "2026-10-28T10:00:00.000Z",
"masjidId": "msj_o5urjd3hd5",
"object": "referral_link",
"surface": "claim",
"token": "<signed-referral>",
"url": "https://dashboard.masjidbox.com/hub/claim/msj_o5urjd3hd5?ref=<signed-referral>"
}Your project's contribution totals
GET/v1/contributions/totals
What came through your project, counted per month and per type: masjids added through your links or your key, claims and time reports started through your links. Every month asked is present, zero when nothing came. The months default to the last 12, this one included, at most 24 per query.
Parameters
fromstring · queryThe first month,
YYYY-MM. Defaults to 11 months beforeto.tostring · queryThe last month,
YYYY-MM. Defaults to this month (UTC).
Returns
The totals.
objectcontribution_totalsAlways
contribution_totals.monthsobject[]Each month asked, newest first.
Show child attributes (4)
monthstringA month,
YYYY-MM, in UTC.suggestionsintegerMissing masjids added through your links or your key.
claimsintegerClaims started through your links.
reportsintegerTime errors reported through your links.
curl "https://hub.masjidbox.com/v1/contributions/totals" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"object": "contribution_totals",
"months": [
{
"month": "2026-11",
"suggestions": 3,
"claims": 1,
"reports": 18
},
{
"month": "2026-10",
"suggestions": 4,
"claims": 2,
"reports": 24
}
]
}