Skip to main content

Add Message

POST 

/chat-svc/thread/:threadId/message

Add a new message to a specific thread.

Request

Path Parameters

    threadId stringrequired

    Thread ID

Body

required

Add Message Request

    message

    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.

Responses

Message successfully added

Schema

    property name* any
Loading...