Your masjid · Content
Your lives
The live streams your apps and pages show. One at most is active: activating one deactivates the others.
Right on the key: Content: read for a read, edit (secret key) for a write.
Your lives
GET/v1/masjid/lives
Your organization's live streams, the one your apps and pages show marked active, newest first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page). 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 lives.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (13)
objectliveAlways
live.idstringThe live id.
urlstring | nullThe stream page it was created from.
parsedUrlstring | nullThe embeddable URL.
providerstring | nullThe provider, e.g. YouTube.
titlestring | nullThe stream's title.
htmlstring | nullThe provider's embed HTML.
widthnumber | nullThe embed width, in pixels.
heightnumber | nullThe embed height, in pixels.
activebooleanWhether your organization shows it: one live at most is active.
broadcastingboolean | nullWhether the stream is on air, as last checked.
createdAtstring | nullWhen it was created (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/lives" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"active": true,
"broadcasting": false,
"createdAt": "2026-11-12T08:00:00.000Z",
"height": 270,
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/abc\"></iframe>",
"id": "liv_6af5c9e2bc095fbd2dc57364",
"object": "live",
"parsedUrl": "https://www.youtube.com/embed/abc",
"provider": "YouTube",
"title": "Jumuah khutbah",
"updatedAt": "2026-11-12T08:00:00.000Z",
"url": "https://www.youtube.com/watch?v=abc",
"width": 480
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}One of your lives
GET/v1/masjid/lives/{id}
A live of your organization: its stream page, its embed and whether it is the one shown. Needs Content: read.
Parameters
idstring · pathrequiredThe live id.
Returns
The live.
objectliveAlways
live.idstringThe live id.
urlstring | nullThe stream page it was created from.
parsedUrlstring | nullThe embeddable URL.
providerstring | nullThe provider, e.g. YouTube.
titlestring | nullThe stream's title.
htmlstring | nullThe provider's embed HTML.
widthnumber | nullThe embed width, in pixels.
heightnumber | nullThe embed height, in pixels.
activebooleanWhether your organization shows it: one live at most is active.
broadcastingboolean | nullWhether the stream is on air, as last checked.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/lives/liv_6af5c9e2bc095fbd2dc57364" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"active": true,
"broadcasting": false,
"createdAt": "2026-11-12T08:00:00.000Z",
"height": 270,
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/abc\"></iframe>",
"id": "liv_6af5c9e2bc095fbd2dc57364",
"object": "live",
"parsedUrl": "https://www.youtube.com/embed/abc",
"provider": "YouTube",
"title": "Jumuah khutbah",
"updatedAt": "2026-11-12T08:00:00.000Z",
"url": "https://www.youtube.com/watch?v=abc",
"width": 480
}Create a live
POST/v1/masjid/lives
Creates a live from a stream page (a YouTube or Facebook video or live URL); a URL that cannot be read is a 400. It is stored inactive: activate it to show it. Needs a secret key with Content: edit. Counts against the write quota: 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
urlstringrequiredThe stream page: a YouTube or Facebook video or live URL.
Returns
The live, as stored.
objectliveAlways
live.idstringThe live id.
urlstring | nullThe stream page it was created from.
parsedUrlstring | nullThe embeddable URL.
providerstring | nullThe provider, e.g. YouTube.
titlestring | nullThe stream's title.
htmlstring | nullThe provider's embed HTML.
widthnumber | nullThe embed width, in pixels.
heightnumber | nullThe embed height, in pixels.
activebooleanWhether your organization shows it: one live at most is active.
broadcastingboolean | nullWhether the stream is on air, as last checked.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X POST "https://hub.masjidbox.com/v1/masjid/lives" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=abc"}'{
"url": "https://www.youtube.com/watch?v=abc"
}{
"active": true,
"broadcasting": false,
"createdAt": "2026-11-12T08:00:00.000Z",
"height": 270,
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/abc\"></iframe>",
"id": "liv_6af5c9e2bc095fbd2dc57364",
"object": "live",
"parsedUrl": "https://www.youtube.com/embed/abc",
"provider": "YouTube",
"title": "Jumuah khutbah",
"updatedAt": "2026-11-12T08:00:00.000Z",
"url": "https://www.youtube.com/watch?v=abc",
"width": 480
}Change a live
PATCH/v1/masjid/lives/{id}
Switches a live on or off. Activating one deactivates your organization's other lives first: one live at most is shown. Its URL is fixed once created: create another to change it. 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 live id.
Request body
activebooleanWhether your organization shows it.
truedeactivates your organization's other lives.
Returns
The live after the change.
objectliveAlways
live.idstringThe live id.
urlstring | nullThe stream page it was created from.
parsedUrlstring | nullThe embeddable URL.
providerstring | nullThe provider, e.g. YouTube.
titlestring | nullThe stream's title.
htmlstring | nullThe provider's embed HTML.
widthnumber | nullThe embed width, in pixels.
heightnumber | nullThe embed height, in pixels.
activebooleanWhether your organization shows it: one live at most is active.
broadcastingboolean | nullWhether the stream is on air, as last checked.
createdAtstring | nullWhen it was created (ISO-8601).
updatedAtstring | nullWhen it last changed (ISO-8601).
Errors
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/lives/liv_6af5c9e2bc095fbd2dc57364" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"active":true}'{
"active": true
}{
"active": true,
"broadcasting": false,
"createdAt": "2026-11-12T08:00:00.000Z",
"height": 270,
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/abc\"></iframe>",
"id": "liv_6af5c9e2bc095fbd2dc57364",
"object": "live",
"parsedUrl": "https://www.youtube.com/embed/abc",
"provider": "YouTube",
"title": "Jumuah khutbah",
"updatedAt": "2026-11-12T08:00:00.000Z",
"url": "https://www.youtube.com/watch?v=abc",
"width": 480
}Delete a live
DELETE/v1/masjid/lives/{id}
Deletes a live. 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 live id.
Returns
Deleted. No body.
204 · No response body.
Errors
curl -X DELETE "https://hub.masjidbox.com/v1/masjid/lives/liv_6af5c9e2bc095fbd2dc57364" \
-H "Authorization: Bearer $MASJIDBOX_KEY"