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).
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"
}'const response = await fetch("https://hitfactorapp.com/api/v1/editor/export", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"sessionId": "edsess_01j9example0000000000000"
}),
})
const { data, meta } = await response.json()
console.log(data, meta)curl -sS -X POST "https://hitfactorapp.com/api/v1/mcp" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "editor_export",
"arguments": {
"sessionId": "edsess_01j9example0000000000000",
"requestId": "req_2026_001"
}
}
}'Parameters
Idempotency-KeyheaderstringUnique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.
maxLength: 255Request body
Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.
sessionIdstringrequiredminLength: 1webhookUrlstring (uri)maxLength: 2048Response (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.
operationIdstringrequiredstatus"queued"requiredpollUrlstringrequired{
"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.
exportAssetIdstringrequiredsessionIdstringrequiredprojectIdstringrequirednullablestatus"COMPLETE"requirededitVersionintegerrequiredmin: -9007199254740991max: 9007199254740991durationSecondsnumberrequirednullabledownloadUrlstring (uri)requiredexpiresAtstringrequirededitUrlstring (uri)requirednullable{
"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_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited