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 campaign group; The endpoint marks the item noauth). Reached by end customers via the review-request link. The unique_code is the only identifier that scopes the write to a store.

Rate limit

  • 30 requests/min per IP (public).

Body

FieldTypeRequiredNotes
unique_codestringRequiredmax 50. Email or SMS request unique code; resolves the target store.
direct_to_optionstringRequiredone of owner, manager, customer. Picks the recipient set.
emailstringRequiredemail:rfc,dns, max 100. Customer's email.
first_namestringRequiredmax 100.
last_namestringRequiredmax 100.
phonestringRequiredmin 7, max 20.
commentsstringRequiredmax 255.
g_recaptcha_responsestringRequiredGoogle 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" when unique_code resolves 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
string
string
string
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json