/nps/submitSubmit an NPS response
Submit a Net Promoter Score (0-10) plus an optional verbatim comment. The server atomically writes a Rating, an optional Feedback (when a comment was provided), and an NpsResponse sidecar linking them. Authentication is by `project_key` + origin allow-list, the same pattern as `/feedback/submit` and `/rating/submit`.
https://seggwat.com/api/v1Parameters
Refererheaderstring (uri-reference)Optional HTTP Referer header indicating the page URL where the submission originated
https://example.com/dashboardRequest Body
NPS submission payload.
application/jsonPayload for `POST /nps/submit`.
commentstringnullableOptional free-text follow-up. Empty / whitespace-only values are treated as absent and skip creating a Feedback row.
Great onboarding, minor nits on billing copy.localestringnullableLocale the user saw when answering.
enpathstringnullablePath on which the response was collected.
/dashboardproject_keystring (uuid)required(uuid)Project key from the dashboard.
550e8400-e29b-41d4-a716-446655440000scoreintegerrequired0-10 recommendation-likelihood rating.
9submitted_bystringnullableOpaque user identifier from your system (no PII).
user_12345versionstringnullableApp version the responder saw.
1.2.3