POST
/
webhook
/
event
/
send
cURL
curl --request POST \
  --url https://webhook.sit.onedigilta.in/webhook/event/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contact": {
    "name": "John Doe",
    "email": "john@example.com",
    "whatsapp_number": "+1234567890"
  },
  "event": {
    "code": "ABUNDANT_CART",
    "name": "on adondant cart",
    "data": {
      "cart_id": "123456",
      "cart_products": [
        {
          "product_id": "prod_001",
          "product_name": "Wireless Mouse",
          "quantity": 1,
          "price": 25.99
        },
        {
          "product_id": "prod_002",
          "product_name": "USB-C Hub",
          "quantity": 1,
          "price": 45
        }
      ]
    }
  }
}
'
{
    "success":true, 
    "id":"f208364f-0fb2-4518-a55d-7270b557bfe4"
}

Send event

Use this endpoint to create a new event

Response fields

PropertyDescription
400Bad request
401Request authentication
403Too many bad requests. Temparory block
406Missing accept header. For example : Accept: application/json
429Too many requests/ Rate limit exceeded
500Internal server error
{
    "success":true, 
    "id":"f208364f-0fb2-4518-a55d-7270b557bfe4"
}

Authorizations

Authorization
string
header
required

Use your API key with the 'Bearer ' prefix

Body

application/json
contact
object
event
object

Response

Event sent successfully.