POST
/
api
/
message
/
generate_message_completions
curl --request POST \
  --url https://api.trieve.ai/api/message/generate_message_completions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "system_message": "<string>",
  "user_message": "<string>"
}'
"<string>"

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json

JSON request payload to generate a message completion

The body is of type object.

Response

200
text/plain

The generated message completion

The response is of type string.