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
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 · queryItems per page, 1 to 100.
cursorstring · queryThe previous page's
pagination.nextCursor; absent for the first page.
Returns
A page of questions.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (9)
objectquestionAlways
question.idstringThe question id.
namestring | nullThe asker's name.
emailstring | nullThe asker's email, where the answer is mailed.
questionstring | nullThe question asked.
answerstring | nullThe imam's answer; null until answered.
archivedbooleanWhether it was archived on the dashboard.
createdAtstring | nullWhen it was asked (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
paginationobjectWhere this page stands.
Show child attributes (3)
limitintegerThe page size asked for.
hasMorebooleanWhether another page follows: stop on false, never on a short page.
nextCursorstring | nullThe
cursorof the next page; null on the last one.
Errors
curl "https://hub.masjidbox.com/v1/masjid/questions" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"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
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 · pathrequiredThe question id.
Returns
The question.
objectquestionAlways
question.idstringThe question id.
namestring | nullThe asker's name.
emailstring | nullThe asker's email, where the answer is mailed.
questionstring | nullThe question asked.
answerstring | nullThe imam's answer; null until answered.
archivedbooleanWhether it was archived on the dashboard.
createdAtstring | nullWhen it was asked (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/questions/qst_6af5c9e2bc095fbd2dc57367" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"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
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 · pathrequiredThe question id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/questions/qst_6af5c9e2bc095fbd2dc57367" \
-H "Authorization: Bearer $MASJIDBOX_KEY"Answer a question
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 · pathrequiredThe question id.
Request body
answerstringrequiredThe imam's answer.
Returns
The question, answered.
objectquestionAlways
question.idstringThe question id.
namestring | nullThe asker's name.
emailstring | nullThe asker's email, where the answer is mailed.
questionstring | nullThe question asked.
answerstring | nullThe imam's answer; null until answered.
archivedbooleanWhether it was archived on the dashboard.
createdAtstring | nullWhen it was asked (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
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…"}'{
"answer": "Yes, within the conditions…"
}{
"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"
}