Client Created

Notifying when a new client is created

The event is triggered when a new client (or a lead), for a business account, is created

Webhook authorization: using a business or a directory token.

Subscribing to the Lead Created webhook:

ccurl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "client/created",
"target_url": "URL"
}'

Client Created Payload Example:

{
  "entity_name": "client",
  "event_type": "updated",
  "data": {
    "business_id": "s5ek7tfgp068i2st",
    "client_id": "k7zcc3nhb1aijzms",
    "first_name": "New",
    "last_name": "Client",
    "phone": "05544778899",
    "email": "[email protected]",
    "image": "http://www.meet2know.com/assets/img-avatar.gif",
    "address": {
      "main": "New York"
    },
    "custom_fields": {
      "Birthday": "1985-10-15"
    },
    "visible": true,
    "opt_in": null,
    "created_at": "2019-10-29T07:29:30Z",
    "updated_at": "2023-04-24T18:28:10.000+03:00",
    "spam": false
  }
  "custom_fields_status": "Potential client"
}