GET /v1/conversations/{id}/default-template
const url = 'https://seu-endereco-da-api/v1/conversations/example/default-template';const options = {method: 'GET', 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 GET \ --url https://seu-endereco-da-api/v1/conversations/example/default-template \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Enviar mensagem e atender (conversations:write).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Responses
Seção intitulada “Responses”object
object
Characters left for the agent text in the 1024-character body, after the other variables of this conversation
Labels of the variables with no value for this contact; sending is refused while any is missing
The channel’s attachment slots that are ready for this conversation; an attachment with no matching header is refused
object
Characters left for the agent text in the 1024-character body, after the other variables of this conversation
Labels of the variables with no value for this contact; sending is refused while any is missing
Header the attachment fills
Attachment types this header takes; any other type is refused with attachment_not_for_template
Largest attachment, in bytes, this header takes; a larger one is refused with attachment_too_large_for_template
Example
{ "attachmentTemplates": [ { "headerFormat": "IMAGE" } ]}