v4

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-2172104104.0 KB
templates

Cria e submete um template à Twilio/Meta para aprovação

Requer conta ACTIVE (live mode). Plano FREE limitado a 3 templates. Submete pra Twilio; status inicial fica PENDING. Use /v1/templates/{id}/status pra checar aprovação.

post/v1/templates

Request body

namestring required
category'MARKETING' | 'UTILITY' | 'AUTHENTICATION' required
bodystring required
languagestring
headerstring nullable
headerType'text' | 'media' | 'document' nullable
footerstring nullable
samplesobject nullable
variableExamplesstring[] nullable
otpButtonType'COPY_CODE' | 'ONE_TAP' nullable
otpPackageNamestring nullable
otpAppSignaturestring nullable

Response

Template criado e submetido

idstring uuid required
namestring required
formattedNamestring required
categorystring required
originalCategorystring nullable
languagestring required
providerNamestring required
providerTemplateIdstring required
providerStatusstring required
rejectionReasonstring nullable
bodyPreviewstring nullable
structureJsonobject required
usageGuideobject nullable
variablesSchemaobject nullable
createdAtstring date-time required
updatedAtstring date-time nullable

Example response

{
  "providerStatus": "APPROVED"
}