Staff Created

Notifying when a new staff member is created

The event is triggered when a new staff member is created. This trigger includes the creation of the first staff member, the business owner, created during the business creation.

Webhook authorization: using a business or directory token.

Subscribing to the Staff Created webhook:

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

Staff Created Payload Example:

  "entity_name": "staff",
  "event_type": "created",
  "data": {
    "business_id": "9i87qbjv6kec4kua",
    "staff_id": "h8hfrzuiac4e2uad",
    "first_name": "new",
    "last_name": "staff",
    "display_name": "New Staff",
    "phone": 1234567890,
    "email": "[email protected]",
    "role": "user",
    "created_at": "2021-08-15T14:56:41.000+03:00"