curl --request POST \
--url https://api.example.com/message-templates \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "<string>",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"text": "<string>",
"buttons": [
{
"text": "<string>",
"type": "<string>"
}
],
"example": {
"body_text": [
[
"<string>"
]
],
"body_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"header_text": [
"<string>"
],
"header_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"button_text": [
"<string>"
],
"button_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
]
}
}
],
"language": "pt_BR"
}
'Cria um novo template de mensagem.
curl --request POST \
--url https://api.example.com/message-templates \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "<string>",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"text": "<string>",
"buttons": [
{
"text": "<string>",
"type": "<string>"
}
],
"example": {
"body_text": [
[
"<string>"
]
],
"body_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"header_text": [
"<string>"
],
"header_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"button_text": [
"<string>"
],
"button_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
]
}
}
],
"language": "pt_BR"
}
'Chave privada da API
Nome do template. Deve ser em letras minúsculas, sem acentuação e sem espaços em branco, podendo ter underscore (_)
Categoria do template. Opções: UTILITY, MARKETING, AUTHENTICATION
UTILITY, MARKETING, AUTHENTICATION Show child attributes
Idioma do template (padrão: pt_BR)
Default Response