Skip to content

Undo HyperFrames VFX

Undo the latest agent VFX or placement change for the session (optionally filtered to a specific assetId or placementOid). Refuses if a later edit modified the target or an active agent run owns it. Costs 0 credits.

POSThttps://hitfactorapp.com/api/v1/editor/vfx/undo
MCP tooleditor_undo_vfxCost0 creditsModeSync (200 OK)Scopeeditor:writeChannel syncNot required

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/vfx/undo" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -d '{
  "sessionId": "edsess_01j9example0000000000000",
  "assetId": "edasset_01j9example0000000000000",
  "placementOid": "example_placementOid"
}'

Parameters

Idempotency-Keyheaderstring

Unique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.

maxLength: 255

Request body

Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.

sessionIdstringrequired
minLength: 1
assetIdstring
minLength: 1maxLength: 100
placementOidstring
minLength: 1maxLength: 100

Response (200 OK)

Every successful response wraps the payload in data alongside billing and request metadata in meta.

undoneobject[]required
Show item fields
idstringrequired
opstringrequired
assetIdstringrequired
editVersionintegerrequired
min: -9007199254740991max: 9007199254740991
editUrlstring (uri)requirednullable
Example 200 response
{
  "data": {
    "undone": [
      {
        "id": "example_id",
        "op": "example_op",
        "assetId": "edasset_01j9example0000000000000"
      }
    ],
    "editVersion": -9007199254740991,
    "editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit"
  },
  "meta": {
    "requestId": "req_01j9example0000000000000",
    "creditsCharged": 1,
    "creditsRemaining": 499,
    "replayed": false
  }
}

Error responses

400invalid_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited