POST
/
multistream
/
target
import { Livepeer } from "livepeer";

const livepeer = new Livepeer({
  apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await livepeer.multistream.create({
    url: "rtmps://live.my-service.tv/channel/secretKey",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
  "name": "<string>",
  "userId": "66E2161C-7670-4D05-B71D-DA2D6979556F",
  "disabled": true,
  "createdAt": 1587667174725
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

Livepeer-compatible multistream target URL (RTMP(S) or SRT)

Example:

"rtmps://live.my-service.tv/channel/secretKey"

name
string
disabled
boolean

If true then this multistream target will not be used for pushing even if it is configured in a stream object.

Response

201
application/json
Success
id
string
Example:

"09F8B46C-61A0-4254-9875-F71F4C605BC7"

name
string
userId
string
deprecated
Example:

"66E2161C-7670-4D05-B71D-DA2D6979556F"

disabled
boolean

If true then this multistream target will not be used for pushing even if it is configured in a stream object.

createdAt
number

Timestamp (in milliseconds) at which multistream target object was created

Example:

1587667174725