Skip to main content
POST
/
ai-agent
/
undo
Undo last AI agent run
curl --request POST \
  --url https://app.myhero.so/ai-agent/undo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionId": "<string>"
}
'
{
  "success": true,
  "hasUndo": true,
  "results": [
    {
      "domain": "<string>",
      "action": "<string>",
      "success": true,
      "error": "<string>"
    }
  ],
  "changes": [
    {
      "id": "<string>",
      "name": "<string>",
      "actions": [
        "<string>"
      ],
      "snapshotId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
sessionId
string
required
Minimum string length: 1

Response

200 response

success
boolean
required
Example:

true

hasUndo
boolean
required
results
object[]
required
changes
object[]