Receive signed event notifications from the Stellar Intel platform.
Live for 5 of 11 kinds; the rest can be subscribed to and will start arriving as producers ship.
Webhooks let your application receive notifications when events happen on the Stellar Intel platform, without polling. Each delivery is an HMAC-SHA256 signed HTTP POST to your HTTPS endpoint.
| Event | Description |
|---|---|
| intent.created | An off-ramp intent is accepted for routing |
| intent.settled | An intent reaches a terminal completed state |
| intent.failed | An intent reaches a terminal failed state |
| reputation.event_written | A new outcome row is appended to the reputation log |
| anchor.health_status_changed | An anchor's health status transitions (e.g. healthy to degraded) |
| intent.rejected | An intent is refused before routing: a bad signature, a replay, or no route (not yet emitted) |
| intent.expired | An intent passes its deadline without settling (not yet emitted) |
| settlement.status_changed | An anchor transaction's status changes (not yet emitted) |
| dispute.opened | A dispute is opened against an outcome (not yet emitted) |
| dispute.resolved | A dispute is accepted or rejected (not yet emitted) |
| oracle.published | The oracle writes a batch of outcomes and rates on chain (not yet emitted) |
Webhooks are delivered via HTTP POST to your registered endpoint with the following payload structure:
{
"id": "3f2a1b4c-...",
"kind": "intent.settled",
"createdAt": "2026-07-28T12:00:00.000Z",
"payload": { ... }
}To register a webhook endpoint, send a POST request to the subscriptions API. The server generates the signing secret and returns it once in the response, so store it immediately.
curl -sX POST https://stellar-intel.vercel.app/api/webhooks/subscriptions \
-H 'x-admin-key: YOUR_ADMIN_SECRET_KEY' \
-H 'content-type: application/json' \
-d '{
"url": "https://your-app.com/webhooks/stellar-intel",
"events": ["intent.settled", "intent.failed"]
}'Each delivery carries two headers: x-webhook-signature, formatted as t=<unix_seconds>,v1=<hex_hmac>, and x-webhook-timestamp, the same timestamp. The HMAC-SHA256 is computed over `${t}.${rawBody}` with your subscription secret. Use the raw body exactly as received, compare in constant time, and reject timestamps more than 300 seconds old.
import { createHmac, timingSafeEqual } from 'crypto';
function verify(secret: string, header: string, rawBody: string): boolean {
const parts: Record<string, string> = {};
for (const seg of header.split(',')) {
const eq = seg.indexOf('=');
if (eq !== -1) parts[seg.slice(0, eq)] = seg.slice(eq + 1);
}
const { t, v1 } = parts as { t?: string; v1?: string };
if (!t || !v1) return false;
const timestamp = parseInt(t, 10);
if (Number.isNaN(timestamp)) return false;
const now = Math.floor(Date.now() / 1000);
if (Math.abs(now - timestamp) > 300) return false; // 5-minute window
const expected = createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex');
try {
return timingSafeEqual(Buffer.from(v1, 'hex'), Buffer.from(expected, 'hex'));
} catch {
return false;
}
}2xx status quickly and process the event asynchronouslyGET /api/webhooks/failures (admin key required)id to handle duplicate deliveries