Skip to main content
POST
/
v1
/
assistants
/
chats
List chat histories with filters
curl --request POST \
  --url https://api.devic.ai/v1/assistants/chats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assistantIdentifier": "<string>",
  "fromDate": "2023-12-25",
  "toDate": "2023-12-25",
  "metadata": {}
}
'
[
  {
    "chatUid": "<string>",
    "assistantIdentifier": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "messages": [
      {
        "role": "user",
        "content": "<string>",
        "timestamp": "2023-11-07T05:31:56Z"
      }
    ],
    "metadata": {}
  }
]

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Body

application/json

Filter parameters for chat histories

assistantIdentifier
string

Filter by assistant specialization identifier

fromDate
string<date>

Start date for filtering chat histories

toDate
string<date>

End date for filtering chat histories

metadata
object

Filter by metadata fields

Response

List of chat histories matching the filter

chatUid
string
required

Unique identifier for the chat session

assistantIdentifier
string
required

Identifier for the assistant specialization used

createdAt
string<date-time>
required

Timestamp when the chat was created

messages
object[]
required

Messages exchanged in the chat

metadata
object

Custom metadata associated with the chat