Get contextual chat suggestions
GET
/api/canvas/{deal_id}/chat/suggestions
const url = 'https://example.com/api/canvas/example/chat/suggestions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/canvas/example/chat/suggestions \ --header 'Authorization: Bearer <token>'Returns 2-4 content-aware prompt suggestions based on the deal memo. Falls back to section-specific or general suggestions if memo content is unavailable.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
ChatSuggestionsResponse
Response body for contextual chat suggestions.
object
suggestions
required
Suggestions
Array<string>
deal_id
required
Deal Id
string
Example generated
{ "suggestions": [ "example" ], "deal_id": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}