Send EventsPOST /push/hardal

Send an Event

Send events to Hardal using the Events API.

curl -X POST "https://demo-signal.usehardal.com/push/hardal" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "event",
  "payload": {
    "website": "demo",
    "name": "page_view",
    "url": "https://yourstore.com/products",
    "title": "Products",
    "device_type": "desktop",
    "language": "en-US",
    "platform": "web",
    "data": {}
  }
}'
{
  "ok": true
}
POST
/push/hardal
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
typestring
Required

Request type. Use event for tracking events, identify for user identification.

Options: event, identify
Request Preview
Response

Response will appear here after sending the request

Body

application/json
typestring
Required

Request type. Use event for tracking events, identify for user identification.

Allowed values:eventidentify
payloadobject
Required

Responses

okboolean