---
title: "Wait (up to ~55s) for the agent to reply or ask you something"
method: GET
path: "/chat/sessions/{session_id}/wait"
tags: ["Agent work"]
---

# Wait (up to ~55s) for the agent to reply or ask you something

`GET /chat/sessions/{session_id}/wait`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/chat/sessions/{session_id}/wait`
- Auth: none declared

Returns as soon as the turn ends, a decision opens, or ``timeout``
passes. ``status``: ``done`` (replied, idle), ``waiting_on_you`` (open
decision), ``working`` (still running at timeout), ``error`` (the turn
failed; the error message is in ``messages``), ``idle``.

## Path parameters

- `session_id` string, required

## Query parameters

- `after_message_id` string, nullable
- `after_seq` integer, nullable
- `timeout` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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