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": "simple_contact",
"title": "Simple Contact Form",
"description": "Basic contact form with name, email, and message.",
"icon": "email",
"category": "contact",
"field_count": 4
},
{
"key": "feedback_survey",
"title": "Feedback Survey",
"description": "Customer feedback form with rating and comments.",
"icon": "star-filled",
"category": "feedback",
"field_count": 6
}
]GET /formforge/v1/templates/categories
List all template categories with counts.
bash
curl -s https://example.com/wp-json/formforge/v1/templates/categoriesjson
[
{"slug": "contact", "label": "Contact", "icon": "email", "count": 12},
{"slug": "feedback", "label": "Feedback & Reviews", "icon": "star-filled", "count": 8},
{"slug": "registration", "label": "Registration & Signup", "icon": "admin-users", "count": 10},
{"slug": "order", "label": "Orders & Payments", "icon": "cart", "count": 6},
{"slug": "booking", "label": "Booking & Appointments", "icon": "calendar-alt", "count": 5},
{"slug": "survey", "label": "Surveys & Polls", "icon": "forms", "count": 7}
]—