API Reference
Integrations API
Manage integrations, configure channels, and query event logs programmatically.
Integrations API
The Integrations API provides programmatic access to manage your integrations and notification channels. All endpoints require authentication via Bearer token.
1. List Integrations
GET /integrationsRetrieve all integrations associated with the authenticated account.
Headers
Authorization: Bearer <your_jwt_token>Response (200 OK)
{
"success": true,
"data": [
{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"projectId": "1c7d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"name": "Production Contact Form",
"description": "Public website landing page",
"allowedOrigins": ["https://company.com", "https://staging.company.com"],
"rateLimit": {
"maxRequests": 10,
"windowSeconds": 60
},
"createdAt": "2026-11-01T12:00:00Z"
}
]
}2. Create Integration
POST /integrationsCreate a new form/event integration.
Request Body
{
"projectId": "1c7d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"name": "Feedback Widget",
"description": "In-app feedback modal",
"allowedOrigins": ["https://app.company.com"],
"rateLimit": {
"maxRequests": 5,
"windowSeconds": 60
}
}Response (201 Created)
{
"success": true,
"data": {
"id": "2d8f3b7d-4bad-9bdd-2b0d-7b3dcb6de9a1",
"name": "Feedback Widget",
"createdAt": "2026-11-23T10:50:00Z"
}
}3. Update Integration & Channels
PUT /integrations/:idUpdate integration metadata or channel configurations (Telegram, Webhook, Email).
Request Body
{
"name": "Production Contact Form",
"allowedOrigins": ["https://company.com"],
"channels": {
"telegram": {
"enabled": true,
"botToken": "123456789:ABCdefGHIjklMNOpqrSTUvwxYZ",
"chatId": "-1001234567890"
},
"webhook": {
"enabled": true,
"url": "https://api.company.com/webhooks/heels",
"secret": "whsec_super_secret_key_123"
},
"email": {
"enabled": false
}
}
}4. Test Integration Channels
POST /integrations/:id/testDispatches a dry-run synthetic event to test Telegram bot credentials, Webhook reachability, or SMTP delivery without altering production analytics.
Response (200 OK)
{
"success": true,
"results": {
"telegram": { "success": true, "latencyMs": 142 },
"webhook": { "success": true, "statusCode": 200, "latencyMs": 89 }
}
}5. Delete Integration
DELETE /integrations/:idPermanently removes the integration, its channel bindings, and event history.
