Produktly docs
Nps widgetsWidgetidScore

Get NPS score breakdown

GET
/nps-widgets/{widgetId}/score

Authorization

BearerAuth
AuthorizationBearer <token>

Use an API key from the Produktly dashboard → Settings → API keys.

In: header

Path Parameters

widgetId*integer
Range0 < value

Query Parameters

startDate?string
endDate?string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/nps-widgets/1/score"
{  "npsScore": 0,  "totalResponses": 0,  "promoters": {    "count": 0,    "percentage": 0  },  "passives": {    "count": 0,    "percentage": 0  },  "detractors": {    "count": 0,    "percentage": 0  }}