List Messages
POST/chat-svc/thread/:threadId/messages
Fetch messages (and associated assets) for a specific chat thread.
Request
Path Parameters
threadId stringrequired
Thread ID
Responses
- 200
- 400
- 401
- 500
Messages and assets successfully retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
assets
object[]
content string
Content is the base64 encoded binary file direcly embedded in the asset itself
createdAt string
description string
id string
type string
updatedAt string
url string
Url of the asset where
messages
object[]
assetIds string[]
AssetIds defines the attachments the message has.
content string
Content of the message eg. "Hi, what's up?"
createdAt string
id string
threadId string
ThreadId of the message.
updatedAt string
userId string
UserId is the id of the user who wrote the message. For AI messages this field is empty.
{
"assets": [
{
"content": "string",
"createdAt": "string",
"description": "string",
"id": "string",
"type": "string",
"updatedAt": "string",
"url": "string"
}
],
"messages": [
{
"assetIds": [
"string"
],
"content": "string",
"createdAt": "string",
"id": "string",
"threadId": "string",
"updatedAt": "string",
"userId": "string"
}
]
}
Invalid JSON
- application/json
- Schema
Schema
string
Unauthorized
- application/json
- Schema
Schema
string
Internal Server Error
- application/json
- Schema
Schema
string
Loading...