Listar todos os modelos de mensagem
GET
https://api.cubosuite.com.br/templates
Descrição
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.cubosuite.com.br/templates?company_id=1&limit=10&page=1&orderColumn=created_at&orderDirection=asc'
Response Response Example
{
"meta": {
"total": 12,
"per_page": 10,
"current_page": 1,
"last_page": 2,
"first_page": 1,
"first_page_url": "/?page=1",
"last_page_url": "/?page=2",
"next_page_url": "/?page=2",
"previous_page_url": null
},
"data": [
{
"id": 300272,
"name": "Teste 2",
"subject": null,
"body": "Olá {{people.first_name}}! Me chamo {{user.first_name}} e estou aqui para te dar boas vindas ao Cubo Suíte!{{pular}}{{pular}}\n\nSeu período de testes foi concluído com sucesso e vejo aqui que você já ativou sua conta. {{pular}}\nPor isso, para te ajudar nestes primeiros passos, podemos agendar uma Call gratuita de implantação com duração 45minutos onde eu posso te apresentar o sistema e te ajudar a personaliza-lo para o seu contexto de negócios.{{pular}}{{pular}}\n\nSe tiver interesse, basta responder essa mensagem para combinarmos a melhor data.",
"pipeId": 300687,
"type": "whatsapp",
"createdAt": "2024-01-08T09:58:32.000-03:00",
"updatedAt": "2025-01-29T10:16:52.000-03:00",
"pipe": {
"id": 300687,
"name": "Onboard",
"orderNr": 1,
"companyId": 1,
"dailyReports": "isalinas@crowcreative.com.br",
"createdAt": "2023-12-27T11:47:43.000-03:00",
"updatedAt": "2025-03-13T15:12:03.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
}
}
},
{
"id": 300406,
"name": "Primeiro contato",
"subject": null,
"body": "Olá {{people.first_name}}, sou o {{user.first_name}}.\nBem vindo....",
"pipeId": 300687,
"type": "whatsapp",
"createdAt": "2024-03-26T11:18:12.000-03:00",
"updatedAt": "2024-03-26T11:18:12.000-03:00",
"pipe": {
"id": 300687,
"name": "Onboard",
"orderNr": 1,
"companyId": 1,
"dailyReports": "isalinas@crowcreative.com.br",
"createdAt": "2023-12-27T11:47:43.000-03:00",
"updatedAt": "2025-03-13T15:12:03.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
}
}
},
{
"id": 300801,
"name": "Boas vindas",
"subject": null,
"body": "Oi {{people.name}}, sou o {{user.name}} e gostaria de te dar boas vindas",
"pipeId": 300687,
"type": "whatsapp",
"createdAt": "2024-08-28T09:40:11.000-03:00",
"updatedAt": "2024-08-28T09:40:11.000-03:00",
"pipe": {
"id": 300687,
"name": "Onboard",
"orderNr": 1,
"companyId": 1,
"dailyReports": "isalinas@crowcreative.com.br",
"createdAt": "2023-12-27T11:47:43.000-03:00",
"updatedAt": "2025-03-13T15:12:03.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 Query
company_id
string
requerido
Exemplo:
1
limit
number
opcional
Exemplo:
10
page
number
opcional
Exemplo:
1
orderColumn
string
opcional
Exemplo:
created_at
orderDirection
string
opcional
Exemplo:
asc
Parâmetros Header
Content-Type
string
opcional
Exemplo:
application/json
Respostas
Modificado em 2025-06-23 15:43:58