> ## Documentation Index
> Fetch the complete documentation index at: https://opensandbox-oc-s-762ac928075c46d2828bcb22.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Session Result

Get the result of a completed session. The platform reads `/tmp/agent_result.json` from the sandbox.

Returns `409` if the session is still running.

<ParamField path="agentId" type="string" required>
  Agent ID
</ParamField>

<ParamField path="id" type="string" required>
  Session ID
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": { "pr_url": "https://github.com/acme/backend/pull/43" },
    "completed_at": "2026-04-09T10:35:00Z"
  }
  ```

  ```json 409 theme={null}
  {
    "error": {
      "type": "conflict",
      "message": "Session still running"
    }
  }
  ```
</ResponseExample>
