Session history
List the recent API calls made under a session, for debugging and audit.
POST/Common/SessionHistory
Access requires the permission credit_balance
Returns the logged requests for your session in the order they happened. Pass a TargetSessionId to inspect another session your account owns.
Path parameters
None.
Query parameters
None.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
SessionId | string | Yes | Your session id. |
TargetSessionId | string | No | Another session to inspect. Defaults to the current one. |
Request
curl -X POST https://api.hermeseus.com/api/Common/SessionHistory \
-H "Content-Type: application/json" \
-d '{ "SessionId": "8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f" }'const res = await fetch("https://api.hermeseus.com/api/Common/SessionHistory", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ SessionId: "8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f" })
});
const data = await res.json();import requests
res = requests.post(
"https://api.hermeseus.com/api/Common/SessionHistory",
json={"SessionId": "8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f"},
)
data = res.json()Response
| Field | Type | Description |
|---|---|---|
Success | boolean | true on success. |
SessionId | string | The session the history is for. |
RequestCount | integer | Number of logged requests. |
Requests | array of object | The calls, oldest first. See below. |
Error | object | null on success. |
{
"Success": true,
"SessionId": "8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f",
"RequestCount": 1,
"Requests": [
{
"Id": 90271,
"Endpoint": "Air/AirLowFareSearch",
"Method": "POST",
"RequestBody": { "AdultCount": 1 },
"ResponseBody": { "Success": true, "SearchId": 428713 },
"HttpStatus": 200,
"Success": true,
"ErrorId": null,
"ResponseTimeMs": 842,
"CreatedAt": "2026-10-15T16:24:49+00:00"
}
],
"Error": null
}Errors
| Code | Meaning | Fix |
|---|---|---|
Err0106002 | SessionId is missing. | Send your session id. |

