Refer a call session by it's session ID.
The unique ID of session.
The extension number to refer the session.
The refer target, usually a number.
Ok
const response = await fetch('http://127.0.0.1:8888/api/sessions/{id}/refer', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "extension_number": {}, "refer_to": "text" }), }); const data = await response.json();