Import Thread
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source": "<string>",
"external_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"external_id": "<string>"
},
"messages": [
{
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"title": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/import"
payload = {
"source": "<string>",
"external_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": { "external_id": "<string>" },
"messages": [
{
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"title": "<string>"
}
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({
source: '<string>',
external_id: '<string>',
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
user: {external_id: '<string>'},
messages: [{content: '<string>', created_at: '2023-11-07T05:31:56Z'}],
title: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Conversations
Import Thread
POST
/
api
/
v1
/
conversations
/
import
Import Thread
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/conversations/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source": "<string>",
"external_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"external_id": "<string>"
},
"messages": [
{
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"title": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/conversations/import"
payload = {
"source": "<string>",
"external_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": { "external_id": "<string>" },
"messages": [
{
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"title": "<string>"
}
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({
source: '<string>',
external_id: '<string>',
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
user: {external_id: '<string>'},
messages: [{content: '<string>', created_at: '2023-11-07T05:31:56Z'}],
title: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/conversations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Body
application/json
Pattern:
^[a-z0-9][a-z0-9._-]{0,99}$Required string length:
1 - 255Show child attributes
Show child attributes
Required array length:
2 - 1000 elementsShow child attributes
Show child attributes
Maximum string length:
255Response
200
OK
