List destinations
GET/v1/streams/destinations
GET
/v1/streams/destinations
const url = 'https://api.ligr.live/rest/v1/streams/destinations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ligr.live/rest/v1/streams/destinations \ --header 'Authorization: Bearer <token>'Lists the destinations of the organization, one-off destinations included.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Ok
Media typeapplication/json
object
destinations
required
Array<object>
A saved destination of the organization. url and key are the server URL and the stream key
for a push destination. A pull destination has no url and key; LIGR serves it at pullUrl.
object
id
required
Entity identifier
integer format: int32
name
required
string
type
required
string
transportDirection
required
string
transportProtocol
required
string
feedType
required
program carries the graphics. clean is the picture without them.
string
url
required
string
key
required
string
pullUrl
required
For a pull destination: the URL a player or a relay pulls from.
string
singleUse
required
True for a destination created for one match by createAndLinkOneOffDestination.
boolean
createdAt
required
string
updatedAt
required
string
Example
{ "destinations": [ { "type": "youtube", "transportDirection": "push", "transportProtocol": "rtmp", "feedType": "program" } ]}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"}Destination 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"}