Criar modelo de mensagem
POST
https://api.cubosuite.com.br/templates
Descrição
Campos Obrigatórios
Campo | Tipo | Descrição |
---|---|---|
name | string | Nome do template/mensagem. |
body | string | Corpo da mensagem. |
type | enum | Tipo da mensagem: 'email' ou 'whatsapp' . |
pipeId | number | ID do funil associado. |
Campos Obrigatórios
Campo | Tipo | Descrição |
---|---|---|
subject | string | Assunto da mensagem. |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cubosuite.com.br/templates' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Novo template 2",
"body" : "sdhisuadh asiudhsad iquwhe e",
"type": "whatsapp",
"pipeId": 303247
}'
Response Response Example
{
"name": "Novo template 2",
"body": "sdhisuadh asiudhsad iquwhe e",
"type": "whatsapp",
"pipeId": 303247,
"createdAt": "2025-06-23T12:46:00.788-03:00",
"updatedAt": "2025-06-23T12:46:00.788-03:00",
"id": 301685,
"pipe": {
"id": 303247,
"name": "Apresentação",
"orderNr": 1,
"companyId": 1,
"dailyReports": null,
"createdAt": "2025-05-23T15:55:18.000-03:00",
"updatedAt": "2025-06-20T10:54:12.000-03:00",
"status": "active",
"firstRating": null,
"seccondRating": null,
"thirdRating": null,
"fourthRating": null,
"fifthRating": null,
"showProductFormat": "setfield",
"timeEditAnnotation": 0,
"showCustomFieldFormat": "setfield",
"primaryField": null,
"meta": {
"deleted_at": null
}
}
}
Requisição
Parâmetros Header
Content-Type
string
opcional
Exemplo:
application/json
Parâmetros Bodyapplication/json
Respostas
Modificado em 2025-06-23 15:46:59