REST: Result (3.x)
Overview
These routes are the submission part of the REST API that WebForms 3 had, kept unchanged in WebForms 4 for existing clients. New integrations should use the Management API: REST: Results searches, reads and edits submissions with revisions, masking and an audit trail.
| Route | What it does |
|---|---|
GET /V1/webforms/result/{id} | One submission with all its answers |
POST /V1/webforms/result/{id}/update | Replaces the answers of the fields you send and leaves the others alone |
Paths are relative to https://yourdomain.com/rest/all. Calls that pass Magento's permission check add an entry to the WebForms audit log (event legacy_route), also when the submission turns out to be outside the caller's form access.
GET /result/{id} returns personal answers in full only to a caller whose role holds Disclose Personal Data, and writes a Personal Data Read entry to the audit log when the response held a non-empty personal answer. Without it, each personal answer is replaced by the same stand-in the Management API sends (see Personal data masking) and the field carries masked: true. The submission's customer_ip reads [redacted] and customer_id is null; in submitted_from_serialized the page addresses keep only their origin and the page title reads [redacted]. Empty values stay empty. The value of a password field is never returned. A field counts as personal by the stricter of its class when the submission was sent and its class now, under its current type.
Authentication
Any Magento web API credentials whose role holds the route's permission: an integration signed with OAuth 1.0a, or an admin token. The permissions are under WebForms → API:
| Permission | Route |
|---|---|
| View Submissions (Masked) | GET /result/{id}; real answers only with Disclose Personal Data as well |
| Edit Submissions | POST /result/{id}/update |
Without credentials or without the permission, Magento answers 401. A caller limited to selected forms gets 404 for a submission of any other form, the same answer as for an id that does not exist.
Operations
| Method | Path | Operation | ACL resource |
|---|---|---|---|
| GET | /V1/webforms/result/{id} | ResultRepositoryInterface_getDataById | MageMe_WebForms::api_v1_results_view |
| POST | /V1/webforms/result/{id}/update | ResultUpdateInterface_updateById | MageMe_WebForms::api_v1_results_edit |
Reading a submission
The answer is a JSON array with one object:
| Member | Meaning |
|---|---|
result_id, form_id | Ids of the submission and its form |
store_id, customer_id, customer_ip | Where it came from and who sent it, when known |
approved | Approval state: 1 approved |
created_at, updated_at | Times in UTC, YYYY-MM-DD hh:mm:ss |
reference_number | The submission's reference number |
custom_status | The submission status, or null |
fields | One {field_id, code, value} entry per field of the form. A file field's value is the hash of the stored file. Answers to fields deleted from the form come last, with archived: true, label and display |
Some add-ons add their own members (for example productrequest_product_sku).
Changing answers
POST /V1/webforms/result/{id}/update takes a field object keyed by field id. Only the fields you send are written; every other answer stays as it is.
{"field": {"99193224": "The oak dining tables, the Fjord sofa in grey and the Linden bed."}}
On success the answer is {"success": true, "result_id": 1136014}. The whole request is refused when any field in it:
- does not exist, or belongs to another form;
- is a password field;
- is a file field: files cannot be changed through this route.
The field's validation rules apply as on the storefront.
Errors
Magento's own error shape: a message, with %1-style placeholders filled from parameters. There is no parameters.code.
| HTTP | When |
|---|---|
| 400 | No field object, or an empty one (The "field" object is required and must contain at least one field.); a field refused as listed above, or a value that fails validation. The messages are joined in message |
| 401 | No credentials, or the caller lacks the route's permission |
| 404 | No submission with this id, or a submission of a form outside the caller's form access (Unable to find result with ID "%1") |
Examples
Ids come back as strings in some members and as numbers in others ("result_id": "1136014" on the read, "result_id": 1136014 on the update). Accept both.
Read a submission:
curl https://yourdomain.com/rest/all/V1/webforms/result/1136014 \
-H "Authorization: Bearer <admin-token>"
[{"result_id": "1136014", "form_id": 995656, "store_id": null, "customer_id": null, "customer_ip": "", "approved": 1,
"created_at": "2026-10-05 21:09:28", "updated_at": "2026-10-05 21:09:28", "reference_number": "WF-2026-006978", "custom_status": null,
"fields": [
{"field_id": "99193222", "code": "visitor_name", "value": "Lena Hartmann"},
{"field_id": "99193223", "code": "email", "value": "lena.hartmann@example.com"},
{"field_id": "99193224", "code": "message", "value": "The oak dining tables and the Fjord sofa in grey."},
{"field_id": "99193225", "code": "floor_plan", "value": "<file hash>"},
{"field_id": "99193226", "code": "submit", "value": null}
]}]
Change one answer:
curl -X POST https://yourdomain.com/rest/all/V1/webforms/result/1136014/update \
-H "Authorization: Bearer <admin-token>" \
-H "Content-Type: application/json" \
-d '{"field": {"99193224": "The oak dining tables, the Fjord sofa in grey and the Linden bed."}}'
{"success": true, "result_id": 1136014}
Sending the file field instead:
{"message": "Field \"99193225\" is a file field; upload the file and submit it instead of updating it here."}