POST
/
webhook
/
event
/
send
cURL
curl --request POST \
  --url https://webhook.cocoonmail.com/webhook/event/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event_name": "<string>",
  "email": "jsmith@example.com",
  "event_attribute": "<string>"
}'
{
    "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

Response

201

Event sent successfully.