POST /v1/deals/{id}/fill-suggestions
POST
/v1/deals/{id}/fill-suggestions
const url = 'https://seu-endereco-da-api/v1/deals/example/fill-suggestions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"stageId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/deals/example/fill-suggestions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "stageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Permissão que a Chave de acesso precisa: Criar e mover negócios (deals:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
stageId
required
string format: uuid
Example generated
{ "stageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
suggestions
required
Only the required fields still blank and the expected close date the stage asks for that the conversation answers; nothing is saved
Array<object>
object
fieldId
The custom field (contact, company or deal) the value fills; absent when target is expected_close or value
string
target
required
Value only comes from data-suggestions
string
value
required
Already valid for the field type: text, number, boolean, one option or a list of options; expected_close is AAAA-MM-DD; value is the deal value in cents
object
quote
required
The words of the conversation that show the value
string
reason
Why the AI was not asked; the list is empty and nothing was charged
string
Example
{ "suggestions": [ { "target": "field" } ], "reason": "disabled"}Stage of another pipeline, or the intake stage
The AI could not answer