Close a stream

To close the stream, make a DELETE request to this endpoint. This will close the connection and end the stream. The stream will be closed automatically if no render requests are sent for 2 minutes with one stream.

await fetch(`/stream/${streaId}`,{ 
    method: 'DELETE',
     headers: {
      Authorization: `Bearer ${SECRET_KEY}`
    }, 
})

Path Params
string
required

Stream ID, obtained from the 'Create a stream' request

Responses

Language
Credentials
Header
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json