REST: Quick responses
Overview
GET /V1/webforms/quick-responses lists the store's quick responses: the saved reply texts kept in
Content → WebForms → Manage Quick Responses, see
Quick responses. The list is read-only through the API; quick
responses are added and changed in the admin.
The response holds items, total_count and search_criteria (always null): every quick response of the store,
with no paging. Each item:
| Member | Meaning |
|---|---|
id | Quick response id |
code | The id as a string |
title | The title shown in the admin's list |
message | The text as saved in the admin. A text written in the admin's editor arrives with its HTML, such as <p> |
Categories are not part of the response.
Replying with a quick response
The reply commands on REST: Results take the text itself, not a quick response
id. Put the message into body_text of prepare-reply and reply, after filling in anything personal on your
side. The reply is sent as plain text: HTML tags are removed, and the end of a paragraph or a line break becomes a
new line. prepare-reply answers with impact_json, a JSON string; its body member shows the text exactly as it will be
sent.
Authentication
OAuth 1.0a integration credentials, as described on REST API.
Reading quick responses needs results_view.
Operations
| Method | Path | Operation | ACL resource |
|---|---|---|---|
| GET | /V1/webforms/quick-responses | SubmissionInterface_quickResponses | MageMe_WebForms::api_v1_results_view |
Errors
This route has no errors of its own. The refusals every route shares are listed on REST API.
Examples
curl https://yourdomain.com/rest/all/V1/webforms/quick-responses \
-H "Authorization: <signed-header>"
<signed-header> stands for the OAuth 1.0a Authorization header computed for this request by your OAuth library.
The response, trimmed to two quick responses:
{
"items": [
{"id": 8, "code": "8", "title": "Lead time", "message": "Thank you for your interest. Made-to-order pieces currently ship within 8 to 10 weeks from confirmation."},
{"id": 10, "code": "10", "title": "Showroom hours", "message": "Our Bergen showroom is open Tuesday to Saturday, 10:00 to 18:00. Book a slot and a designer will be ready for you."}
],
"search_criteria": null,
"total_count": 2
}
Preview a reply built from a quick response whose text carries HTML:
curl -X POST https://yourdomain.com/rest/all/V1/webforms/results/1136017/commands/prepare-reply \
-H "Authorization: <signed-header>" -H "Content-Type: application/json" \
-d '{"request": {"request_id": "erp-prep-0002", "body_text": "<p>Hello Tomas,</p><p>Made-to-order pieces currently ship within 8 to 10 weeks from confirmation.</p>"}}'
{"confirmation_token": "<confirmation-token>", "expires_at": "2026-10-05T21:25:48Z", "impact_json": "{\"recipient\":\"t***@***\",\"body\":\"Hello Tomas,\\nMade-to-order pieces currently ship within 8 to 10 weeks from confirmation.\",\"result_revision\":1}", "requires_confirmation": true}
Nothing is sent until reply is called with that confirmation token; see
REST: Results.