Confirm Unsubscribe Based On Analysis
GraphQL endpoint: /company
Once you receive a sentiment analysis result via webhook, you can provide feedback on the suggested action you want to take using the feedbackOnDetectedUnsubscribe mutation. You can either confirm the unsubscribe via action: "UNSUBSCRIBE" or reject the result and keep the subscription by passing action: "DONT_UNSUBSCRIBE".
The webhook result that was mentioned will contain a payload like this:
{
"external_communication_id": "00000000-0000-4000-8000-000000000001",
"timestamp": "2026-01-15T09:00:00.000000",
"action": "unsubscribe"
}Query
mutation (
$externalCommunicationId: String!
$action: UnsubscribeType!
) {
feedbackOnDetectedUnsubscribe (
externalCommunicationId: $externalCommunicationId
action: $action
) {
status
}
}
Variables
Response
Last updated