Chat history

Create a chat history entry

Save chat history items of a Replica belonging to the logged in user.

post/v1/replicas/{replicaUUID}/chat/history

Request

  • Base URL: https://api.sensay.io
  • URL: https://api.sensay.io/v1/replicas/{replicaUUID}/chat/history
  • Auth: one of:
    • API key in header X-ORGANIZATION-SECRET and API key in header X-USER-ID and API key in header X-USER-ID-TYPE
    • API key in header X-ORGANIZATION-SECRET

Path parameters

replicaUUIDstring uuid required

The replica unique identifier (UUID)

Example:03db5651-cb61-4bdf-9ef0-89561f7c9c53

Headers

X-API-Versionstring
Example:2025-03-25
Content-Encoding'gzip'

Content encoding for request body compression. Optional - when used, client is responsible for gzipping and sending binary data.

Request body

contentstring required

Content of the message

source'discord' | 'telegram' | 'embed' | 'web' | 'telegram_autopilot'

The place where the conversation is happening, which informs where the message should be saved in the chat history.

Example request

{
  "content": "How did you handle the immense pressure during the Civil War?"
}

Response

Saves the chat history of the replica by the currently logged in user.

successboolean required

Indicates the status of the request

Changes

No recorded changes to this operation across all 1 revision of this API.