Conversations

Submit CSAT from webchat widget (tiered auth)

POST
/api/conversation/csat

Public endpoint used by the webchat widget to submit a CSAT rating for a conversation identified by webchatId. Auth is tiered - if no bearer token is present, the request is gated by the visitor session.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/conversation/csat" \  -H "Content-Type: application/json" \  -d '{    "webchatId": "67d3a0b0c0d0e0f0a0b0c0d0",    "rating": 5,    "feedback": "Great help!"  }'
{  "success": true,  "conversationId": "65d3e0f0a0b0c0d0e0f0a0b0",  "csatRating": 5,  "csatSubmittedAt": "2026-05-18T14:00:00.000Z"}