Message templates
Create templates and inspect their real Meta review state.
Templates belong to the connected customer's authorized messaging resources. Template review and messaging eligibility are controlled by Meta.
Create
const template = await client.templates.create({
number_id: 'number_id',
name: 'order_ready', language: 'en', category: 'UTILITY',
components: [{ type: 'BODY', text: 'Your order is ready for collection.' }],
});Use an actual category appropriate to the content. A live creation request queues submission and records the real returned status; do not label a newly submitted template as approved. The simulator marks templates as simulated.
Read and use
List templates for the selected project or number. Once a template is eligible for use, send its name, language and required components through the message API. Match parameters to the template definition and preserve a stable idempotency key.
Review failures
Inspect rejection details, correct the template and follow the supported management workflow. A local text change does not change the corresponding Meta resource unless submitted through the backend. Current review limitations should remain visible in the interface.