REST API and MCP Tools
FormGlut Pro adds a REST API for forms and entries, and MCP tools for AI assistants through the WordPress Abilities API.
Authentication
The API uses WordPress’s own authentication: cookies with a nonce (for code running in the admin), or Application Passwords (Users › Profile › Application Passwords) for outside apps.
Every route checks the same FormGlut permissions as the admin screens, including the role manager and per-form entry access. See Roles and Access.
Base URL
https://example.com/wp-json/formglut-pro/v1
Routes
| Method and route | What it does | Permission |
|---|---|---|
GET /forms | List forms: id, title, status, created date. | Create and edit forms, or view entries |
GET /forms/{id} | One form with its fields (id, type, label, required, options). | Create and edit forms, or view entries |
GET /entries | Entries of a form. | View entries |
POST /entries | Add an entry. | Edit, delete and change entries |
GET /entries/{id} | One entry. | View entries |
PATCH /entries/{id} | Change an entry’s status or starred. | Edit, delete and change entries |
GET /entries parameters
| Parameter | What it does |
|---|---|
form_id | Required. The form. |
status | unread, read, spam, trash or a Pro status. Spam and trash are left out by default. |
search | Search text. |
per_page | 1–100. Default 20. |
page | Page number. |
POST /entries body
{
"form_id": 3,
"fields": { "f1a2b3": "Jane Doe", "f4c5d6": "jane@example.com" },
"notify": true
}
Required fields and email addresses are checked. With "notify": true, the notifications and integrations run as for a normal submission.
Example
curl -u "admin:abcd efgh ijkl mnop qrst uvwx" \
"https://example.com/wp-json/formglut-pro/v1/entries?form_id=3&per_page=5"
MCP tools (Abilities API)
On WordPress versions with the Abilities API, FormGlut Pro registers these abilities, which MCP clients and AI assistants can call:
| Ability | What it does |
|---|---|
formglut/list-forms | All forms with their IDs and status. |
formglut/get-entries | Entries of a form (newest first), optionally filtered by status or a search text. |
formglut/submit-entry | Save an entry for a form. fields maps field IDs to values. |
formglut/form-summary | Counts per answer for the choice fields of a form, and the number of entries. |
They use the same permissions as the REST API.
Webhooks for automation apps
For Zapier, Make and n8n subscriptions, see Webhooks, Zapier, Make and n8n.
