Skip to content

Export final MP4

Queue an asynchronous final MP4 export render of an editor session. Poll the returned operationId (GET /api/v1/operations/{operationId}) for the signed downloadUrl and canonical /edit link upon completion. Enforces a per-organization GPU export concurrency slot. Costs 10 credits (0 credits charged on failure or cancellation).

POSThttps://hitfactorapp.com/api/v1/editor/export
MCP tooleditor_exportCost10 creditsModeAsync (202 Accepted)Scopeeditor:writeChannel syncNot required

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/export" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -H "Idempotency-Key: req_2026_001" \
  -d '{
  "sessionId": "edsess_01j9example0000000000000"
}'

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
webhookUrlstring (uri)
maxLength: 2048

Response (202 Accepted)

Returns HTTP 202 immediately with an operationId and pollUrl. Poll GET /operations/{operationId} (0 credits) or pass webhookUrl to receive the finished payload.

operationIdstringrequired
status"queued"required
pollUrlstringrequired
Example 202 response
{
  "data": {
    "operationId": "apiop_01j9example0000000000000",
    "status": "queued",
    "pollUrl": "/api/v1/operations/apiop_01j9example0000000000000"
  },
  "meta": {
    "requestId": "req_01j9example0000000000000",
    "creditsCharged": 1,
    "creditsRemaining": 499,
    "replayed": false
  }
}

Completed operation result

When the async operation reaches status: "succeeded", this schema is returned inside data.result on GET /operations/{operationId} and webhook deliveries.

exportAssetIdstringrequired
sessionIdstringrequired
projectIdstringrequirednullable
status"COMPLETE"required
editVersionintegerrequired
min: -9007199254740991max: 9007199254740991
durationSecondsnumberrequirednullable
downloadUrlstring (uri)required
expiresAtstringrequired
editUrlstring (uri)requirednullable
Example completed result
{
  "exportAssetId": "example_exportAssetId",
  "sessionId": "edsess_01j9example0000000000000",
  "projectId": "proj_01j9example0000000000000",
  "status": "COMPLETE",
  "editVersion": -9007199254740991,
  "durationSeconds": 0.85,
  "downloadUrl": "https://r2.hitfactorapp.com/exports/export.mp4",
  "expiresAt": "2026-12-02T20:00:00.000Z",
  "editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit"
}

Error responses

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