Steer
Resume a session
Resume a paused session from where the agent stopped.
POST
/
api
/
v2
/
sessions
/
{id}
/
resume
from hai_agents import Client
client = Client()
client.sessions.resume_session(session_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.sessions.resumeSession({ id: sessionId });
curl -X POST https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/resume \
-H "Authorization: Bearer $HAI_API_KEY"
Behavior
Resuming arunning session is accepted and safe. Sending a message to a paused session also resumes it.
Path parameters
string
required
The session ID.
Response
202 Accepted. The command is delivered asynchronously.
from hai_agents import Client
client = Client()
client.sessions.resume_session(session_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.sessions.resumeSession({ id: sessionId });
curl -X POST https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/resume \
-H "Authorization: Bearer $HAI_API_KEY"
Errors
| Status | Cause |
|---|---|
404 | Not found, or not in your organization. |
409 | The session is queued (nothing is running yet) or already finished. |
Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
client.sessions.resume_session(session_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.sessions.resumeSession({ id: sessionId });
curl -X POST https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/resume \
-H "Authorization: Bearer $HAI_API_KEY"