Problem to create live inputs streaming via API cURL request

Hi Leaders,

I’m trying the following code for creating live streaming via cURL request:

$url = "$ACCOUNT/stream/live_inputs";

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$headers = array(
   "Authorization: Bearer $TOKEN",

curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

$data = '{"meta": {"name":"test stream 1"},"recording": { "mode": "automatic", "timeoutSeconds": 10, "requireSignedURLs": false, "allowedOrigins": ["*"] }}';

curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

$resp = curl_exec($curl);

It’s give me the following response:

string(77) "{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]} "

Note: I’m trying active TOKEN and accountID

Not sure what the issue is, Please help if you can.

Docs URL:

I am following 

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.