Contents

API reference

Satisfaction surveys

API reference descriptions are provided in English to preserve the exact published contract.

Read the survey decision for a conversation

GET /v1/accounts/{AC}/conversations/{CO}/csat-surveys

: every closed conversation under an enabled policy carries exactly one survey decision, made by the platform. The list holds that decision or nothing. Required scope: `conversations:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · stringyes
COpath · string (CO… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Create a survey for a closed conversation

POST /v1/accounts/{AC}/conversations/{CO}/csat-surveys

Required scope: `conversations:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · stringyes
COpath · string (CO… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Ask the platform to re-evaluate a refused survey

POST /v1/accounts/{AC}/conversations/{CO}/csat-surveys/re-evaluate

Only a CANCELED decision can be re-evaluated; the maintenance worker re-runs eligibility and either dispatches the survey or records the new refusal reason. Required scope: `conversations:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · stringyes
COpath · string (CO… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Link a dispatched survey to its message

POST /v1/accounts/{AC}/csat-surveys/{SV}/dispatched

Required scope: `inboxes:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · stringyes
SVpath · string (SV… SID)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
messageSidstring (SM… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Report customer satisfaction outcomes by inbox and agent

GET /v1/accounts/{AC}/csat/analytics

Required scope: `analytics:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Get customer satisfaction survey settings

GET /v1/accounts/{AC}/csat/settings

Required scope: `analytics:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Configure customer satisfaction surveys

PUT /v1/accounts/{AC}/csat/settings

Required scope: `inboxes:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (8 fields)
Request body
NameTypeRequiredDescription
contentSidstring (HX… SID)
enabledbooleanyes
maximumRatinginteger (1–10)yes
minimumRatinginteger (0–9)yes
requireServiceConsentbooleanyes
responseWindowDaysinteger (1–90)yes
retainDaysinteger (1–3650)yes
senderSidstring (WA… SID)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Read a public customer satisfaction survey

GET /v1/csat/{SV}

Parameters

Parameters
NameTypeRequiredDescription
tokenquery · string (max 256 chars)yes
SVpath · string (SV… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Submit a public customer satisfaction response

POST /v1/csat/{SV}/responses

Parameters

Parameters
NameTypeRequiredDescription
SVpath · string (SV… SID)yes
Request body (3 fields)
Request body
NameTypeRequiredDescription
commentstring (max 2000 chars)
ratinginteger (0–10)yes
tokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.