---
title: "Continue Agent"
method: POST
path: "/api/v1/agent/{run_id}/continue"
---

# Continue Agent

`POST /api/v1/agent/{run_id}/continue`

## 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}/continue`
- Auth: none declared

Carry on a run that stopped at its credit limit, with a new budget: a
new run on the same thread (`continuesRunId`) that resumes from where the
stopped one was, keeps the pages it read (not paid for again) and answers
in full; the stopped run says `continuedBy`. 409 for a run that did not
stop at its limit or was already continued, 410 past its keep date.

## Path parameters

- `run_id` string, required

## Headers

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

## Request body

- AgentContinueRequest
  - `maxCredits` integer, nullable
  - `maxSteps` integer, nullable
  - `timeout` number, 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)
