curl --location 'https://app.lamha.sa/api/v2/webhooks' \
--header 'X-LAMHA-TOKEN: {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"event_type": "order.status.changed",
"url": "https://your-app.com/hooks/lamha",
"secret": "a-strong-shared-secret-min-16-chars",
"active": true,
"conditions": {
"statuses": ["picked", "delivered"]
}
}'{
"success": true,
"msg": "The Webhook has been Registered",
"data": {
"id": 42,
"event_type": "order.status.changed",
"url": "https://your-app.com/hooks/lamha",
"is_active": true,
"created_at": "2026-09-01T10:21:27+00:00"
},
"created": true
}