POST
/
chat
/
message
curl --request POST \
  --url https://api-dsc.mintlify.com/v1/chat/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "topicId": "<string>",
  "message": "<string>"
}'
"<string>"

Authorizations

Authorization
string
header
required

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

Body

application/json
topicId
string
required

The topic ID to associate this message with

message
string
required

The user message to generate a completion for

Response

200 - text/plain
Topic created successfully

A text stream in the form <response>||[chunks]. The chunks are parts of your docs that most closely matched the user query. Each has the following format:

{ 
	id: string;
	link: string;
	chunk_html: string;
	metadata: {
		title?: string
	}
} 

The links are relative links with your docs URL intended as the host. To get an absolute link to your docs, you can use the X-Mintlify-Base-Url header as the host and construct a fully-qualified URL.