Webhooks
View webhook logs and test endpoints
Available Endpoints
Configure your CRM to send webhooks to these endpoints
| Webhook Name | Endpoint | Status | Description |
|---|---|---|---|
| Live Account Created | /api/webhooks/live-account-created | No logs | Triggered when a new live trading account is created |
| Lead Created | /api/webhooks/lead-created | No logs | Triggered when a new lead is created |
| IB Created | /api/webhooks/ib-created | No logs | Triggered when a new IB is created |
| Login | /api/webhooks/login | No logs | Triggered when a user logs in |
| Deposit | /api/webhooks/deposit | No logs | Triggered when a deposit is made |
| First Time Deposit | /api/webhooks/first-time-deposit | No logs | Triggered on a user's first deposit |
| Withdrawal | /api/webhooks/withdrawal | No logs | Triggered when a withdrawal is requested |
| Demo Account Created | /api/webhooks/demo-account-created | No logs | Triggered when a demo account is created |
| Documents Verified | /api/webhooks/documents-verified | No logs | Triggered when documents are verified |
| First Time Traded | /api/webhooks/first-time-traded | No logs | Triggered on a user's first trade |
| Tickets | /api/webhooks/tickets | No logs | Triggered when a support ticket is created or updated |
| Accounts | /api/webhooks/accounts | No logs | Triggered when account information is updated |
Test Webhooks
Example curl commands to test webhook endpoints
Example: Test Live Account Created
curl -X POST http://localhost:3000/api/webhooks/live-account-created \
-H "Content-Type: application/json" \
-d '{
"account_id": "12345",
"user_id": "67890",
"email": "user@example.com",
"account_type": "standard",
"created_at": "2025-12-26T13:16:31.428Z"
}'Example: Test Deposit
curl -X POST http://localhost:3000/api/webhooks/deposit \
-H "Content-Type: application/json" \
-d '{
"deposit_id": "dep_12345",
"account_id": "12345",
"amount": 1000,
"currency": "USD",
"method": "credit_card",
"status": "completed",
"timestamp": "2025-12-26T13:16:31.428Z"
}'Replace localhost:3000 with your actual domain when deploying to production. Add authentication headers as required by your CRM integration.