Cancel the agent turn in flight.
pydo.harness
Generated on 6 Nov 2026
from pydo version
v0.45.0
DigitalOcean Harness Runtime API under /v2/agents.
An environment is a
reusable configuration that defines what an agent needs to do work; starting
a session from an environment provisions an isolated sandbox. Define an
environment with a YAML environment spec, or save it as an Environment Config
and create sessions from {name, config_id}.
Environment Configs (/v2/agents/configs) are immutable team-scoped
configurations. Soft-delete releases the active name while keeping
config_id resolvable for existing sessions; clone copies a sanitized
environment under a new name (credentials are never copied).
Checkpoints capture live sandbox machine state for fork and in-place
rollback. Templates (/v2/agents/templates) manage team custom sandbox
templates and their build history.
Triggers (/v2/agents/triggers) fire an agent run on a webhook delivery or
cron schedule, each firing recorded as an execution. The session event feed
(GET /v2/agents/sessions/{session_id}/events) is a Server-Sent Events
stream, and port-forward (GET /v2/agents/sessions/{session_id}/port-forward/{port})
opens a WebSocket tunnel to a guest port.
POST /v2/agents/sessions/{session_id}/cancel stops the turn in flight.
GET /v2/agents/image-messages lists sandbox-image notices on the team’s
sessions and checkpoints. POST /v2/agents/auth/{provider} starts the
interactive provider login a session uses; github is the provider served
today. Connections for that login are under /v2/agents/auth/{provider}/connections.
Persistent workspaces (/v2/agents/workspaces) are in public preview and are
described under Harness Runtime Workspaces [Public Preview].
Cancel a staged workspace transfer.
CancelExecution ends a running execution and frees the trigger’s in-flight slot.
Finalize a staged upload.
Clone an Environment Config under a new name.
Create an Environment Config (environment spec + optional Insights opt-in).
Start an interactive provider login for the team.
Create a provider connection for one actor.
CreateCheckpoint captures the session’s live sandbox state as a durable checkpoint.
ForkSession creates child sessions from a checkpoint of this session.
SendInput delivers a user chat message into the session.
Mint presigned PUT URLs for one or more multipart upload parts.
Start a staged (large-file) workspace transfer.
Upload a file or tar archive into the session’s sandbox workspace.
CreateSession provisions a sandbox and starts a Harness Runtime session.
CreateTemplate creates a team custom template and kicks a build.
CreateTrigger creates a webhook or cron trigger.
Create a persistent workspace.
Soft-delete an Environment Config.
Revoke a provider connection.
DeleteCheckpoint removes a checkpoint and its underlying machine-state capture.
DestroySession tears down the sandbox and marks the session DESTROYED.
DeleteTemplate deletes a team custom template.
DeleteTrigger soft-deletes a trigger.
Delete a persistent workspace.
Read sandbox-image notices for one checkpoint.
Get an active Environment Config and its environment spec.
Check whether a provider login has finished.
Read one provider connection.
GetCheckpoint returns the current snapshot of a checkpoint.
StreamSessionEvents opens the session’s Server-Sent Events feed.
Read sandbox-image notices for one session.
GetIngressURL returns the public HTTPS URL of the session’s OpenHands Agent Server.
PortForwardSession opens a WebSocket tunnel to a guest TCP port.
Download a file or tar archive from the session’s sandbox workspace.
Get the status of a staged workspace transfer.
GetSession returns the current snapshot of a session.
GetTemplateBuild returns a single template build.
GetTemplate returns a team custom template by public id.
GetTriggerBySession reverse-looks-up the trigger that produced or binds a session.
GetTriggerExecution returns a single execution, including its payload.
GetTrigger returns a single trigger by id.
Get a persistent workspace.
List the sessions created from one Environment Config.
List active Environment Configs for the caller’s team.
List sandbox-image notices for the team.
List the team’s connections for a provider.
ListReusableSessions lists the team’s PAUSED sessions for the reuse picker.
ListCheckpoints enumerates a session’s checkpoints, newest first.
ListSandboxSizes returns the customer-selectable sandbox (microVM) size catalog.
ListSessions enumerates sessions for the caller’s tenant.
ListTemplateBuilds returns build history for a template.
ListTeamTemplates returns the caller’s team custom templates.
ListTriggerExecutions returns a trigger’s execution history.
ListTriggers enumerates the calling team’s triggers.
ListWebhookProviders lists supported webhook providers for the create-trigger UI.
List the team’s persistent workspaces.
Start a fresh login for an existing connection.
ResolveHITL records the user’s decision on a pending HITL request.
PauseSession freezes the session’s microVM sandbox.
ResumeSession explicitly thaws a PAUSED session’s microVM sandbox.
ExecInSandbox runs a one-shot command inside the session’s sandbox.
RotateTriggerSecret issues a new webhook secret.
ReceiveTriggerWebhook accepts a signed delivery from an external system.
RollbackToCheckpoint rewinds a session to a checkpoint.
PatchSession updates session-scoped settings on an existing session.
UpdateTemplate updates a team template’s source and kicks a new build.
UpdateTrigger updates, pauses, or re-enables a trigger.
ValidatePolicy checks a manifest’s tool-permission policy against the agent’s capabilities without creating a session.