Get Started
interactions
documents
alignment
classification
explainability
swagger
documents
Generate Document
Generate Document.
POST
/
interactions
/
{id}
/
documents
/
cURL
Copy
Ask AI
curl --request POST \
--url https://api.{environment}.corti.app/v2/interactions/{id}/documents/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-Name: <tenant-name>' \
--data '{
"context": [
{
"type": "facts",
"data": [
{
"text": "<string>",
"group": "Others",
"source": "core"
}
]
}
],
"templateKey": "<string>",
"name": "<string>",
"modelName": "\"model_name (Latest)\" | \"model_name_version\"",
"outputLanguage": "<string>"
}'
Copy
Ask AI
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "<string>",
"templateRef": "<string>",
"isStream": true,
"sections": [
{
"key": "<string>",
"name": "<string>",
"text": "<string>",
"sort": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"outputLanguage": "<string>",
"usageInfo": {
"creditsConsumed": 123
}
}
Authorizations
Input your token
Headers
Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.
Example:
"copiloteu"
Path Parameters
The unique identifier of the interaction. Must be a valid UUID.
Example:
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Body
application/json
Response
201
application/json
The response is of type object
.
Was this page helpful?
cURL
Copy
Ask AI
curl --request POST \
--url https://api.{environment}.corti.app/v2/interactions/{id}/documents/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-Name: <tenant-name>' \
--data '{
"context": [
{
"type": "facts",
"data": [
{
"text": "<string>",
"group": "Others",
"source": "core"
}
]
}
],
"templateKey": "<string>",
"name": "<string>",
"modelName": "\"model_name (Latest)\" | \"model_name_version\"",
"outputLanguage": "<string>"
}'
Copy
Ask AI
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "<string>",
"templateRef": "<string>",
"isStream": true,
"sections": [
{
"key": "<string>",
"name": "<string>",
"text": "<string>",
"sort": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"outputLanguage": "<string>",
"usageInfo": {
"creditsConsumed": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.