Skip to main content
Content templates are server-rendered graphics — memes, quote cards, before/after comparisons, announcements, testimonials, and reaction images — that you fill in with your own text, colors, and images. Rendered images land in your media library automatically, ready to attach to a post.

Available categories

templates:list

Browse available templates, optionally filtered by category.
Examples

templates:get

Fetch a template by ID, including its fields[] schema — use this to see what inputs the template expects (labels, types, required, maxLength, defaultValue, etc.) before rendering.
Examples

templates:render

Render a template with your own field values. The output is an image uploaded to your media library; the response contains the imageUrl and the new fileId you can pass to posts:create.
Exactly one of --data or --file is required. If neither is supplied the command exits with an error; the JSON must parse to an object whose keys are the template’s field ids.
Examples
Required-field validation happens server-side. Call templates:get <id> first to see exactly which fields are required and their maxLength constraints — the render will 400 if any required field is missing.
Content templates are different from saved inbox replies (short text snippets for replying to DMs/comments). For those, use inbox:saved-replies / inbox:create-reply.They are also different from WhatsApp message templates (pre-approved outbound templates required by Meta for WhatsApp Business), documented at WhatsApp Templates.