---
title: "Get Agent Route"
method: GET
path: "/api/v1/agents/{agent_id}"
---

# Get Agent Route

`GET /api/v1/agents/{agent_id}`

## Request

- Base URL: `https://api.stacktrace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stacktrace.ai/api/v1/agents/{agent_id}`
- Auth: none declared

## Path parameters

- `agent_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- AgentRow: An agent as a top-level resource (ADR-0022). Fields are named for what they mean, not where they come from: asset_id and asset_display_name are machine context and say so, while a future ownership field must be team_name rather than asset_team_name, or moving ownership from the machine to the agent would force a breaking rename.
  - `id` string, required
  - `agent_kind` string, required
  - `agent_id` string, nullable, required
  - `composition_source` string, nullable, required
  - `composition_coverage` string, nullable, required
  - `latest_bom_id` string, nullable, required
  - `last_seen_at` string, nullable, required
  - `last_reevaluated_at` string, nullable, required
  - `asset_id` string, required
  - `asset_display_name` string, required
  - `component_count` integer, required
  - `component_type_counts` object
  - `finding_count` integer, required
  - `vulnerability_count` integer
  - `open_vulnerability_count` integer
  - `open_detection_count` integer
  - `records_in_pair` integer
  - `last_detect_run_at` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api.md) - [All operations](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/revisions/0ee5484d1d0b?raw)
