POST /v1/contacts/custom-fields/suggestion
POST
/v1/contacts/custom-fields/suggestion
const url = 'https://seu-endereco-da-api/v1/contacts/custom-fields/suggestion';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"request":"example","entity":"contact"}'};
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/contacts/custom-fields/suggestion \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "request": "example", "entity": "contact" }'Permissão que a Chave de acesso precisa: Gerenciar campos personalizados (contacts:fields).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
request
required
string
entity
string
Responses
Seção intitulada “Responses”Media typeapplication/json
object
fields
required
Fields the AI proposes from the owner’s description; nothing is created until the owner confirms
Array<object>
object
key
required
Free key derived from the label, not taken by any field of the account, archived ones included
string
label
required
string
type
required
string
options
required
Only for SELECT and MULTISELECT
Array<string>
description
required
string
groupId
required
Existing group of the same entity; null with groupName set means a group to create
string format: uuid
groupName
required
string
sensitive
required
Always false for deal fields
boolean
blocked
required
Why the AI was not asked; fields is empty when set
string
Example
{ "fields": [ { "type": "TEXT" } ], "blocked": "disabled"}The AI could not answer