Pular para o conteúdo

POST /v1/templates/{id}/prefill

POST
/v1/templates/{id}/prefill
curl --request POST \
--url https://seu-endereco-da-api/v1/templates/example/prefill \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "conversationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Permissão que a Chave de acesso precisa: Enviar mensagem e atender (conversations:write).

id
required
string
Media typeapplication/json
object
conversationId
required
string format: uuid

Example generated

{
"conversationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
Media typeapplication/json
object
values
required

One value per text variable, in send order; null where the agent types it or no value nor fallback was found

Array<string>
bindingsNeedReconfiguration
required

True when the template changed on Meta since its variables were bound, so the values come back empty for the agent to type

boolean

Example generated

{
"values": [
"example"
],
"bindingsNeedReconfiguration": true
}