Reply To Thread
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"author": {
"source": "<string>",
"id": "<string>",
"name": "<string>"
},
"external_id": "<string>",
"internal": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages"
payload = {
"content": "<string>",
"author": {
"source": "<string>",
"id": "<string>",
"name": "<string>"
},
"external_id": "<string>",
"internal": False
}
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({
content: '<string>',
author: {source: '<string>', id: '<string>', name: '<string>'},
external_id: '<string>',
internal: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"thread_id": "<string>",
"object": "message",
"content": "",
"role": "<string>",
"created_at": "<string>",
"sources": [],
"external_agent": {
"name": "<string>",
"type": "ai",
"id": "<string>",
"source": "<string>",
"external_id": "<string>"
},
"internal": false
}{
"id": "<string>",
"thread_id": "<string>",
"object": "message",
"content": "",
"role": "<string>",
"created_at": "<string>",
"sources": [],
"external_agent": {
"name": "<string>",
"type": "ai",
"id": "<string>",
"source": "<string>",
"external_id": "<string>"
},
"internal": false
}Conversations
Reply To Thread
Post a reply in a conversation on behalf of an AI or a person outside AGO.
The customer sees the reply with the author’s name and whether it is an AI. It does not start an
AGO answer. With internal, it is a note for your team: neither the customer nor AGO’s AI sees it.
Returns 201, or 200 with the reply already posted when external_id was sent before.
POST
/
api
/
v1
/
conversations
/
{thread_id}
/
messages
Reply To Thread
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"author": {
"source": "<string>",
"id": "<string>",
"name": "<string>"
},
"external_id": "<string>",
"internal": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages"
payload = {
"content": "<string>",
"author": {
"source": "<string>",
"id": "<string>",
"name": "<string>"
},
"external_id": "<string>",
"internal": False
}
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({
content: '<string>',
author: {source: '<string>', id: '<string>', name: '<string>'},
external_id: '<string>',
internal: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/{thread_id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"thread_id": "<string>",
"object": "message",
"content": "",
"role": "<string>",
"created_at": "<string>",
"sources": [],
"external_agent": {
"name": "<string>",
"type": "ai",
"id": "<string>",
"source": "<string>",
"external_id": "<string>"
},
"internal": false
}{
"id": "<string>",
"thread_id": "<string>",
"object": "message",
"content": "",
"role": "<string>",
"created_at": "<string>",
"sources": [],
"external_agent": {
"name": "<string>",
"type": "ai",
"id": "<string>",
"source": "<string>",
"external_id": "<string>"
},
"internal": false
}Body
application/json
Response
OK
