post
https://production-api.shoutaboutus.com/api/v1/campaign/direct-to-company-email
Record an internal customer_comment tied to an Email or SMS review request (looked up by unique_code) and emails the resolved recipients (store owner and/or configured manager/other-manager addresses, based on direct_to_option) using the DIRECT_TO_COMPANY template. Customer-facing feedback path.
Auth
- Public — no bearer token (route sits in the unauthenticated
campaigngroup; The endpoint marks the itemnoauth). Reached by end customers via the review-request link. Theunique_codeis the only identifier that scopes the write to a store.
Rate limit
- 30 requests/min per IP (public).
Body
| Field | Type | Required | Notes |
|---|---|---|---|
unique_code | string | Required | max 50. Email or SMS request unique code; resolves the target store. |
direct_to_option | string | Required | one of owner, manager, customer. Picks the recipient set. |
email | string | Required | email:rfc,dns, max 100. Customer's email. |
first_name | string | Required | max 100. |
last_name | string | Required | max 100. |
phone | string | Required | min 7, max 20. |
comments | string | Required | max 255. |
g_recaptcha_response | string | Required | Google reCAPTCHA token; verified server-side via siteverify. |
Behaviour
- 200
{ status: "success", message }(".sent directly to the {owner|manager|customer}."). - 400 (
badRequestResponse) "Email or SMS request not found" whenunique_coderesolves to neither an email nor an SMS request. - 500 (
errorResponse) "Mail not sent! {Option} Email is not available" when no recipient address can be resolved, or "Failed to add customer comment" on save failure. - 422 on validation failure (including an invalid reCAPTCHA token).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
