Hanzo AI
OpenapiAgents

Create pause

Asks a running session to pause.

POST /v1/agents/sessions/{id}/pause

Addresshttps://api.hanzo.ai/v1/agents/sessions/{id}/pause
MethodPOST
Operationpost_agents_sessions_by_id_pause
AuthAuthorization: Bearer $HANZO_API_KEY

Asks a running session to pause. Recorded durably, and forwarded to the durable-execution engine when the session is task-backed.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the session to steer, from the path.
idbodystring—ID is the session to steer, from the path.
messagebodystring—Message is free text for the running agent, up to 16 KiB.
payloadbodyany—Payload is a structured argument for the command: any valid JSON up to 64 KiB, scanned for credentials before it is stored (a hit refuses the command with 422…

Response

StatusBodyMeaning
200controlResultok

200 body — 10 fields.

FieldInTypeAlwaysDescription
commandbodystring—Command is the verb that was recorded: pause, resume, stop or message.
eventbodyeventView—
event.actorbodystring—Actor is who produced the turn.
event.createdAtbodystring—CreatedAt is when the turn was recorded, RFC 3339 in UTC to the second.
event.idbodystring—ID is the event's own handle, minted as "evt_" + 32 hex characters.
event.kindbodystring—Kind is what the turn IS, from a closed six: message (a model turn), tool-call, spawn (a subagent started), log, status, control (a steering command the…
event.payloadbodyany—Payload is the turn's body, embedded as JSON rather than as a string — whatever the writer sent, up to 64 KiB, checked for well-formedness and scanned for…
event.seqbodyinteger—Seq is the turn's position in this session's log: monotonic from 1, assigned by the store inside the insert, and unique PER SESSION rather than globally.
event.sessionIdbodystring—SessionID is the session this turn belongs to.
forwardedbodyboolean—Forwarded is whether the command also reached the durable-execution engine.

Failure carries the platform error shape — see Errors.

Examples

hanzo agents sessions pause <id>

Agents API · All Hanzo APIs · Interactive reference

How is this guide?

On this page