Agents

An agent's calls, outgoing and incoming

The calls table: the same rows as /dependencies for direction=out (the default), the agent's callers for direction=in, or both for direction=all. Each outgoing row also names its top five operations (span names), counted over the agent's newest 10 traced runs in the range. Most calls first, at most 50; more counts the rest.

get/api/v1/agents/{id}/calls

Request

  • Base URL: https://app.lastping.dev
  • URL: https://app.lastping.dev/api/v1/agents/{id}/calls
  • Auth: API key in header X-Api-Key

Query parameters

range'24h' | '7d' | '30d'

24h, 7d (default) or 30d. The data is daily, so a range covers every UTC day that overlaps it: 24h reads yesterday and today.

direction'out' | 'in' | 'all'

out (default), in or all.

Response

The agent's calls.

range'24h' | '7d' | '30d' required
direction'out' | 'in' | 'all' required
moreinteger required

How many more rows the range holds beyond the ones returned.

Example response

{
  "range": "7d",
  "direction": "out",
  "calls": [
    {
      "kind": "database",
      "name": "postgresql",
      "direction": "out",
      "calls": 1480,
      "errors": 12,
      "error_rate": 0.0081,
      "p50_ms": 10,
      "p95_ms": 25,
      "series": [
        {
          "day": "2026-09-20",
          "calls": 210,
          "errors": 2
        }
      ],
      "operations": [
        {
          "name": "SELECT app.orders",
          "calls": 131
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.