Templates
Criar template da biblioteca
Changed onCria um template a partir de um item da biblioteca da Meta. Nasce aprovado, sem esperar revisão. Exige número conectado (422 GUPSHUP_APP_NOT_READY). Permissão: TEMPLATES_WRITE.
post/v1/templates/library
Request
- Base URLhttps://api.ararahq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Template criado
Example response
{
"id": "a7f3c1e2-4b5d-6789-abcd-ef0123456789",
"name": "pedido_confirmado",
"formattedName": "pedido_confirmado",
"category": "UTILITY",
"originalCategory": "UTILITY",
"language": "pt_BR",
"providerName": "GUPSHUP",
"providerTemplateId": "4c1f0e9a-2b3d-4e5f-8a6b-7c8d9e0f1a2b",
"providerStatus": "PENDING",
"rejectionReason": null,
"availableForSending": true,
"unavailableReason": null,
"bodyPreview": "Oi {{1}}, seu pedido {{2}} foi confirmado. Total: R$ {{3}}.",
"structureJson": {},
"usageGuide": {
"message": "Use o objeto 'variables' no envio da mensagem para substituir os placeholders.",
"endpoint": "POST /v1/messages"
},
"variablesSchema": {
"1": "João",
"2": "12345",
"3": "147,90"
},
"createdAt": "2026-09-15T14:30:00Z",
"updatedAt": null
}Changes
- info
api tag
Templatesadded - info
api tag
templatesremoved - info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
endpoint added
- info