documents
Generate Document
Generate Document.
POST
https://copilot.{region}.corti.app/
/
v2
/
interactions
/
{id}
/
documents
Path Parameters
id
string
requiredThe interaction ID representing the context for the request.
Query Parameters
stream
boolean
If true the response happens via SSE sending back a full valid JSON always, however, the content within text may be incomplete.
Body
application/json
context
object[]
requiredAn array of context objects.
templateId
string
requiredThe ID of the template that informs on what kind of document is to be generated.
template
object
Template details if the template should be generated during the request. Overrides templateId.
name
string
An optional name for the document.
modelName
string
Response
201 - application/json
documentId
string
documentName
string
templateId
string
isStream
boolean
sections
object[]
Was this page helpful?