Discussions

Ask a Question
Back to All

session_timeout

I am config the session_timeout to 300, i am unable to make that config , after the session_timeout in body, i am unable to get reponse , i am putting my code down below :
const sessionResponse:any = await fetch(${DID_API.url}/talks/streams, {
method: 'POST',
headers: {'Authorization': Basic ${DID_API.key}, 'Content-Type': 'application/json' , ...reaminingHeaders},
body: JSON.stringify({
source_url: "https://clips-presenters.d-id.com/amy/FLZ1USJl7m/vzswgDCwKZ/image.png",
session_timeout : 299
}),
}).catch(async ()=>{
console.log("stream not startedddd")
});

Please respond me sooner