> ## Documentation Index
> Fetch the complete documentation index at: https://hub.hcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resume a session

> Continue a paused session.

Resumes a previously paused session. The agent picks up exactly where it left off.

**Returns** `202 Accepted`. The resume command is delivered asynchronously.

***

## Path parameters

<ParamField path="id" type="string" required>
  The session ID.
</ParamField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/resume \
    -H "Authorization: Bearer $HAI_API_KEY"
  ```

  ```python Python theme={null}
  from hai_agents import Client

  client = Client()

  client.sessions.resume_session(session_id)
  ```

  ```typescript TypeScript theme={null}
  import { HaiAgentsClient } from "hai-agents";

  const client = new HaiAgentsClient();

  await client.sessions.resumeSession({ id: sessionId });
  ```
</CodeGroup>

***

## Notes

* Resuming a session that is already `running` is accepted (`202`) and safe.
* You can also resume a paused session implicitly by [sending a message](/computer-use-agents/sessions/send-messages): the platform auto-resumes before delivering the message. This applies to `paused` sessions only; messages to a [`queued`](/computer-use-agents/observe-and-steer#queued-sessions) session are buffered until it starts.

***

## Errors

| Status | Cause                                                                                                                           |
| ------ | ------------------------------------------------------------------------------------------------------------------------------- |
| `404`  | Session not found, or you don't have access.                                                                                    |
| `409`  | The session is [`queued`](/computer-use-agents/observe-and-steer#queued-sessions) (nothing is running yet) or already finished. |
