Disconnect your agent
DELETE
/v1/calls/{callId}/stream
const url = 'https://your-machine.your-tailnet.ts.net/v1/calls/example/stream';const options = {method: 'DELETE', 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 DELETE \ --url https://your-machine.your-tailnet.ts.net/v1/calls/example/stream \ --header 'Authorization: Bearer <token>'Closes the agent socket without hanging up the call.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”callId
required
string
Responses
Section titled “Responses”Detached.