This event is fired when the status of an SLA linked to a thread changes.

Schema

View JSON Schema →

Example:

{
  "timestamp": "2023-10-19T21:24:36.108Z",
  "workspaceId": "w_01GST0W989ZNAW53X6XYHAY87P",
  "payload": {
    "eventType": "thread.service_level_agreement_status_transitioned",
    "serviceLevelAgreement": {
      "id": "sla_01HD4X6WMCJSD8EHWDRHZ8WYDT",
      "type": "FIRST_RESPONSE_TIME",
      "tier": {
        "id": "tier_01HD4X6WMCJSD8EHWDRHZ8WYDT",
        "name": "Enterprise",
        "externalId": null,
        "color": "#FF0000",
        "defaultThreadPriority": 0,
        "isDefault": false
      },
      "firstResponseTimeMinutes": 60,
      "useBusinessHoursOnly": true,
      "threadPriorityFilter": [0, 1, 2, 3]
    },
    "serviceLevelAgreementStatusDetail": {
      "status": "BREACHED",
      "breachedAt": "2023-10-19T21:18:12.863Z"
    },
    "previousServiceLevelAgreementStatusDetail": {
      "status": "IMMINENT_BREACH",
      "breachTime": "2023-10-19T21:18:12.863Z"
    },
    "thread": {
      "id": "th_01HD44FHMCDSSWE38N14FSYV6K",
      "customer": {
        "id": "c_01HD44FHDPG82VQ4QNHDR4N2T0",
        "email": {
          "email": "peter@example.com",
          "isVerified": false,
          "verifiedAt": null
        },
        "externalId": null,
        "fullName": "Peter Santos",
        "shortName": "Peter",
        "assignedAt": null,
        "assignedToUser": null,
        "status": "ACTIVE",
        "statusChangedAt": "2023-10-19T21:18:12.863Z",
        "markedAsSpamAt": null,
        "markedAsSpamBy": null,
        "customerGroupMemberships": [],
        "createdAt": "2023-10-19T14:12:25.142Z",
        "createdBy": {
          "actorType": "system",
          "system": "email_inbound_handler"
        },
        "updatedAt": "2023-10-19T21:18:12.863Z",
        "updatedBy": {
          "actorType": "user",
          "userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA"
        }
      },
      "title": "Unable to tail logs",
      "previewText": "Hey, I am currently unable to tail the logs of the service svc-8af1e3",
      "priority": 1,
      "externalId": null,
      "status": "DONE",
      "statusChangedAt": "2023-10-19T21:24:36.108Z",
      "statusChangedBy": {
        "actorType": "user",
        "userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA"
      },
      "statusDetail": null,
      "assignee": null,
      "assignedAt": null,
      "labels": [],
      "firstInboundMessageInfo": {
        "timestamp": "2023-10-19T14:12:25.733Z",
        "messageSource": "EMAIL"
      },
      "firstOutboundMessageInfo": null,
      "lastInboundMessageInfo": {
        "timestamp": "2023-10-19T14:12:25.733Z",
        "messageSource": "EMAIL"
      },
      "lastOutboundMessageInfo": null,
      "supportEmailAddresses": ["help@example.com"],
      "createdAt": "2023-10-19T14:12:25.266Z",
      "createdBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      },
      "updatedAt": "2023-10-19T21:24:36.108Z",
      "updatedBy": {
        "actorType": "user",
        "userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA"
      }
    }
  },
  "id": "pEv_01HD4X6WMCJSD8EHWDRHZ8WYDT",
  "webhookMetadata": {
    "webhookTargetId": "whTarget_01HD4400VTDJQ646V6RY37SR7K",
    "webhookDeliveryAttemptId": "whAttempt_01HD4XH9YE8CK6KT3G8VRX38R7",
    "webhookDeliveryAttemptNumber": 1,
    "webhookDeliveryAttemptTimestamp": "2023-10-19T21:30:17.422Z"
  },
  "type": "thread.thread_status_transitioned"
}