Skip to main content
GET
/
v1
/
assistants
/
{identifier}
/
chats
List chat histories for a specific assistant specialization
curl --request GET \
  --url https://api.devic.ai/v1/assistants/{identifier}/chats \
  --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

Query Parameters

limit
integer<int32>
default:20

Maximum number of chat histories to return

Required range: 1 <= x <= 100
offset
integer<int32>
default:0

Number of chat histories to skip (pagination offset)

Required range: x >= 0

Response

List of chat histories for the assistant specialization

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