API Reference
The smoxy public API lets you automate everything you can do in the Hub: zones, hostnames, DNS, certificates, security rules and more. Pick an endpoint from the sidebar to see its parameters, the full request body schema, response examples and ready-to-use code snippets - or try it directly from the browser.
Base URL
All endpoints are served at:
https://api.smoxy.euAuthentication
Authenticate each request by sending a personal access token in the X-API-TOKEN HTTP header:
bash
curl -H "X-API-TOKEN: <token>" https://api.smoxy.eu/api/zonesTokens are created in the Hub under your account settings. See API Tokens for how to create and manage them.
Request & Response Formats
The API speaks JSON-LD (Hydra) by default and plain JSON on request:
- Responses default to
application/ld+json. SendAccept: application/jsonfor plain JSON. POSTandPUTrequests acceptapplication/ld+jsonorapplication/json.PATCHrequests use JSON Merge Patch: send only the fields to change withContent-Type: application/merge-patch+json. An explicitnullclears a field.
Resources reference each other by IRI, e.g. a zone's organization is /api/organizations/1.
