Webhooks API
Subscribe to real-time event notifications
Webhooks API
Register webhook endpoints to receive real-time notifications when alpha signals are generated.
Required scopes: admin or webhooks
All webhook endpoints require an API key with the admin or webhooks scope.
POST /v1/webhooks
Create a new webhook subscription.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | HTTPS endpoint to receive webhook payloads |
events | string[] | No | Event types to subscribe to (default: ["alpha_signals"]) |
min_impact | string | No | Minimum impact level: "LOW", "MEDIUM", "HIGH", or "CRITICAL" (default: "MEDIUM") |
The
urlmust use HTTPS and cannot point to private/internal addresses (localhost, RFC 1918 ranges, etc.).
Available Event Types
| Event | Description |
|---|---|
alpha_signals | New alpha signals generated by the scan engine |
Request
curl -X POST https://api.marketintell.ai/v1/webhooks \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"url": "https://your-server.com/webhooks/marketintell",
"events": ["alpha_signals"],
"min_impact": "HIGH"
}'Response
{
"success": true,
"data": {
"id": "wh_abc123",
"url": "https://your-server.com/webhooks/marketintell",
"events": ["alpha_signals"],
"min_impact": "HIGH",
"active": true,
"created_at": "2025-01-15T10:00:00.000Z",
"last_triggered_at": null,
"failure_count": 0
}
}GET /v1/webhooks
List all active webhook subscriptions.
Request
curl https://api.marketintell.ai/v1/webhooks \
-H "X-API-Key: YOUR_API_KEY"Response
{
"success": true,
"data": {
"count": 1,
"webhooks": [
{
"id": "wh_abc123",
"url": "https://your-server.com/webhooks/marketintell",
"events": ["alpha_signals"],
"min_impact": "HIGH",
"active": true,
"created_at": "2025-01-15T10:00:00.000Z",
"last_triggered_at": "2025-01-15T13:22:00.000Z",
"failure_count": 0
}
]
}
}DELETE /v1/webhooks/:id
Delete a webhook subscription.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook ID |
Request
curl -X DELETE https://api.marketintell.ai/v1/webhooks/wh_abc123 \
-H "X-API-Key: YOUR_API_KEY"Response
{
"success": true,
"data": {
"deleted": true
}
}Webhook Payload Format
When alpha signals are generated, matching webhooks receive a POST with the signal data. Signals are filtered by the webhook's min_impact level — only signals at or above the threshold are delivered.
Impact levels are ranked: LOW < MEDIUM < HIGH < CRITICAL.
{
"id": "sig_001",
"headline": "Whale accumulation detected: 5,200 BTC moved to cold storage",
"analysis": "Multiple large wallets transferred BTC off exchanges...",
"sentiment": "BULLISH",
"impact": "HIGH",
"category": "whale",
"tokens_affected": ["BTC"],
"timestamp": "2025-01-15T13:22:00.000Z",
"sources": ["on-chain", "exchange-flow"]
}See the Webhooks Guide for retry behavior and implementation examples.