Toggle direct links for the embed
POST
https://octopus.livepush.io/streams/{stream_id}/embed/use_direct_links_for_embed
Base URL https://octopus.livepush.io — Core Streams & Media APIs
Switches the embed to play from the direct output URL rather than the managed player source.
Requires a token with write access to the stream (CanWriteStreams).
Authorization
Send a valid access token in the Authorization header.
bearerAuth— Bearer token (JWT)
Authorization: Bearer YOUR_API_TOKEN
Try it
Loading the request builder…
POST
https://octopus.livepush.io/streams/{stream_id}/embed/use_direct_links_for_embed
— This call changes live data on your account.
Parameters
Path parameters
-
stream_idstring requiredUnique identifier of the stream.example: st_xxxxxxxxxxxxx
Request body
-
useDirectOutputURLForEmbedboolean required
{
"useDirectOutputURLForEmbed": true
}
Code samples
curl -X POST 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/use_direct_links_for_embed' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"useDirectOutputURLForEmbed": true
}'
const response = await fetch('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/use_direct_links_for_embed', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"useDirectOutputURLForEmbed": true
}),
});
if (!response.ok) {
throw new Error(`Livepush API error ${response.status}`);
}
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
}
payload = {
"useDirectOutputURLForEmbed": True
}
response = requests.post('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/use_direct_links_for_embed', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Setting applied.
-
successboolean
{
"success": true
}
No response body.
No response body.