---
title: "Get Agent"
method: GET
path: "/api/v1/agent/{run_id}"
---

# Get Agent

`GET /api/v1/agent/{run_id}`

## Request

- Base URL: `https://api.mesharc.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mesharc.dev/api/v1/agent/{run_id}`
- Auth: none declared

An agent run: its status while it works, its answer and sources after.
410 once its results are past their keep date.

## Path parameters

- `run_id` string, required

## Headers

- `authorization` string, nullable
- `x-mesharc-tenant` string, nullable

## Response `200`

Successful Response

- AgentResponse
  - `id` string, required
  - `kind` string, required
  - `status` string, required
  - `prompt` string, required
  - `params` object, required
  - `data` union
    - object
    - unknown[]
      - unknown
  - `fieldSources` object
  - `sources` AgentSource[], required
    - `url` string, required
    - `title` string
    - `pageId` string
    - `provider` string, nullable
  - `creditsUsed` integer, required
  - `budget` integer, required
  - `budgetLimited` boolean, required
  - `tokens` object, required
  - `steps` integer, required
  - `model` string, required
  - `threadId` string, required
  - `continuesRunId` string, nullable
  - `continuedBy` string, nullable
  - `followsRunId` string, nullable
  - `followedBy` string, nullable
  - `stopReason` string, required
  - `error` string, required
  - `doing` object, nullable
  - `next` string, nullable
  - `createdAt` string, nullable
  - `startedAt` string, nullable
  - `finishedAt` string, nullable
  - `expiresAt` string, nullable
  - `request_id` string, required
  - `webhookSecret` string, nullable

## Other responses

- `422`: Validation Error

---

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