Skip to content

Start stream destinations

POST/v1/streams/{streamSettingsId}/destinations/start

POST
/v1/streams/{streamSettingsId}/destinations/start
curl --request POST \
--url https://api.ligr.live/rest/v1/streams/1/destinations/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "destinationIds": [ 1 ] }'

Starts publishing to the given destinations of a running stream. Use it after a start without destinationIds, once the picture is right. The answer is what the stream reports for each destination at that moment. A stream that is not running answers 400.

streamSettingsId
required

Entity identifier

integer format: int32
>= 1

The stream settings identifier

Media typeapplication/json
object
destinationIds
required

Stream destination ids. A destination must be linked to the stream.

Array<number>
>= 1 items
Examplegenerated
{
"destinationIds": [
1
]
}

Ok

Media typeapplication/json
object
streamSettingsId
required

Entity identifier

integer format: int32
>= 1
matchId
required

Entity identifier

integer format: int32
>= 1
destinations
required
Array<object>

What the stream reports for one destination right after a start or a stop.

object
id
required

Entity identifier

integer format: int32
>= 1
status
required

connected, connecting or retrying.

string
bitrateKb
required

Outgoing bitrate in kb/s. Present when the status is connected.

number format: double
nullable
nextRetryDate
required

Time of the next connection attempt, in ISO 8601. Present when the status is retrying.

string
nullable
activeClients
required

Number of connected clients. Pull destinations only.

number format: double
nullable
Examplegenerated
{
"streamSettingsId": 1,
"matchId": 1,
"destinations": [
{
"id": 1,
"status": "example",
"bitrateKb": 1,
"nextRetryDate": "example",
"activeClients": 1
}
]
}

Request is invalid

Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{
"message": "example",
"details": {
"additionalProperty": "example"
}
}

Missing or invalid api key

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key provides insufficient access for the request

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Stream not found

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key has made too many requests

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

An unexpected error has occured. If problems persist please contact support

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}