Skip to content

Webhook Management

MethodPathDescription
POST/webhooksCreate webhook
GET/webhooksList webhooks
GET/webhooks/:idGet webhook
PATCH/webhooks/:idUpdate webhook
DELETE/webhooks/:idDelete webhook
POST/webhooks/:id/testSend test event
POST/webhooks/:id/rotate-secretRotate signing secret
GET/webhooks/:id/deliveriesList delivery history

POST /webhooks

Request 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 secret is only returned on creation. Store it securely for signature verification.


GET /webhooks

PATCH /webhooks/:id
{
"events": ["trade.filled", "trade.closed", "copier.started"],
"is_active": true
}

DELETE /webhooks/:id

POST /webhooks/:id/test

Sends a test event to your webhook URL.


POST /webhooks/:id/rotate-secret

Generates 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).


GET /webhooks/:id/deliveries

Returns recent delivery attempts with status codes and response times.