Authentication and IP whitelist
Every REST request and WebSocket connection is authenticated with an API key. This page shows how to send the key and how the IP whitelist limits it to your own servers.
Last updated:
Authentication
Use either X-API-Key or a Bearer token. Do not expose your key in browser bundles, mobile binaries, screenshots, or logs.
Header
X-API-Key: pxa_live_...
Bearer
Authorization: Bearer pxa_live_...
Format
pxa_live_...
IP whitelist
Add your server addresses in the customer dashboard. While the list is empty, every address is accepted. Once it has entries, REST and WebSocket calls from any other address get 403 ip_not_allowed, and those calls do not use your quota. Single IPv4 and IPv6 addresses and CIDR ranges are accepted; Starter allows 1 entry, Pro 4 and Business 10.
{
"title": "ip_not_allowed",
"status": 403,
"detail": "Requests from 198.51.100.9 are not allowed for this API client. Add the address to the allowed IP list."
}The detail shows the address the API saw, which is the one to add when you are unsure of your server's outbound IP.