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:
| API | Base URL | Environment Variable | Usage |
|---|---|---|---|
| Event Ingestion API | https://publisher-heels.arshil.cc | NEXT_PUBLIC_SERVICE_PUBLISHER_URL | Public ingestion for HTML forms, client events, and webhooks |
| Management API | https://api-heels.arshil.cc | NEXT_PUBLIC_SERVICE_API_URL | Authenticated 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_TOKENStandard 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
| Code | Status | Description |
|---|---|---|
200 | OK | Request processed synchronously and succeeded. |
201 | Created | Resource created successfully. |
202 | Accepted | Event was validated and accepted for delivery. |
400 | Bad Request | Invalid request body syntax, payload exceeds 10MB, or missing parameters. |
401 | Unauthorized | Missing or invalid authentication token. |
403 | Forbidden | Request origin not present in the integration's allowed origins list. |
404 | Not Found | Target integration or event not found. |
429 | Too Many Requests | Rate limit exceeded for the integration or client IP. |
500 | Internal Error | An unexpected server error occurred. |
