Skip to main content
POST
Agent Handoff

Authorizations

X-API-Key
string
header
required

Authenticate every request by passing your API key in the X-API-Key header. To get your key, go to Dashboard → API Keys and create or copy your Production API key.

Body

application/json

Hands the session to another agent after the current session ends. The tenant is taken from the API key.

agentId
string
required

Agent that should run after the session ends.

Example:

"agent_LcVwHFuLEhOxM3JR"

callId
string
required

Call, chat, or simulation id of the session to hand off.

Example:

"call_dKOTuprQCWkQEYMw"

Response

OK

Result of handing a session to another agent.

executionId
integer<int64>

Execution created for the target agent.

Example:

77943

conversationId
integer<int64>

Session ticket id.

Example:

2206360

agentId
string

Target agent id.

Example:

"agent_LcVwHFuLEhOxM3JR"

routerId
integer<int64>

Target agent router id.

Example:

1216

status
string

Handoff status.

Example:

"completed"