Skip to main content

Gateway Call Log

Per-call audit records for API Builder's gateway: who called which operation, the result, error codes and duration — without storing payloads.

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:

FieldMeaning
WhenTime of the call
OperationThe matched operationId (or the path, if no operation matched)
Method and pathThe HTTP method and the requested path
CallerWhere 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
ChatThe chat the call came from, when known
StatusThe status returned to the caller
Upstream statusThe upstream's own status code, when the call reached it
Error codeWhy the gateway refused or failed the call (rate_limited, caller_forbidden, request_invalid, …) — see error codes
DurationTotal time in milliseconds
Client addressThe 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
json
{
  "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:

ParameterMatches
environmentprod or a stage name
operation_idAn operation
sourceagent, consumer, test or direct
exclude_test=trueEverything except test-console calls
error_codeA gateway error code, soap_fault, or upstream_4xx / upstream_5xx (the upstream's own error status)
status_class2xx, 3xx, 4xx or 5xx
from, toUnix 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.


Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.