Criar Template

Cria um template.

Autenticação: token de cliente.

Campos:

  • name (obrigatório)
  • html (código HTML do template; use {{variavel}} para os campos dinâmicos)
  • allowed_variables (obrigatório) — objeto (mapa) { "chave": "descrição" }, não vazio. As chaves são as variáveis permitidas e precisam existir no HTML.

active não é aceito na criação (use PATCH para ativar/desativar).

Sucesso: 201 { "message": "Template created successfully", "data": { "template_id" } }.

Erros: 400 "Invalid allowed_variables" / nome obrigatório, 403 (token de usuário), 400/409 limite de 10 templates ativos.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
Response

Language
Credentials
http
LoadingLoading…
Response
Click Try It! to start a request and see the response here!