Create a new place.stream.livestream record, automatically populating a thumbnail and creating a Bluesky post and whatnot. You can do this manually by creating a record but this method can work better for mobile livestreaming and such.
POST
/xrpc/place.stream.live.startLivestream
const url = 'https://example.com/xrpc/place.stream.live.startLivestream';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"livestream":"example","streamer":"example","createBlueskyPost":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.live.startLivestream \ --header 'Content-Type: application/json' \ --data '{ "livestream": "example", "streamer": "example", "createBlueskyPost": true }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
livestream
required
Unknown type
streamer
required
The DID of the streamer.
string format: did
createBlueskyPost
Whether to create a Bluesky post announcing the livestream.
boolean
Example generated
{ "livestream": "example", "streamer": "example", "createBlueskyPost": true}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uri
required
The URI of the livestream record.
string format: uri
cid
required
The CID of the livestream record.
string format: cid
Example generated
{ "uri": "https://example.com", "cid": "example"}