---
title: "Get active run"
method: GET
path: "/api/v0/agent/sessions/{session_id}/active-run"
tags: ["Agent"]
---

# Get active run

`GET /api/v0/agent/sessions/{session_id}/active-run`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/agent/sessions/{session_id}/active-run`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/agent/sessions/:session_id/active-run/get.ts> (a function with typed inputs; its response is checked against the schema)

The session's queued or running execution, or null. A client that reconnects polls this to re-attach to work already in flight.

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- AgentActiveRunResponse: Response for the session's in-flight run, if it has one.
  - `run` AgentActiveRun, required: The run a reconnecting client should attach to.
    - `id` string, uuid, required: The ID of the run.
    - `job_status_id` string, uuid, required: The job status ID to poll for this run's completion.
    - `status` string, required: The status of the run: 'queued' or 'running'.
    - `created_at` string, date-time, required: When the run was created.

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-25** `fcd15f6d35b4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/agent/sessions/:session_id/active-run/get.md)

---

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