Skip to content

Commit fdf00ef

Browse files
committed
Add back the create topic and generate message pages
1 parent a0a34c8 commit fdf00ef

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
openapi: POST /chat/topic
3+
---
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
openapi: POST /chat/message
3+
---

discovery-openapi.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,87 @@
417417
}
418418
}
419419
}
420+
},
421+
"/chat/topic": {
422+
"post": {
423+
"x-mcp": {
424+
"enabled": true
425+
},
426+
"summary": "Create Assistant Chat Topic",
427+
"description": "Creates a topic to manage message history for a given AI assistant conversation",
428+
"responses": {
429+
"200": {
430+
"description": "Topic created successfully",
431+
"content": {
432+
"application/json": {
433+
"schema": {
434+
"type": "object",
435+
"properties": {
436+
"topicId": {
437+
"type": "string",
438+
"description": "The id of the created topic."
439+
}
440+
}
441+
}
442+
}
443+
}
444+
}
445+
}
446+
}
447+
},
448+
"/chat/message": {
449+
"post": {
450+
"x-mcp": {
451+
"enabled": true
452+
},
453+
"summary": "Create Assistant Chat Message",
454+
"description": "Generate a completion in response to a user query",
455+
"requestBody": {
456+
"required": true,
457+
"content": {
458+
"application/json": {
459+
"schema": {
460+
"type": "object",
461+
"required": [
462+
"topicId",
463+
"message"
464+
],
465+
"properties": {
466+
"topicId": {
467+
"type": "string",
468+
"description": "The topic ID to associate this message with"
469+
},
470+
"message": {
471+
"type": "string",
472+
"description": "The user message to generate a completion for"
473+
}
474+
}
475+
}
476+
}
477+
}
478+
},
479+
"responses": {
480+
"200": {
481+
"description": "Topic created successfully",
482+
"headers": {
483+
"X-Mintlify-Base-Url": {
484+
"schema": {
485+
"type": "string"
486+
},
487+
"description": "The base URL for the Mintlify documentation"
488+
}
489+
},
490+
"content": {
491+
"text/plain": {
492+
"schema": {
493+
"type": "string",
494+
"description": "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: \n ```\n { \n \tid: string;\n \tlink: string;\n \tchunk_html: string;\n \tmetadata: {\n \t\ttitle?: string\n \t}\n} \n``` \n 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."
495+
}
496+
}
497+
}
498+
}
499+
}
500+
}
420501
}
421502
},
422503
"components": {

0 commit comments

Comments
 (0)