POST /v1/contacts/custom-fields/{id}/ai-fill-preview
POST
/v1/contacts/custom-fields/{id}/ai-fill-preview
const url = 'https://seu-endereco-da-api/v1/contacts/custom-fields/example/ai-fill-preview';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"messages":[{"role":"user","content":"example"}],"description":"example"}'};
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/example/ai-fill-preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "messages": [ { "role": "user", "content": "example" } ], "description": "example" }'Permissão que a Chave de acesso precisa: Gerenciar campos personalizados (contacts:fields).
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
messages
required
Array<object>
object
role
required
string
content
required
string
description
string
Responses
Seção intitulada “Responses”Media typeapplication/json
object
value
required
O valor que a IA gravaria lendo a conversa de exemplo; null quando a conversa nao responde
One of:
string
number
boolean
Array<string>
blocked
required
Why the AI was not asked; value is null when set
string
Example
{ "blocked": "disabled"}Field missing, archived, hidden or computed
The AI could not answer