Agent Handoff
curl --request POST \
--url https://api.sigmamind.ai/v1/platform/agent-handoff \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agentId": "agent_LcVwHFuLEhOxM3JR",
"callId": "call_dKOTuprQCWkQEYMw"
}
'import requests
url = "https://api.sigmamind.ai/v1/platform/agent-handoff"
payload = {
"agentId": "agent_LcVwHFuLEhOxM3JR",
"callId": "call_dKOTuprQCWkQEYMw"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({agentId: 'agent_LcVwHFuLEhOxM3JR', callId: 'call_dKOTuprQCWkQEYMw'})
};
fetch('https://api.sigmamind.ai/v1/platform/agent-handoff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sigmamind.ai/v1/platform/agent-handoff",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentId' => 'agent_LcVwHFuLEhOxM3JR',
'callId' => 'call_dKOTuprQCWkQEYMw'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sigmamind.ai/v1/platform/agent-handoff"
payload := strings.NewReader("{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sigmamind.ai/v1/platform/agent-handoff")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sigmamind.ai/v1/platform/agent-handoff")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}"
response = http.request(request)
puts response.read_body{
"executionId": 77943,
"conversationId": 2206360,
"agentId": "agent_LcVwHFuLEhOxM3JR",
"routerId": 1216,
"status": "completed"
}{
"error": "Bad Request",
"message": "Invalid request parameters",
"path": "/v1/platform/agent-handoff",
"status": 400,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Unauthorized",
"message": "X-API-Key is missing or invalid",
"path": "/v1/platform/agent-handoff",
"status": 401,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Forbidden",
"message": "Access denied for this resource",
"path": "/v1/platform/agent-handoff",
"status": 403,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Not Found",
"message": "The requested resource was not found",
"path": "/v1/platform/agent-handoff",
"status": 404,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Internal Server Error",
"message": "Unexpected server error",
"path": "/v1/platform/agent-handoff",
"status": 500,
"timestamp": "2026-11-17T18:30:00"
}Agent Handoff
Hands a call, chat, or simulation to another agent. The tenant is taken from the API key. This calls the agent handoff trigger for that session.
POST
/
v1
/
platform
/
agent-handoff
Agent Handoff
curl --request POST \
--url https://api.sigmamind.ai/v1/platform/agent-handoff \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agentId": "agent_LcVwHFuLEhOxM3JR",
"callId": "call_dKOTuprQCWkQEYMw"
}
'import requests
url = "https://api.sigmamind.ai/v1/platform/agent-handoff"
payload = {
"agentId": "agent_LcVwHFuLEhOxM3JR",
"callId": "call_dKOTuprQCWkQEYMw"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({agentId: 'agent_LcVwHFuLEhOxM3JR', callId: 'call_dKOTuprQCWkQEYMw'})
};
fetch('https://api.sigmamind.ai/v1/platform/agent-handoff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sigmamind.ai/v1/platform/agent-handoff",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentId' => 'agent_LcVwHFuLEhOxM3JR',
'callId' => 'call_dKOTuprQCWkQEYMw'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sigmamind.ai/v1/platform/agent-handoff"
payload := strings.NewReader("{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sigmamind.ai/v1/platform/agent-handoff")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sigmamind.ai/v1/platform/agent-handoff")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"agent_LcVwHFuLEhOxM3JR\",\n \"callId\": \"call_dKOTuprQCWkQEYMw\"\n}"
response = http.request(request)
puts response.read_body{
"executionId": 77943,
"conversationId": 2206360,
"agentId": "agent_LcVwHFuLEhOxM3JR",
"routerId": 1216,
"status": "completed"
}{
"error": "Bad Request",
"message": "Invalid request parameters",
"path": "/v1/platform/agent-handoff",
"status": 400,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Unauthorized",
"message": "X-API-Key is missing or invalid",
"path": "/v1/platform/agent-handoff",
"status": 401,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Forbidden",
"message": "Access denied for this resource",
"path": "/v1/platform/agent-handoff",
"status": 403,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Not Found",
"message": "The requested resource was not found",
"path": "/v1/platform/agent-handoff",
"status": 404,
"timestamp": "2026-11-17T18:30:00"
}{
"error": "Internal Server Error",
"message": "Unexpected server error",
"path": "/v1/platform/agent-handoff",
"status": 500,
"timestamp": "2026-11-17T18:30:00"
}Authorizations
Body
application/json
Hands the session to another agent after the current session ends. The tenant is taken from the API key.
Response
OK
Result of handing a session to another agent.