> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Record csat

> CSAT recorded; a low score also files a golden eval case when possible.

### Path parameters

<ParamField path="brand_id" type="string (uuid)" required />

<ParamField path="ticket_id" type="string (string)" required />

### Request body

`object`

<ParamField body="score" type="integer" required />

<ParamField body="comment" type="string" />

### Response

`object`

<ResponseField name="recorded" type="boolean" required />

<ResponseField name="low_score" type="boolean" required />

<ResponseField name="eval_case_recorded" type="boolean" required />

### Status codes

| Code  | Meaning                                                                 |
| ----- | ----------------------------------------------------------------------- |
| `200` | CSAT recorded; a low score also files a golden eval case when possible. |
| `400` | Validation error                                                        |
| `401` | Unauthorized                                                            |
| `404` | Not found                                                               |
| `429` | Rate limited                                                            |
| `500` | Internal error                                                          |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.workstream.stateset.com/v1/brands/{brand_id}/tickets/{ticket_id}/csat' \
    --header "x-api-key: $STATESET_TEMPORAL_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "score": 8,
    "comment": "Two-person tent, green — replacement for damaged pole set."
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "recorded": true,
    "low_score": true,
    "eval_case_recorded": true
  }
  ```
</ResponseExample>
