Hand a call to the assistant
POST
/v1/calls/{callId}/agent
const url = 'https://your-machine.your-tailnet.ts.net/v1/calls/example/agent';const options = {method: 'POST', 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 POST \ --url https://your-machine.your-tailnet.ts.net/v1/calls/example/agent \ --header 'Authorization: Bearer <token>'Answers a ringing incoming call first. Needs a Gemini API key in Settings.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”callId
required
string
Responses
Section titled “Responses”The assistant is joining.
Media typeapplication/json
object
requested
boolean
status
string
error
string
transcript
Array<object>
object
role
string
text
string
at
string format: date-time
message
object
callId
string
remoteNumber
string
callerName
string
reason
string
callbackNumber
string
urgency
string
takenAt
string format: date-time
Example
{ "status": "off", "transcript": [ { "role": "caller" } ], "message": { "urgency": "low" }}No Gemini key, or the call isn’t live.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
issues
Validation details
Array
Example
{ "error": { "code": "DEVICE_OFFLINE" }}