POST /v1/deals/{id}/data-suggestions
POST
/v1/deals/{id}/data-suggestions
const url = 'https://seu-endereco-da-api/v1/deals/example/data-suggestions';const options = {method: 'POST', 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 POST \ --url https://seu-endereco-da-api/v1/deals/example/data-suggestions \ --header 'Authorization: Bearer <token>'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
Responses
Seção intitulada “Responses”Media typeapplication/json
object
suggestions
required
Blank deal value, expected close date and non-sensitive custom fields of the deal, contact and company the caller may edit, 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"}The AI could not answer