Managing Template Libraries and Presets · WABPO Developer Documentation
Managing Template Libraries and Presets
Access pre-built template libraries or build your own custom business presets. These presets serve as local drafts that can be modified, customized, and seamlessly dispatched to Meta for official verification.
Preset Templates Library
Use these endpoints to pull and filter pre-configured WhatsApp template layouts (presets) directly into your CRM or application interface.
Instead of building templates from scratch, your application can fetch these ready-made configurations, allow the user to modify fields (like the template name, body text, or buttons), and then save them using the template draft API.
UI Implementation Workflow
Initial Page Load: Call GET /templates/presets without parameters to fetch all available presets and populate your initial UI layout.
Render Dynamic Filters: Loop through the data.filters
object in the response to build your interface dropdowns or selection chips (Categories, Template Types, Button Modes, and Tags).
Handle Filter Changes: When a user selects or updates a filter, call GET /templates/presets again with the active query parameters to retrieve the updated, filtered list of presets.
Select & Customize: When a user clicks a preset, populate your custom template editor with the pre-filled template JSON schema.
1. List Presets with Available Filters
Retrieves a list of available template blueprints along with the global filter states to populate your application's UI elements.
Presets act strictly as starter JSON. Once your user edits the template fields within your CRM interface, map their changes into the payload for the core POST /api/v1/public/templates endpoint to log it as a formal local draft or submit it to Meta.