Your masjid · Masjid profile
Your organization
Your organization's name, contact, location, languages and timezone, and the ids of its masjids. A new address moves your computed prayer times.
Right on the key: Masjid profile: read for a read, edit (secret key) for a write.
Your organization
GET/v1/masjid
Your organization's public profile (name, contact, location, languages, timezone) and the ids of its masjids. Needs Masjid profile: read.
Parameters
No parameters.
Returns
Your organization.
objectmasjidAlways
masjid.masjidsstring[]Your organization's masjids.
namestring | nullYour organization's name.
contactobjectThe public contact.
Show child attributes (4)
namestring | nullWho to contact.
addressstring | nullThe postal address, as written.
phonestring | nullThe public phone.
websitestring | nullThe website.
locationobjectRead only: it follows
contact.address, and your computed prayer times follow it.Show child attributes (4)
formattedAddressstring | nullThe address as geocoded.
countrystring | nullISO 3166-1 alpha-2 country.
latitudenumber | nullWhere the address is.
longitudenumber | nullWhere the address is.
languagestring | nullThe main language (ISO 639-1).
additionalLanguagesstring[]The other languages.
timezonestring | nullThe IANA time zone.
updatedAtstring | nullWhen your organization last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"additionalLanguages": [
"ar"
],
"contact": {
"address": "1 High St, Birmingham",
"name": "Imam Ali",
"phone": "+44 121 000 0000",
"website": "https://alnoor.example"
},
"language": "en",
"location": {
"country": "GB",
"formattedAddress": "1 High St, Birmingham B1, UK",
"latitude": 52.48,
"longitude": -1.89
},
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"name": "Al Noor Foundation",
"object": "masjid",
"timezone": "Europe/London",
"updatedAt": "2026-11-12T08:00:00.000Z"
}Change your organization
PATCH/v1/masjid
JSON Merge Patch on your organization: a field you leave out stays, contact merges field by field, null clears a contact field. Changing contact.address re-geocodes your organization, which moves its location and so its computed prayer times, and updates the billing customer, exactly as the dashboard does. An empty body changes nothing. Needs a secret key with Masjid profile: edit. 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
namestringYour organization's name.
contactobjectMerged field by field: a field you leave out stays.
Show child attributes (4)
namestring | nullWho to contact; null clears it.
addressstring | nullThe postal address; null clears it. It is geocoded: your location, hence your computed prayer times, follow it.
phonestring | nullThe public phone; null clears it.
websitestring | nullThe website; null clears it.
languagestringThe main language (ISO 639-1).
additionalLanguagesstring[]Replaces the other languages.
timezonestringThe IANA time zone.
Returns
Your organization after the write.
objectmasjidAlways
masjid.masjidsstring[]Your organization's masjids.
namestring | nullYour organization's name.
contactobjectThe public contact.
Show child attributes (4)
namestring | nullWho to contact.
addressstring | nullThe postal address, as written.
phonestring | nullThe public phone.
websitestring | nullThe website.
locationobjectRead only: it follows
contact.address, and your computed prayer times follow it.Show child attributes (4)
formattedAddressstring | nullThe address as geocoded.
countrystring | nullISO 3166-1 alpha-2 country.
latitudenumber | nullWhere the address is.
longitudenumber | nullWhere the address is.
languagestring | nullThe main language (ISO 639-1).
additionalLanguagesstring[]The other languages.
timezonestring | nullThe IANA time zone.
updatedAtstring | nullWhen your organization last changed (ISO-8601).
affectedMasjidsstring[]The masjids the write changed: every masjid of your organization.
curl -X PATCH "https://hub.masjidbox.com/v1/masjid" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"contact":{"phone":"+44 121 000 0000"}}'{
"contact": {
"phone": "+44 121 000 0000"
}
}{
"additionalLanguages": [
"ar"
],
"contact": {
"address": "1 High St, Birmingham",
"name": "Imam Ali",
"phone": "+44 121 000 0000",
"website": "https://alnoor.example"
},
"language": "en",
"location": {
"country": "GB",
"formattedAddress": "1 High St, Birmingham B1, UK",
"latitude": 52.48,
"longitude": -1.89
},
"masjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
],
"name": "Al Noor Foundation",
"object": "masjid",
"timezone": "Europe/London",
"updatedAt": "2026-11-12T08:00:00.000Z",
"affectedMasjids": [
"msj_o5urjd3hd5",
"msj_k2w8x1p0aa"
]
}