Skip to main content
PUT
/
v1
/
assistant-chat
/
history
Save assistant chat history
curl --request PUT \
  --url http://localhost:3333/v1/assistant-chat/history \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "messages": [
    {
      "id": "msg_abc123",
      "role": "user",
      "text": "How do I invite a teammate?",
      "createdAt": 1735781554000
    }
  ]
}
'

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for JWT auth, optional for API key auth)

Body

application/json
messages
object[]
required

Response

200 - undefined