Revert computer state to step

POST/v1/threads/{threadId}/steps/{stepId}/revert

Restore the current computer state to the snapshot captured at a specific step.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
threadIdpathstringYesThread ID
stepIdpathstringYesThread step ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
historyActionTyperevert | reapplyNo—
revertedChangeStepIdstringNo—
revertedFilePathstringNo—
revertedFileNamestringNo—

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Thread computer reverted to step stateapplication/json
FieldTypeRequiredDescription
threadobjectNo—
thread.idstringNoUnique identifier.
thread.userIdstringNoUser ID.
thread.organizationIdstringNo—
thread.createdByUserIdstringNo—
thread.projectIdstringNoProject ID.
thread.environmentIdstringNoComputer ID.
thread.agentIdstringNoAgent ID.
thread.titlestringNoDisplay title.
thread.taskstringNo—
thread.appIdstringNo—
thread.statusactive | running | permission_asked | completed | failed | archived | cancelled | deletedNoCurrent lifecycle status.
thread.contextIdstringNo—
thread.contextNamestringNo—
thread.messageCountintegerNo—
thread.lastMessageAtstringNo—
thread.lastMessagePreviewstringNo—
thread.inputTokensintegerNo—
thread.outputTokensintegerNo—
thread.cacheTokensintegerNo—
thread.totalTokensintegerNo—
thread.agentCostnumberNo—
thread.agentCostUsdnumberNo—
thread.environmentCostnumberNo—
thread.environmentCostUsdnumberNo—
thread.totalCostnumberNo—
thread.totalCostUsdnumberNo—
thread.agentCTintegerNo—
thread.environmentCTintegerNo—
thread.totalCTintegerNo—
thread.environmentMinutesnumberNo—
thread.environmentStorageGBnumberNo—
thread.attachmentsobject[]No—
thread.metadataobjectNoFree-form metadata object.
thread.teamExecutionobjectNo—
thread.teamExecution.modeteamNo—
thread.teamExecution.teamAgentIdstringNo—
thread.teamExecution.teamAgentNamestringNo—
thread.teamExecution.orchestratorobjectNo—
thread.teamExecution.orchestrator.agentIdstringNoAgent ID.
thread.teamExecution.orchestrator.agentNamestringNo—
thread.teamExecution.orchestrator.claudeAgentNamestringNo—
thread.teamExecution.subagentsobject[]No—
thread.teamExecution.subagents[].agentIdstringNoAgent ID.
thread.teamExecution.subagents[].agentNamestringNo—
thread.teamExecution.subagents[].claudeAgentNamestringNo—
thread.subagentActivityobject[]No—
thread.subagentActivity[].agentIdstringNoAgent ID.
thread.subagentActivity[].agentNamestringNo—
thread.subagentActivity[].claudeAgentNamestringNo—
thread.subagentActivity[].eventCountintegerNo—
thread.subagentActivity[].lastActiveAtstringNo—
thread.subagentActivity[].teamAgentIdstringNo—
thread.subagentActivity[].teamAgentNamestringNo—
thread.environmentNamestringNo—
thread.agentNamestringNo—
thread.agentPhotoUrlstringNo—
thread.agentAvatarUrlstringNo—
thread.startedAtstringNoISO 8601 timestamp.
thread.completedAtstringNoISO 8601 timestamp.
thread.durationstringNo—
thread.queuedInBatchbooleanNo—
thread.batchJobIdstringNo—
thread.admissionReasonstringNo—
thread.createdAtstringNoISO 8601 timestamp.
thread.updatedAtstringNoISO 8601 timestamp.
environmentIdstringNoComputer ID.
snapshotIdstringNoSnapshot ID.
revertStepIdstringNo—
revertedToStepIdstringNo—
revertedChangeStepIdstringNo—
Revert computer state to step
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow