Skip to Content
Heels LogoHeelsDocs
API Reference

API Overview

Endpoints, authentication, and standard response formats for the Heels REST API.

API Overview

The Heels REST API provides developer-first endpoints for ingesting form submissions and programmatically managing integrations, channels, and delivery logs.


API Endpoints

The API is organized into two primary interfaces:

APIBase URLEnvironment VariableUsage
Event Ingestion APIhttps://publisher-heels.arshil.ccNEXT_PUBLIC_SERVICE_PUBLISHER_URLPublic ingestion for HTML forms, client events, and webhooks
Management APIhttps://api-heels.arshil.ccNEXT_PUBLIC_SERVICE_API_URLAuthenticated CRUD operations for integrations, channels, and logs

Authentication

Public Ingestion (/events/:integration_id)

Event ingestion endpoints do not require an Authorization header. Requests are authenticated and authorized by:

  • The Integration UUID in the route path (/events/:integration_id).
  • Allowed origin verification against your integration's whitelisted domains.

Management Endpoints (/integrations, /projects)

Administrative and dashboard endpoints require a standard Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Standard Response Format

All API responses return a structured JSON envelope:

Success

{
  "success": true,
  "data": {
    "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
    "name": "Production Contact Form"
  }
}

Queued Event

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

Error

{
  "success": false,
  "error": "Rate limit exceeded. Please wait before submitting again."
}

HTTP Status Codes

CodeStatusDescription
200OKRequest processed synchronously and succeeded.
201CreatedResource created successfully.
202AcceptedEvent was validated and accepted for delivery.
400Bad RequestInvalid request body syntax, payload exceeds 10MB, or missing parameters.
401UnauthorizedMissing or invalid authentication token.
403ForbiddenRequest origin not present in the integration's allowed origins list.
404Not FoundTarget integration or event not found.
429Too Many RequestsRate limit exceeded for the integration or client IP.
500Internal ErrorAn unexpected server error occurred.

On this page