Gateway Call Log
The API Gateway records one row per call to a published API — including calls it refused — so you can see who used an API, what failed and how fast it was.
Each row records:
| Field | Meaning |
|---|---|
| When | Time of the call |
| Operation | The matched operationId (or the path, if no operation matched) |
| Method and path | The HTTP method and the requested path |
| Caller | Where the call came from: Agent (a Hrida.ai agent, with the user from the caller identity), Key (an outside caller's consumer key, shown by key name, or jwt:<subject> for a partner access token), Test (the test console, with your user) or Secret (the internal gateway secret used without a caller identity). Calls logged before this was recorded show no source |
| Chat | The chat the call came from, when known |
| Status | The status returned to the caller |
| Upstream status | The upstream's own status code, when the call reached it |
| Error code | Why the gateway refused or failed the call (rate_limited, caller_forbidden, request_invalid, …) — see error codes |
| Duration | Total time in milliseconds |
| Client address | The caller's IP address, shown under the caller, as the gateway saw it behind your load balancer (see client addresses) |
Request and response bodies are never stored, so the log is safe to keep for APIs that handle personal or financial data. When you need to see what failing calls carried, switch on failed call details for a few hours. Failed logins past the per-address limit aren't recorded, so a flood of guesses can't fill the log.
Viewing Calls
Open the API's edit page and scroll to Gateway calls. It shows the latest 50 calls and a 24-hour summary: total calls, errors (status 400 and above) and p95 duration. Click Refresh to update it. Calls are written in batches, so a call appears within about a second.
For trends over time (traffic, error rates, latency, breakdowns by operation, environment and caller), use the Analytics card above it; see API Analytics. Its View calls button, or clicking an error code, filters this list to the matching calls; Show all calls clears the filter.
Anyone who can read the API can see its call log; users outside the API's space can't. The same data is available from the API:
GET /api/v1/api-definitions/{id}/calls?limit=50&offset=0
{
"items": [
{
"operation_id": "getCustomer",
"method": "GET",
"path": "/customers/42",
"user_id": "8dc0525c-…",
"status_code": 200,
"upstream_status": 200,
"error_code": null,
"duration_ms": 184,
"created_at": 1791214847
}
],
"summary": { "since": 1791128447, "total": 312, "errors": 4, "p95_duration_ms": 640 }
}limit is capped at 200. Optional filters narrow the list:
| Parameter | Matches |
|---|---|
environment | prod or a stage name |
operation_id | An operation |
source | agent, consumer, test or direct |
exclude_test=true | Everything except test-console calls |
error_code | A gateway error code, soap_fault, or upstream_4xx / upstream_5xx (the upstream's own error status) |
status_class | 2xx, 3xx, 4xx or 5xx |
from, to | Unix timestamps |
Failed Call Details
The call log says that a call failed, not what it carried. To see why calls fail, switch on Keep failed calls for 24 hours in the Gateway calls card of the API's page (API developers, lifecycle managers, space admins and admins). While it's on, the gateway keeps, for each failed call (an error status, a gateway error or a warning):
- what the caller sent: method, path, query and body;
- what the gateway sent upstream: the URL (without its query, where upstream auth may put a key) and the body after the mappers;
- what came back from the upstream, and what the caller got;
- the gateway's reason when it refused or failed the call.
To keep it safe:
- Bodies go through the API's masking rules and are cut to 4,000 characters; no request or response headers are kept.
- Successful calls are never kept, and at most 30 failed calls a minute per API are.
- Details are kept for 7 days (the newest 200 per API). Delete kept details removes them sooner.
- Turning it on or off and deleting are recorded in the audit log. It switches off by itself after the hours you chose (at most 72).
- People from spaces the API is only shared with can't see the details.
It works whatever the API's status, including published APIs, without a new version. The AI Assistant reads these details when you ask it why real calls fail, and asks before switching them on.
GET /api/v1/api-definitions/{id}/call-capture → {"until": 1761200000, "items": [...]}
PUT /api/v1/api-definitions/{id}/call-capture {"hours": 24} (0 switches it off)
DELETE /api/v1/api-definitions/{id}/call-capture/items
Retention
Raw rows are kept for 30 days by default, then archived to storage and deleted. Admins change this under Gateway settings › Call log retention & archive on the API Builder page (or with API_GATEWAY_CALL_LOG_RETENTION_DAYS). Older history stays available as hourly and daily summaries for API Analytics, and as downloadable daily archives; see How the call log stays small. For where the log is stored, what to back up, sizing and limits, see Running the call log in production. Deleting an API deletes its call log and summaries.
Related
- API Analytics — traffic, errors and latency over time, built from this log
- API Gateway — the pipeline and the error codes that appear in the log
- Gateway Policy & Security — the limits and checks that produce refusals
- Lifecycle, Versions & Audit Log — the separate audit log for changes to the API definition itself