Skip to content

Hand a call to the assistant

POST
/v1/calls/{callId}/agent
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.

callId
required
string

The assistant is joining.

Media typeapplication/json
object
requested
boolean
status
string
Allowed values: off waiting connecting live ended error
error
string
transcript
Array<object>
object
role
string
Allowed values: caller agent
text
string
at
string format: date-time
message
object
callId
string
remoteNumber
string
callerName
string
reason
string
callbackNumber
string
urgency
string
Allowed values: low normal high
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"
}
}