Support Log in

7. Templates API

Developer Guide
Prefer video? Watch the Fillin Forge tutorials 9 short guides covering every feature Watch

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=contact
Response (200):
json
[
  {
    "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/categories
Response (200):
json
[
  {"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}
]

—

Forge AI Assistant Online

Hi! I'm the Fillin Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs