cURL
curl --request POST \ --url https://faisalshop.mvp-apps.ae/api/v2/admin/webhooks/{tenantId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "events": [ "<string>" ] } '
curl -X POST \ https://faisalshop.mvp-apps.ae/api/v2/admin/webhooks/123 \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://your-app.com/webhooks", "events": ["user.registered", "order.created"] }'
await axios.post( `/api/v2/admin/webhooks/${tenantId}`, { url: 'https://your-app.com/webhooks', events: ['user.registered', 'order.created'] }, { headers: { Authorization: `Bearer ${token}` } } );
{ "event": "user.registered", "tenant_id": 123, "timestamp": "2025-11-16T10:30:00Z", "data": { "user_id": 42, "email": "user@example.com", "role": "MEMBER" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Tenant ID
Webhook created