Authentication
Every request to the RezLive API is authenticated by a single credential — the x-api-key HTTP header. This page explains what each piece of identification in a request actually does, because the design is easy to misread.
What you send on every request
| Where | Field | What it is | Required |
|---|---|---|---|
| HTTP header | x-api-key |
The credential. Authenticates your organisation to the RezLive infrastructure. | Yes |
| Request body | <AgentCode> |
Routing identifier. Tells RezLive which agent account to apply (inventory, currency, contracts). | Yes |
| Request body | <UserName> |
Routing identifier (companion to AgentCode). Identifies the user/sub-account within the agency. | Yes |
They are routing tokens that identify which agent account a request belongs to. Stealing them does not grant API access — the x-api-key is the secret.
We retain them in the body for backwards compatibility with existing integrations. They may be consolidated into headers in a future major version. Existing integrations will not break.
IP whitelisting
In addition to the API key, your outbound IP addresses must be whitelisted with RezLive. A request from a non-whitelisted IP is rejected with the same generic error as an invalid API key.
- Send your test environment IPs to xmlsupport@rezlive.com before integration.
- Send your production IPs separately as part of the certification handover.
- When IPs change (server moves, NAT changes), notify support before the cutover.
Endpoint base URLs
| Environment | Base URL | Credentials |
|---|---|---|
| Test (sandbox) | https://test.xmlhub.com/testpanel.php | Issued at registration |
| Production | https://www.xmlhub.com | Issued after certification |
If you see a base URL over plain HTTP in older code or documentation, replace it with HTTPS. RezLive supports HTTPS on test and production. HTTP requests should be migrated immediately as part of any partner security review.
Common authentication errors
| Code | Trigger | What to do |
|---|---|---|
RZL-AUTH-001 | Invalid API key OR IP not whitelisted | Confirm key value; confirm whitelist status with support |
RZL-AUTH-002 | Agent account inactive or suspended | Contact support — billing/contract review |
RZL-AUTH-003 | Production credentials required | Use the credentials issued post-certification |