Agents

What an agent calls

The agent's outgoing dependencies over the range (models, tools, HTTP hosts, databases, queues, RPC targets, other agents), inferred from its spans with no configuration, each with calls, errors, error rate, p50 and p95 latency, tokens and cost for models, and a daily series. Most calls first, at most 50; more counts the rest.

Read from the daily dependency aggregate (kept 90 days), never from raw spans. A range covers every UTC day that overlaps it.

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

Request

  • Base URL: https://app.lastping.dev
  • URL: https://app.lastping.dev/api/v1/agents/{id}/dependencies
  • 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.

Response

The agent's dependencies.

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

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

Example response

{
  "range": "7d",
  "dependencies": [
    {
      "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
        }
      ]
    }
  ]
}

Changes

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