Public endpoints for browsing the 168 built-in form templates.
GET /formforge/v1/templates
List available form templates. Use the optional category query parameter to filter.
bash
# List all templates
curl -s https://example.com/wp-json/formforge/v1/templates
# Filter by category
curl -s https://example.com/wp-json/formforge/v1/templates?category=contactjson
[
{
"key": "contact",
"title": "Basic Contact",
"description": "Simple contact form with name, email, and message",
"icon": "email",
"category": "contact",
"field_count": 4
},
{
"key": "feedback",
"title": "Customer Feedback",
"description": "Collect customer feedback with rating",
"icon": "star-filled",
"category": "feedback",
"field_count": 5
}
]GET /formforge/v1/templates/categories
List all template categories with counts. There are 27, in the order the templates are loaded; the example shows the first four.
bash
curl -s https://example.com/wp-json/formforge/v1/templates/categoriesjson
[
{"slug": "contact", "label": "Contact", "icon": "email", "count": 8},
{"slug": "feedback", "label": "Feedback & Reviews", "icon": "star-filled", "count": 8},
{"slug": "registration", "label": "Registration & Signup", "icon": "admin-users", "count": 8},
{"slug": "survey", "label": "Surveys & Research", "icon": "forms", "count": 10}
]—