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

Masjid key · Masjid profile: read

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.

  • objectmasjid

    Always masjid.

  • masjidsstring[]

    Your organization's masjids.

  • namestring | null

    Your organization's name.

  • contactobject

    The public contact.

    Show child attributes (4)
    • namestring | null

      Who to contact.

    • addressstring | null

      The postal address, as written.

    • phonestring | null

      The public phone.

    • websitestring | null

      The website.

  • locationobject

    Read only: it follows contact.address, and your computed prayer times follow it.

    Show child attributes (4)
    • formattedAddressstring | null

      The address as geocoded.

    • countrystring | null

      ISO 3166-1 alpha-2 country.

    • latitudenumber | null

      Where the address is.

    • longitudenumber | null

      Where the address is.

  • languagestring | null

    The main language (ISO 639-1).

  • additionalLanguagesstring[]

    The other languages.

  • timezonestring | null

    The IANA time zone.

  • updatedAtstring | null

    When your organization last changed (ISO-8601).

GET /v1/masjid
curl "https://hub.masjidbox.com/v1/masjid" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidOrganization
{
  "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

Masjid key · secret · Masjid profile: edit

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

  • namestring

    Your organization's name.

  • contactobject

    Merged field by field: a field you leave out stays.

    Show child attributes (4)
    • namestring | null

      Who to contact; null clears it.

    • addressstring | null

      The postal address; null clears it. It is geocoded: your location, hence your computed prayer times, follow it.

    • phonestring | null

      The public phone; null clears it.

    • websitestring | null

      The website; null clears it.

  • languagestring

    The main language (ISO 639-1).

  • additionalLanguagesstring[]

    Replaces the other languages.

  • timezonestring

    The IANA time zone.

Returns

Your organization after the write.

  • objectmasjid

    Always masjid.

  • masjidsstring[]

    Your organization's masjids.

  • namestring | null

    Your organization's name.

  • contactobject

    The public contact.

    Show child attributes (4)
    • namestring | null

      Who to contact.

    • addressstring | null

      The postal address, as written.

    • phonestring | null

      The public phone.

    • websitestring | null

      The website.

  • locationobject

    Read only: it follows contact.address, and your computed prayer times follow it.

    Show child attributes (4)
    • formattedAddressstring | null

      The address as geocoded.

    • countrystring | null

      ISO 3166-1 alpha-2 country.

    • latitudenumber | null

      Where the address is.

    • longitudenumber | null

      Where the address is.

  • languagestring | null

    The main language (ISO 639-1).

  • additionalLanguagesstring[]

    The other languages.

  • timezonestring | null

    The IANA time zone.

  • updatedAtstring | null

    When your organization last changed (ISO-8601).

  • affectedMasjidsstring[]

    The masjids the write changed: every masjid of your organization.

PATCH /v1/masjid
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"}}'
Example request · MasjidOrganizationPatch
{
  "contact": {
    "phone": "+44 121 000 0000"
  }
}
200 · MasjidOrganizationUpdated
{
  "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"
  ]
}