/services/websites/v1/themes/templates/library
Auth
GET /api/v1/templates/library Returns theme templates for the Plus button modal in page builder. Shows templates from installed themes (grouped by theme). Infrastructure templates are now loaded from /templates/all endpoint. Decision 14: Template Library Integration
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
filter_theme_id |
integer|null | No | Filter templates to only show those from a specific installed theme | |
search |
string|null
max: 255 |
No | Search templates by title (case-insensitive partial match) | |
template_type |
string|null
all, custom_template, reusable_template, header_template, footer_template |
No | Filter by template type (default: all) |
{
"error": false,
"message": "string",
"data": {
"templates": {
"theme_templates": [],
"installed_themes": []
},
"stats": {
"total_theme": 0,
"total_sections": 0,
"total": 0,
"installed_themes_count": 0
},
"filters": {
"active_theme_filter": "string",
"active_search": "string",
"active_type_filter": "string"
}
}
}