Webhooks
Configure webhook endpoints to receive real-time notifications when events occur. Supported events: signal.changed, agent.triggered, portfolio.updated, alert.fired.
/api/v1/integrations/webhooksReturns all configured webhook endpoints for the authenticated user.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/integrations/webhooks" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "wh-abc123...",
"name": "Trading Signals",
"url": "https://example.com/webhooks/gilito",
"events": ["signal.changed", "alert.fired"],
"active": true,
"createdAt": "2026-03-01T10:00:00.000Z",
"lastDeliveryAt": "2026-04-03T14:30:00.000Z",
"lastDeliveryStatus": 200
}
]
}/api/v1/integrations/webhooksCreate a new webhook endpoint. The secret is used to sign payloads for verification.
Query Parameters
namestringrequiredFriendly name for the webhook.
urlstringrequiredThe HTTPS URL to deliver events to.
secretstringrequiredSecret key for HMAC-SHA256 payload signing.
eventsstring[]requiredEvents to subscribe to: signal.changed, agent.triggered, portfolio.updated, alert.fired.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/integrations/webhooks?name={name}&url={url}&secret={secret}&events={events}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "wh-abc123...",
"name": "Trading Signals",
"url": "https://example.com/webhooks/gilito",
"events": ["signal.changed", "alert.fired"],
"active": true,
"createdAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/integrations/webhooks/:idUpdate a webhook endpoint. Only provided fields are updated.
Path Parameters
idstringrequiredThe webhook ID.
Query Parameters
namestringoptionalUpdated name.
urlstringoptionalUpdated URL.
secretstringoptionalUpdated secret key.
eventsstring[]optionalUpdated event subscriptions.
activebooleanoptionalEnable or disable the webhook.
Response
200 OKcurl -X PATCH "https://api.gilito.ai/api/v1/integrations/webhooks/{id}?name={name}&url={url}&secret={secret}&events={events}&active={active}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "wh-abc123...",
"name": "Updated Webhook",
"url": "https://example.com/webhooks/gilito",
"events": ["signal.changed", "agent.triggered"],
"active": true,
"updatedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/integrations/webhooks/:idDelete a webhook endpoint. No further events will be delivered.
Path Parameters
idstringrequiredThe webhook ID.
Response
200 OKcurl -X DELETE "https://api.gilito.ai/api/v1/integrations/webhooks/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "wh-abc123...",
"status": "deleted"
}
}/api/v1/integrations/webhooks/:id/testSend a test event to the webhook endpoint to verify connectivity and signature validation.
Path Parameters
idstringrequiredThe webhook ID.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/integrations/webhooks/{id}/test" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"webhookId": "wh-abc123...",
"testEvent": "signal.changed",
"deliveryStatus": 200,
"responseTimeMs": 145,
"deliveredAt": "2026-04-04T09:00:00.000Z"
}
}