Webhook configuration
Webhooks are configured at the API key level. When creating (or rotating) it, the tenant administrator defines:
webhookUrl— the public HTTPS URL where LX CloudPos will make thePOST.webhookSecret— shared secret for HMAC-SHA256. It is shown only once when creating or rotating the key; it must be stored in the appropriate secrets manager before closing the screen.
webhookUrl requirements
Allowed:
- HTTPS only (
http://is rejected). - Public domains (
tu-app.com,api.tu-empresa.cr). - Any path (
/webhooks/lxs,/api/notifications/lxs-cloudpos).
Blocked (SSRF protection):
localhostand127.0.0.0/8.0.0.0.0.- RFC1918 ranges (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16). - Link-local (
169.254.0.0/16— includes the cloud metadata endpoint). - CGNAT (
100.64.0.0/10). - IPv6 loopback, link-local, and site-local.
To test against localhost during development, use a public tunnel; see local webhook testing.