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

Schema

View JSON Schema →

Example:

{
  "timestamp": "2023-10-19T14:12:25.142Z",
  "workspaceId": "w_01GST0W989ZNAW53X6XYHAY87P",
  "payload": {
    "eventType": "customer.customer_created",
    "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"
      }
    }
  },
  "id": "pEv_01HD44FHDPMZ3YJB5GEB1EZKQV",
  "webhookMetadata": {
    "webhookTargetId": "whTarget_01HD4400VTDJQ646V6RY37SR7K",
    "webhookTargetVersion": "2024-09-18",
    "webhookDeliveryAttemptId": "whAttempt_01HD44FJ45FJKVFHM3MDVYPGRS",
    "webhookDeliveryAttemptNumber": 1,
    "webhookDeliveryAttemptTimestamp": "2023-10-19T14:12:25.861Z"
  },
  "type": "customer.customer_created"
}