List copilot messages
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"content": "<string>",
"message_type": "<string>"
}
]{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Livia Desk
List copilot messages
List messages in a copilot thread.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
captain
/
copilot_threads
/
{copilot_thread_id}
/
copilot_messages
List copilot messages
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/captain/copilot_threads/{copilot_thread_id}/copilot_messages"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"content": "<string>",
"message_type": "<string>"
}
]{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}