---
title: "Get an agent run's status and output"
method: GET
path: "/v1/agent-runs/{run_id}"
tags: ["agents"]
---

# Get an agent run's status and output

`GET /v1/agent-runs/{run_id}`

## Request

- Base URL: `https://barchin.net/api`
- URL: `https://barchin.net/api/v1/agent-runs/{run_id}`
- Auth: HTTP bearer

## Path parameters

- `run_id` string, uuid, required

## Query parameters

- `include_output` boolean

## Response `200`

Successful Response

- AgentRunOut
  - `id` string, uuid, required
  - `agent_slug` string, required
  - `status` string, required
  - `input` object, required
  - `credits_held` integer, required
  - `credits_charged` integer, nullable, required
  - `refunded_credits` integer, required
  - `children_credits` integer, required
  - `model` string, nullable, required
  - `tokens_in` integer, nullable, required
  - `tokens_out` integer, nullable, required
  - `cost_breakdown` object, nullable
  - `error_code` string, nullable, required
  - `error_message` string, nullable, required
  - `created_at` string, date-time, required
  - `started_at` string, date-time, nullable, required
  - `finished_at` string, date-time, nullable, required
  - `children` AgentRunChildOut[], required
    - `position` integer, required
    - `kind` string, required
    - `label` string, required
    - `id` string, uuid, nullable, required
    - `status` string, nullable, required
    - `credits_charged` integer, nullable, required
    - `url` string, nullable, required
    - `actor_slug` string, nullable, required
    - `agent_slug` string, nullable
    - `error_code` string, nullable, required
  - `output` object, nullable, required
  - `webhook_url` string, nullable
  - `webhook_status` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests

---

[API](https://skmtc.dev/barchin/apis/barchin-scraping-api.md) · [All operations](https://skmtc.dev/barchin/apis/barchin-scraping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/barchin/apis/barchin-scraping-api/revisions/fe97e4690cc3?raw)
