Skip to content

call.sentiment_changed

POST

Live: during a call, the customer’s sentiment fell to the negative threshold (direction: negative) or recovered from it (recovered). The call’s sentiment is the mean of its last three customer lines; one event per crossing, so a call that stays negative sends one event, not one per line.

webhook-id
required
string

The event ID (evt_…); the same on every retry. Deduplicate on it.

Example
evt_3fT9kq2ZpLr8YwVbN1cX0a
webhook-timestamp
required
string

Unix seconds of this delivery attempt. Reject deliveries more than 5 minutes old.

Example
1762161262
webhook-signature
required
string

Space-separated v1,<base64 HMAC-SHA256> signatures of <webhook-id>.<webhook-timestamp>.<body> with the endpoint secret (two while a secret rotates).

Example
v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
Media typeapplication/json

Live: during a call, the customer’s sentiment fell to the negative threshold (direction: negative) or recovered from it (recovered). The call’s sentiment is the mean of its last three customer lines; one event per crossing, so a call that stays negative sends one event, not one per line.

object
api_version
required

The API version the payload is rendered in (the endpoint’s pinned version).

string
created
required

An ISO-8601 timestamp in UTC.

string format: date-time
data
required

object is the object the call.sentiment_changed event is about.

object
object
required
object
call_id
string
>= 1 characters /^call_[0-9A-Za-z]+$/
direction
string
Allowed values: negative recovered
line_id

The same line’s stable line_id, when the line carries one.

string
previous_score
Any of:
number
>= -1 <= 1
rolling_score

The call’s sentiment after that line (-1..1).

number
>= -1 <= 1
sentiment

That line’s own sentiment.

object
label
required

negative, neutral or positive: the scale of the call summary’s sentiment (a single line is never mixed).

string
Allowed values: negative neutral positive
score
required

-1 (very negative) to 1 (very positive); 0 when the line carries no sentiment cue.

number
>= -1 <= 1
threshold

The negative threshold the call crossed (-1..1).

number
>= -1 <= 1
utterance_id

The customer line that crossed (utterance_id of the transcript line).

string
key
additional properties
previous_attributes

For *.updated-style events: the changed attributes’ previous values.

object
key
additional properties
id
required

The event ID. Receivers deduplicate on it (it is also the webhook-id header).

string
/^evt_[0-9A-Za-z]+$/
livemode
required

true in live mode, false in test mode.

boolean
object
required
string
Allowed value: event
org_id
required

The organisation the event belongs to.

string
/^org_[0-9A-Za-z]+$/
request
object
id
required
Any of:

The API request that caused the event (its X-Request-Id), if any.

string
/^req_[0-9A-Za-z]+$/
idempotency_key
required

That request’s Idempotency-Key, if any.

string | null
type
required
string
Allowed value: call.sentiment_changed
Example
{
"api_version": "2026-11-01",
"created": "2026-11-03T09:14:22.000Z",
"data": {
"object": {
"call_id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
"direction": "negative",
"previous_score": -0.1,
"rolling_score": -0.45,
"sentiment": {
"label": "negative",
"score": -0.7
},
"threshold": -0.4,
"utterance_id": "u4"
}
},
"id": "evt_3fT9kq2ZpLr8YwVbN1cX0a",
"livemode": true,
"object": "event",
"org_id": "org_0000000000000000000001",
"request": {
"id": null,
"idempotency_key": null
},
"type": "call.sentiment_changed"
}

Acknowledge the event with any 2xx status within 15 seconds. Anything else, or a timeout, is retried for up to 72 hours.