Skip to main content
POST
Chat with conversation memory

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Headers

X-Workspace-Id
string
required

Workspace ID

Body

application/json

Chat request

conversation_id
string
required
Required string length: 1 - 100
message
string
required
Minimum string length: 1
workspace_id
string
required
document_ids
string[]
Maximum array length: 10
max_history
integer
Required range: 1 <= x <= 100
max_tokens
integer
Required range: 1 <= x <= 16384
model
string
system_prompt
string
Maximum string length: 10000
temperature
number
Required range: 0 <= x <= 2

Response

Chat response

Conversation chat response

content
string
Example:

"Here is my response..."

conversation_id
string
Example:

"conv_abc123"

input_tokens
integer
Example:

150

model
string
Example:

"gpt-4"

output_tokens
integer
Example:

200