Webhook Management
Endpoints
Section titled “Endpoints”| Method | Path | Description |
|---|---|---|
| POST | /webhooks | Create webhook |
| GET | /webhooks | List webhooks |
| GET | /webhooks/:id | Get webhook |
| PATCH | /webhooks/:id | Update webhook |
| DELETE | /webhooks/:id | Delete webhook |
| POST | /webhooks/:id/test | Send test event |
| POST | /webhooks/:id/rotate-secret | Rotate signing secret |
| GET | /webhooks/:id/deliveries | List delivery history |
Create Webhook
Section titled “Create Webhook”POST /webhooksRequest Body:
{ "url": "https://your-server.com/webhooks", "events": ["trade.filled", "trade.closed"], "description": "Production webhook"}Response:
{ "id": "wh_abc123", "url": "https://your-server.com/webhooks", "events": ["trade.filled", "trade.closed"], "secret": "whsec_...", "is_active": true, "created_at": "2026-02-20T12:00:00Z"}⚠️ The
secretis only returned on creation. Store it securely for signature verification.
List Webhooks
Section titled “List Webhooks”GET /webhooksUpdate Webhook
Section titled “Update Webhook”PATCH /webhooks/:id{ "events": ["trade.filled", "trade.closed", "copier.started"], "is_active": true}Delete Webhook
Section titled “Delete Webhook”DELETE /webhooks/:idTest Webhook
Section titled “Test Webhook”POST /webhooks/:id/testSends a test event to your webhook URL.
Rotate Secret
Section titled “Rotate Secret”POST /webhooks/:id/rotate-secretGenerates a new signing secret. The previous secret keeps working for a 1-hour grace period so you can roll the new one out without dropping deliveries — verify against both during the overlap (see Security).
Delivery History
Section titled “Delivery History”GET /webhooks/:id/deliveriesReturns recent delivery attempts with status codes and response times.

