Authentication
Every request carries the API key in the X-Api-Key header.
GET /api/v1/balance HTTP/1.1
Host: panel.esmsy.pl
X-Api-Key: <your-key>
Accept: application/jsonWhere to get the key
Panel → Settings → API. The key only works with the “HTTP protocol” switch on. “Refresh key” issues a new key and the old one stops working at once: update your system first.
IP filter
In the same settings you can restrict access to chosen IP addresses (separate several with a semicolon). A request from another address gets 401, the same as with a wrong key. The filter switched on with no address blocks everything.
When you get 401
- no X-Api-Key header, or a wrong key,
- the “HTTP protocol” switch is off,
- an IP outside the filter,
- the account is blocked.
HTTP/1.1 401 Unauthorized
{"message": "Unauthenticated."}