curl --location --request POST '/webhooks' \
--header 'Accept: application/json' \
--header 'Accept-Language: {{lang}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Order Events",
"url": "https://yourapp.com/webhook",
"method_type": "POST",
"events": [
"order.created",
"order.updated"
],
"secret": "optional-custom-secret-min-32-chars-long",
"status": 1
}'{
"status": "success",
"message": "Webhook registered successfully. Store the secret safely — it will not be shown again.",
"data": {
"webhook": {
"id": 24,
"name": "Order Events",
"url": "https://yourapp.com/webhook",
"method_type": "POST",
"status": 1,
"created_at": "2026-04-02 00:26:18",
"updated_at": "2026-04-02 00:26:18",
"events": [
{
"id": 60,
"event_name": "order.created"
},
{
"id": 61,
"event_name": "order.updated"
}
]
},
"plain_secret": "optional-custom-secret-min-32-chars-long"
}
}