Set Thread Handoff
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"provenance": {},
"topics": [],
"object": "thread",
"title": "<string>",
"ticket": {
"id": "<string>",
"ticketing_system": "<string>",
"object": "ticket",
"external_id": "<string>"
},
"user_email": "<string>",
"evaluation": "<string>",
"evaluation_comment": "<string>",
"reviewed_at": "<string>",
"admin_status": {
"id": "<string>",
"name": "<string>",
"object": "thread_admin_status",
"color": "<string>"
},
"admin_tags": [],
"llm_judge_evaluated": false,
"llm_judge_need_review": false,
"cx_score": 123,
"created_at": "<string>",
"updated_at": "<string>",
"message_count": 0,
"handoff_state": "ai"
}Conversations
Set Thread Handoff
Hand the conversation to your agent (external), or give it back to AGO’s AI (ai).
While external, the customer’s messages are recorded and reported as events, but AGO’s AI does not answer
them. ai only ends your agent’s turn: a conversation the AGO team handles keeps its state.
PUT
/
api
/
v1
/
conversations
/
{thread_id}
/
handoff
Set Thread Handoff
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/handoff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"provenance": {},
"topics": [],
"object": "thread",
"title": "<string>",
"ticket": {
"id": "<string>",
"ticketing_system": "<string>",
"object": "ticket",
"external_id": "<string>"
},
"user_email": "<string>",
"evaluation": "<string>",
"evaluation_comment": "<string>",
"reviewed_at": "<string>",
"admin_status": {
"id": "<string>",
"name": "<string>",
"object": "thread_admin_status",
"color": "<string>"
},
"admin_tags": [],
"llm_judge_evaluated": false,
"llm_judge_need_review": false,
"cx_score": 123,
"created_at": "<string>",
"updated_at": "<string>",
"message_count": 0,
"handoff_state": "ai"
}Body
application/json
Response
200 - application/json
OK
