Skip to content

Generate Suggestions

POST
/api/canvas/{deal_id}/sections/{section_key}/suggestions
curl --request POST \
--url https://example.com/api/canvas/example/sections/example/suggestions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "content": "example", "max_suggestions": 5 }'

Generate inline AI suggestions for a section’s content.

deal_id
required
Deal Id
string
section_key
required
Section Key
string
Media type application/json
SuggestionRequest
object
content
required
Content
string
max_suggestions
Max Suggestions
integer
default: 5 >= 1 <= 10

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}