Skip to main content
StackOne records a request log for every API call it handles on your behalf — action (RPC) runs, MCP tool calls, and the connector steps behind them. This guide shows which endpoints to call, in what order, when debugging failures.
This guide covers request logs only — the same data shown on the Request Logs dashboard page. It does not cover platform or audit logs.The API follows the same drill-down hierarchy as the dashboard: list → detail → advanced / steps / defender.
To build admin or customer-facing log dashboards, see Request Log Dashboards. To export logs into Grafana, Datadog, or a data warehouse, see Observability & Log Sync.

Drill-down hierarchy

Start at the list endpoint and drill down only when you need more detail — exactly as the dashboard does. For dashboard KPIs without listing individual rows, use Get Logs Stats Aggregate and Get Logs Stats Dimensions.

List filters

List Logs accepts a POST body with filters and pagination. Common filters mirror the dashboard search bar: See the List Logs API reference for the full filter schema.

Example: list recent errors for an account

Each list row includes an action_run_id. Pass that to the detail and drill-down endpoints.

Debug a failed request

Trace a single failed call from the list through to the step that failed.
Use the Error Explainer in the StackOne dashboard for AI-generated resolution steps when investigating errors in the request logs UI.

Defender security review

Defender must be enabled in your project settings before defender log endpoints return scan results.
Review Defender scan results for AI agent tool calls.
  1. List flagged requestsList Logs and filter by risk_level (returned on log records when Defender is enabled).
  2. Get Defender detailsGet Action Defender Log for the full scan output including risk_level, tier2_score, and classification metadata.
  3. Inspect the responseGet Action Advanced Log to see the sanitized payload Defender evaluated.

Advanced logs: request and response bodies

List Logs, Get Action Log, and Get Step Log return metadata only. To retrieve full HTTP request and response bodies, use the advanced endpoints:
Advanced log retention depends on your project’s Advanced Logs settings. Configure retention period and error-only mode in the StackOne dashboard.
Fetch advanced logs on demand — not for every row in a high-volume feed.

Legacy endpoints

Only use these endpoints if you are debugging request logs from legacy unified connectors. For action-based connectors, use the drill-down hierarchy above.
The following endpoints remain available for integrations that generate request logs via legacy unified connectors:

Request Log Dashboards

Build admin or customer-facing log dashboards

Observability & Log Sync

Sync logs to Grafana, Datadog, or custom pipelines

Request Logs (Dashboard)

View and filter logs in the StackOne dashboard

List Logs API

List request logs endpoint reference

Defender

Scan AI tool responses for prompt injection