Resolve
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/resolutions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "en",
"wait_seconds": 30
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/resolutions"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "en",
"wait_seconds": 30
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
input: '<string>',
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language: 'en',
wait_seconds: 30
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/resolutions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}Resolutions
Resolve
Answer text, a message array, or an email object without streaming.
Returns the completed answer, or 202 with a Location to poll. Set Accept to text/markdown or text/plain to receive only the completed answer body.
POST
/
api
/
v1
/
resolutions
Resolve
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/resolutions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "en",
"wait_seconds": 30
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/resolutions"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "en",
"wait_seconds": 30
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
input: '<string>',
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language: 'en',
wait_seconds: 30
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/resolutions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"status_url": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sources": [
{
"document_id": "<string>",
"position": 123,
"object": "message_source",
"page_id": "<string>",
"title": "<string>"
}
],
"error": "<string>"
}Authorizations
Headers
Body
application/json
Response
OK
Available options:
queued, running, completed, requires_action, canceled, failed Show child attributes
Show child attributes
