Integrate Sentinel's AI-powered revenue intelligence into your applications.
Complete API documentation with interactive examples
Real-time event notifications for your integrations
All API requests require authentication. Include your API token in the Authorization header:
curl -X GET "https://api.sentinel.dev/api/deals" \
-H "Authorization: Bearer your_api_token" \
-H "Content-Type: application/json"// Response
{
"success": true,
"data": [
{
"id": "clx123abc",
"name": "Acme Corp",
"stage": "negotiation",
"value": 50000,
"riskLevel": "Low",
"riskScore": 0.25
}
]
}Configure webhooks to receive real-time notifications:
| Event | Description |
|---|---|
deal.created | New deal added to pipeline |
deal.stage_changed | Deal moved to a different stage |
deal.at_risk | Deal flagged as high risk |
deal.closed_won | Deal successfully closed |
deal.closed_lost | Deal lost |
// Webhook payload example
{
"id": "evt_abc123",
"event": "deal.stage_changed",
"timestamp": "2025-01-25T12:00:00Z",
"data": {
"id": "clx123abc",
"name": "Acme Corp",
"oldStage": "proposal",
"newStage": "negotiation",
"value": 50000
}
}
// Verify webhook signature
const signature = req.headers["x-webhook-signature"];
const expectedSig = crypto
.createHmac("sha256", webhookSecret)
.update(JSON.stringify(payload))
.digest("hex");
if (signature === expectedSig) {
// Webhook is authentic
}