Skip to main content
POST
Restart a hosted agent
Resets a hosted agent to a clean state. Use it when a sandbox is stuck, knowing that in-flight work is discarded. See Coding agents for agent setup. Every conversation of the agent starts fresh and its sandbox stops; the next message cold-starts it. Work in flight is lost.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required

Response

Restart requested

success
boolean