Appearance
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
- Copy the agent username and API key from the agent profile.
- Base64-encode
username:apiKey. - Send that value in the
Authorizationheader.
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"
}
}
}