Skip to main content
GET
/
v1
/
mosques
/
{mosqueId}
/
sync
Read the current mosque sync snapshot
curl --request GET \
  --url https://api.pocketmusala.com/v1/mosques/{mosqueId}/sync \
  --header 'Authorization: Bearer <token>'
{
  "version": "v1",
  "profile": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "communityName": "<string>",
    "type": "Mosque",
    "isOnlineOnly": true,
    "verificationStatus": "<string>",
    "entitlement": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "address": "<string>",
    "latitude": 123,
    "longitude": 123,
    "timeZoneId": "America/New_York",
    "status": "<string>",
    "message": "<string>",
    "donationLink": "<string>",
    "prayerCalculationParameters": "<string>",
    "thumbnail": "<string>",
    "coverPhotos": [
      "<string>"
    ]
  },
  "announcements": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "body": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "flairType": "<string>",
      "latitude": 123,
      "longitude": 123
    }
  ],
  "prayers": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "adhanTime": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "iqamahTime": "04:21"
    }
  ],
  "events": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "visibility": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "title": "<string>",
      "body": "<string>",
      "allowComments": true,
      "showLikes": true,
      "allowSharing": true,
      "latitude": 123,
      "longitude": 123,
      "likeCount": 123,
      "commentCount": 123,
      "eventDetails": {
        "dateInstant": "2023-11-07T05:31:56Z",
        "flairType": "<string>",
        "endTimeInstant": "2023-11-07T05:31:56Z",
        "timeZoneId": "<string>",
        "repeatOption": "<string>",
        "address": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

PocketMusala Developer API key from the authenticated portal.

Headers

X-Request-Id
string

Partner-generated request id used for logs and support.

Minimum string length: 1

Path Parameters

mosqueId
string<uuid>
required

Query Parameters

limit
integer

Maximum rows to return. Defaults to 50 where supported.

Required range: 1 <= x <= 100

Response

Current profile, announcements, prayer rows, and events.

version
string
required
Example:

"v1"

profile
object
required
announcements
object[]
required
prayers
object[]
required
events
object[]
required