Skip to Content
Heels LogoHeelsDocs
API Reference

Events API

Ingest incoming submissions, trigger test events, and inspect real-time delivery status.

Events API

The Events API enables applications and forms to submit events for real-time validation and multi-channel delivery.


Ingest Event

POST /events/:integration_id

Accepts an incoming event for processing and delivery to all configured notification channels.

Path Parameters

ParameterTypeRequiredDescription
integration_idUUIDYesThe UUID of the destination integration.

Request Headers

HeaderTypeRequiredDescription
Content-TypestringYesapplication/json or application/x-www-form-urlencoded
x-test-eventbooleanNoSet to true or 1 to record the event without notifying live channels.
OriginstringNoOrigin domain of the submitting client (validated against whitelist).
User-AgentstringNoClient identifier captured for audit telemetry.

Request Body (JSON)

You may send arbitrary key-value pairs. Standard convention:

{
  "name": "Alex Mercer",
  "email": "[email protected]",
  "subject": "Inquiry regarding heels enterprise",
  "message": "We would like to connect Heels with our internal webhook.",
  "_redirect": "https://company.com/thank-you"
}

Response

JSON Client (Accept: application/json or standard API call):

Status: 202 Accepted

{
  "success": true,
  "message": "Event queued successfully",
  "eventId": "e9b28a4c-1d38-46fb-a0f1-4604a11b6582",
  "status": "pending"
}

Browser Form Navigation (with _redirect or _next):

Status: 303 See Other Location: https://company.com/thank-you


Code Examples

curl -X POST "https://publisher-heels.arshil.cc/events/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
  -H "Content-Type: application/json" \
  -H "Origin: https://mywebsite.com" \
  -d '{
    "name": "Sarah Connor",
    "email": "[email protected]",
    "message": "System test event"
  }'

Test Mode (x-test-event)

During development, you may want to test your form integration, check that fields map properly, and view them in the dashboard without spamming your company Telegram channel or sending real emails.

Add the header:

x-test-event: true

The event will be stored with tag is_test: true and will appear in the dashboard Event Log with a distinct TEST badge, but will bypass real channel dispatching.

On this page