Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/content/docs/reference/api-and-sdk/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ See the [**Python SDK**](https://github.com/warpdotdev/oz-sdk-python) or [**Type

### Key endpoints

**The Agents API exposes three primary endpoints:**
**The Agents API exposes these primary endpoints:**

* `POST /agent/run`

Expand All @@ -104,6 +104,12 @@ See the [**Python SDK**](https://github.com/warpdotdev/oz-sdk-python) or [**Type
* `GET /agent/runs/{runId}`

Fetch full details for a single run, including session link and resolved configuration.
* `POST /agent/runs/{runId}/followups`

Send a follow-up message to an existing run to steer or continue it, the same capability the Slack and Linear integrations use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 [SUGGESTION] Avoid calling mode an "optional query" here; RunFollowupRequest defines it as a request-body field, and this wording can read like a URL query parameter.

Suggested change
Send a follow-up message to an existing run to steer or continue it, the same capability the Slack and Linear integrations use.
Send a follow-up message to an existing run, the same capability the Slack and Linear integrations use to continue a run. The server routes the message based on the run's current state (queued, running, or ended), so you can steer or continue a run programmatically. A `200` response means the follow-up was accepted; observe the updated state with `GET /agent/runs/{runId}`. The follow-up message and optional `mode` field are described by the `RunFollowupRequest` model.

* `POST /agent/runs/{runId}/cancel`

Cancel a run that is currently queued or in progress. Returns the ID of the cancelled run.

All endpoint semantics, query parameters, and [error codes](/reference/api-and-sdk/troubleshooting/errors/) are documented on the [Agents API Reference](/api).

Expand All @@ -122,6 +128,7 @@ The API shares a set of reusable models across endpoints. Detailed JSON schemas,
* `RunCreatorInfo`
* `RunState`
* `RunSourceType`
* `RunFollowupRequest`
* `AmbientAgentConfig`
* `MCPServerConfig`
* `Error`
Expand Down
Loading