curl --request GET \
--url https://api.vectorify.ai/v1/chats \
--header 'Api-Key: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"tenant": 123,
"created_at": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"messages": [
{
"id": "<string>",
"chat_id": "<string>",
"role": "<string>",
"text": "<string>",
"text_html": "<string>",
"identifier": "<string>",
"feedback": "<string>",
"created_at": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<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>"
}
}Retrieve a list of chats and their messages.
curl --request GET \
--url https://api.vectorify.ai/v1/chats \
--header 'Api-Key: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"tenant": 123,
"created_at": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>",
"created_at": "<string>"
},
"messages": [
{
"id": "<string>",
"chat_id": "<string>",
"role": "<string>",
"text": "<string>",
"text_html": "<string>",
"identifier": "<string>",
"feedback": "<string>",
"created_at": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<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>"
}
}Paginated set of Chat
Show child attributes
Show child attributes
Show child attributes
Base path for paginator generated URLs.
Number of items shown per page.
Number of the last item in the slice.
Total number of items being paginated.
Was this page helpful?