Skip to content

Authentication

Every call sends the agent username and API key as HTTP Basic authentication.

API Server ​

{API_URL} in the other pages is one of these hosts.

Production ​

https://api.hentory.io

Staging ​

https://test.ambsuperapi.com

How Authentication Works ​

  1. Copy the agent username and API key from the agent profile.
  2. Base64-encode username:apiKey.
  3. Send that value in the Authorization header.

Authorization Header Format ​

text
Authorization: Basic Base64({agent_username}:{x-api-key})

Use the placeholders YOUR_AGENT and YOUR_API_KEY. Do not store a real key in this file.

Example ​

A missing or invalid key returns HTTP 401. The body uses these fields:

json
{
  "reqId": "req-1",
  "code": 401,
  "exception": {
    "status": 401,
    "message": "Unauthorized",
    "response": {
      "statusCode": 401,
      "message": "Unauthorized",
      "error": "Unauthorized"
    }
  }
}

Local editable copy. Not the official AMBSuperAPI documentation.