---
title: "Submit Score Json"
method: POST
path: "/public/widgets/nps"
tags: ["widgets-public"]
---

# Submit Score Json

`POST /public/widgets/nps`

## Request

- Base URL: `https://api.feedback1.ai/api/v1`
- URL: `https://api.feedback1.ai/api/v1/public/widgets/nps`
- Auth: none declared

Submit an NPS, CSAT, or CES score via widget (JSON body).

## Request body

- WidgetScoreSubmission: Submit NPS, CSAT, or CES score via widget. Score range is validated against score_type (or the widget type) in the public submit handler: nps 0-10, csat 1-10, ces 1-5.
  - `product_pub_id` string, required
  - `widget_pub_id` string, required
  - `score` integer, required
  - `score_type` 'nps' | 'csat' | 'ces', nullable
  - `feedback` string, nullable
  - `feedback_text` string, nullable
  - `campaign_slug` string, nullable
  - `email` string, nullable
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `company_name` string, nullable
  - `token` string, nullable
  - `turnstile_token` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/feedback1/apis/feedback1-public-api.md) · [All operations](https://skmtc.dev/feedback1/apis/feedback1-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/feedback1/apis/feedback1-public-api/revisions/e7626420f622?raw)
