x-api-key: ********************{
"url": "https://yourapp.com/webhooks/litemail",
"events": [
"mailbox.created",
"domain.connected"
],
"secret": "whsec_abc123"
}curl --location '/v1/webhooks' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://yourapp.com/webhooks/litemail",
"events": [
"mailbox.created",
"domain.connected"
],
"secret": "whsec_abc123"
}'{
"status": 401,
"message": "Authentication required. Please login to continue."
}