Chats
Retrieve a list of chats
Retrieve a list of chats and their messages.
GET
/
chats
Copy
curl --request GET \
--url https://api.vectorify.ai/v1/chats \
--header 'Api-Key: <api-key>'
Copy
{
"data": [
{
"id": "<string>",
"name": "<string>",
"tenant": 123,
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"created_at": "<string>",
"messages": [
{
"id": "<string>",
"chat_id": "<string>",
"role": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"text": "<string>",
"text_html": "<string>",
"identifier": "<string>",
"feedback": "<string>",
"created_at": "<string>"
}
]
}
],
"meta": {
"current_page": 123,
"from": 123,
"last_page": 123,
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"path": "<string>",
"per_page": 123,
"to": 123,
"total": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
}
}
Authorizations
Response
200 - application/json
Paginated set of Chat
The response is of type object
.
Was this page helpful?
Copy
curl --request GET \
--url https://api.vectorify.ai/v1/chats \
--header 'Api-Key: <api-key>'
Copy
{
"data": [
{
"id": "<string>",
"name": "<string>",
"tenant": 123,
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"created_at": "<string>",
"messages": [
{
"id": "<string>",
"chat_id": "<string>",
"role": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"text": "<string>",
"text_html": "<string>",
"identifier": "<string>",
"feedback": "<string>",
"created_at": "<string>"
}
]
}
],
"meta": {
"current_page": 123,
"from": 123,
"last_page": 123,
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"path": "<string>",
"per_page": 123,
"to": 123,
"total": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.