The X4B APIv2 provides programmatic access to manage your X4B services, DNS records, firewall rules, SSL certificates, tunnels, and more. It is a JSON-based REST-style API available at the following base URL:

https://www.x4b.net/apiv2/{Module}/{Method}

All requests and responses use JSON. Successful responses return the requested data directly. Errors return a JSON object with an error key:

{ "error": "Error Message" }

Authentication failures return HTTP 403.

For interactive exploration of all available endpoints, request/response schemas, and the ability to try calls directly from your browser, use the API Explorer at:

https://x4b.net/api-explorer/