Skip to main content
POST
/
chat
Chat With Assistant
curl --request POST \
  --url https://api.dev.opencorpus.ai/chat/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assistant_id": "<string>",
  "input": "<string>",
  "input_type": "<string>",
  "session_id": "<string>"
}
'
{
  "output_type": "<string>",
  "output": "<string>",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
assistant_id
string
required
input
string
required
input_type
string
required
session_id
string | null

Response

Successful Response

output_type
string
required
output
string
required
session_id
string
required