Skip to main content

Get Post Broadcast

Retrieve the live stream broadcast data for a post. Returns video URL, featured image, and live status from Firestore.

Endpoint​

GET /api/posts/:id/broadcast

Authentication​

Required. Must be a member of the post's group (or a platform admin).

Path Parameters​

ParameterTypeDescription
idintegerThe post ID

Response​

Success Response — Broadcast Found​

Status Code: 200 OK

{
"found": true,
"video": "https://firebasestorage.googleapis.com/.../video.mp4",
"featuredImage": "https://storage.googleapis.com/.../frame.jpg",
"isLive": false,
"livestreamState": "ended",
"watcherCount": 12
}
FieldTypeDescription
foundbooleanWhether a broadcast exists for this post
videostringVideo URL (null if not yet recorded)
featuredImagestringThumbnail image URL
isLivebooleanWhether the stream is currently live
livestreamStatestringStream state (e.g. "ended", "live")
watcherCountintegerNumber of current viewers

Success Response — No Broadcast​

Status Code: 200 OK

{
"found": false
}

Error Responses​

Status CodeDescription
400Invalid post ID
403Not a member of the group
404Post not found

Example​

curl -X GET "https://api.tribesocial.io/api/posts/4212/broadcast" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"