Your masjid · Content

Ask-the-imam questions

The questions asked to your imam in the apps, with the asker's name and email. Every question operation needs a secret key, its reads too; an answer is mailed to the asker.

Right on the key: Content: read for a read, edit (secret key) for a write.

The questions asked to your imam

Masjid key · secret · Content: read

GET/v1/masjid/questions

The ask-the-imam questions asked through the Masjidbox apps, archived ones flagged, newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). Of the asker, the name and email only. Every question operation needs a secret key, its reads too. Needs Content: read.

Parameters

  • limitinteger · query

    Items per page, 1 to 100.

  • cursorstring · query

    The previous page's pagination.nextCursor; absent for the first page.

Returns

A page of questions.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (9)
    • objectquestion

      Always question.

    • idstring

      The question id.

    • namestring | null

      The asker's name.

    • emailstring | null

      The asker's email, where the answer is mailed.

    • questionstring | null

      The question asked.

    • answerstring | null

      The imam's answer; null until answered.

    • archivedboolean

      Whether it was archived on the dashboard.

    • createdAtstring | null

      When it was asked (ISO-8601).

    • updatedAtstring | null

      When it last changed (ISO-8601).

  • paginationobject

    Where this page stands.

    Show child attributes (3)
    • limitinteger

      The page size asked for.

    • hasMoreboolean

      Whether another page follows: stop on false, never on a short page.

    • nextCursorstring | null

      The cursor of the next page; null on the last one.

GET /v1/masjid/questions
curl "https://hub.masjidbox.com/v1/masjid/questions" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidQuestionsPage
{
  "data": [
    {
      "answer": null,
      "archived": false,
      "createdAt": "2026-11-12T08:00:00.000Z",
      "email": "aisha@example.com",
      "id": "qst_6af5c9e2bc095fbd2dc57367",
      "name": "Aisha",
      "object": "question",
      "question": "Is it permitted to combine prayers when travelling?",
      "updatedAt": "2026-11-12T08:00:00.000Z"
    }
  ],
  "object": "list",
  "pagination": {
    "hasMore": false,
    "limit": 25,
    "nextCursor": null
  }
}

One question asked to your imam

Masjid key · secret · Content: read

GET/v1/masjid/questions/{id}

A question, the asker's name and email, and its answer once given. Every question operation needs a secret key, its reads too. Needs Content: read.

Parameters

  • idstring · pathrequired

    The question id.

Returns

The question.

  • objectquestion

    Always question.

  • idstring

    The question id.

  • namestring | null

    The asker's name.

  • emailstring | null

    The asker's email, where the answer is mailed.

  • questionstring | null

    The question asked.

  • answerstring | null

    The imam's answer; null until answered.

  • archivedboolean

    Whether it was archived on the dashboard.

  • createdAtstring | null

    When it was asked (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

GET /v1/masjid/questions/{id}
curl "https://hub.masjidbox.com/v1/masjid/questions/qst_6af5c9e2bc095fbd2dc57367" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidQuestion
{
  "answer": null,
  "archived": false,
  "createdAt": "2026-11-12T08:00:00.000Z",
  "email": "aisha@example.com",
  "id": "qst_6af5c9e2bc095fbd2dc57367",
  "name": "Aisha",
  "object": "question",
  "question": "Is it permitted to combine prayers when travelling?",
  "updatedAt": "2026-11-12T08:00:00.000Z"
}

Delete a question

Masjid key · secret · Content: edit

DELETE/v1/masjid/questions/{id}

Deletes a question and its answer. Nothing is mailed. Every question operation needs a secret key, its reads too. Needs a secret key with Content: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.

Parameters

  • idstring · pathrequired

    The question id.

Returns

Deleted. No body.

204 · No response body.

DELETE /v1/masjid/questions/{id}
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/questions/qst_6af5c9e2bc095fbd2dc57367" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"

Answer a question

Masjid key · secret · Content: edit

POST/v1/masjid/questions/{id}/answer

Answers a question as the dashboard does: the answer is stored and mailed to the asker, at once; it cannot be recalled. A question is answered once: one already answered is a 409. Every question operation needs a secret key, its reads too. Needs a secret key with Content: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.

Parameters

  • idstring · pathrequired

    The question id.

Request body

  • answerstringrequired

    The imam's answer.

Returns

The question, answered.

  • objectquestion

    Always question.

  • idstring

    The question id.

  • namestring | null

    The asker's name.

  • emailstring | null

    The asker's email, where the answer is mailed.

  • questionstring | null

    The question asked.

  • answerstring | null

    The imam's answer; null until answered.

  • archivedboolean

    Whether it was archived on the dashboard.

  • createdAtstring | null

    When it was asked (ISO-8601).

  • updatedAtstring | null

    When it last changed (ISO-8601).

POST /v1/masjid/questions/{id}/answer
curl -X POST "https://hub.masjidbox.com/v1/masjid/questions/qst_6af5c9e2bc095fbd2dc57367/answer" \
  -H "Authorization: Bearer $MASJIDBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"answer":"Yes, within the conditions…"}'
Example request · MasjidQuestionAnswer
{
  "answer": "Yes, within the conditions…"
}
200 · MasjidQuestion
{
  "answer": null,
  "archived": false,
  "createdAt": "2026-11-12T08:00:00.000Z",
  "email": "aisha@example.com",
  "id": "qst_6af5c9e2bc095fbd2dc57367",
  "name": "Aisha",
  "object": "question",
  "question": "Is it permitted to combine prayers when travelling?",
  "updatedAt": "2026-11-12T08:00:00.000Z"
}