Skip to main content
GET
/
v1
/
assistants
/
{identifier}
/
chats
/
{chatUid}
Get chat history by chat UID
curl --request GET \
  --url https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid} \
  --header 'Authorization: Bearer <token>'
{
  "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

Path Parameters

identifier
string
required

Identifier of the assistant specialization

chatUid
string
required

Unique identifier of the chat session

Response

Chat history retrieved successfully

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