This event is fired when a new thread is created in your workspace.

You can subscribe to this event if you want to build an autoresponder.

Schema

View JSON Schema →

Example:

{
  "timestamp": "2023-10-19T14:12:25.266Z",
  "workspaceId": "w_01GST0W989ZNAW53X6XYHAY87P",
  "payload": {
    "eventType": "thread.thread_created",
    "thread": {
      "id": "th_01HD44FHMCDSSWE38N14FSYV6K",
      "customer": {
        "id": "c_01HD44FHDPG82VQ4QNHDR4N2T0",
        "email": {
          "email": "peter@example.com",
          "isVerified": false,
          "verifiedAt": null
        },
        "externalId": null,
        "fullName": "Peter Santos",
        "shortName": "Peter",
        "markedAsSpamAt": null,
        "markedAsSpamBy": null,
        "customerGroupMemberships": [],
        "createdAt": "2023-10-04T14:17:41.991Z",
        "createdBy": {
          "actorType": "system",
          "system": "email_inbound_handler"
        },
        "updatedAt": "2023-10-04T14:17:41.991Z",
        "updatedBy": {
          "actorType": "system",
          "system": "email_inbound_handler"
        }
      },
      "title": "Unable to tail logs",
      "previewText": "Hey, I am currently unable to tail the logs of the service svc-8af1e3",
      "priority": 2,
      "externalId": null,
      "status": "TODO",
      "statusChangedAt": "2023-10-19T14:12:25.266Z",
      "statusChangedBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      },
      "statusDetail": {
        "type": "CREATED",
        "createdAt": "2023-10-19T14:12:25.266Z"
      },
      "assignee": null,
      "assignedAt": null,
      "labels": [],
      "firstInboundMessageInfo": null,
      "firstOutboundMessageInfo": null,
      "lastInboundMessageInfo": null,
      "lastOutboundMessageInfo": null,
      "supportEmailAddresses": ["help@example.com"],
      "createdAt": "2023-10-19T14:12:25.266Z",
      "createdBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      },
      "updatedAt": "2023-10-19T14:12:25.266Z",
      "updatedBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      }
    }
  },
  "id": "pEv_01HD44FHHJ0YABSNGKWMG3CJ5J",
  "webhookMetadata": {
    "webhookTargetId": "whTarget_01HD4400VTDJQ646V6RY37SR7K",
    "webhookDeliveryAttemptId": "whAttempt_01HD44FJASQM23MNHYDYPAXEG8",
    "webhookDeliveryAttemptNumber": 1,
    "webhookDeliveryAttemptTimestamp": "2023-10-19T14:12:26.073Z"
  },
  "type": "thread.thread_created"
}