Create video project
Create a new video project in the connected channel and return its projectId and canonical /edit deep link. Pass editMode to open an editor session immediately. Costs 0 credits.
Request examples
curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/projects" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"title": "Why Every AI Agent Breaks in Production",
"editMode": "auto"
}'const response = await fetch("https://hitfactorapp.com/api/v1/editor/projects", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
},
body: JSON.stringify({
"title": "Why Every AI Agent Breaks in Production",
"editMode": "auto"
}),
})
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_create_project",
"arguments": {
"title": "Why Every AI Agent Breaks in Production",
"editMode": "auto"
}
}
}'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.
titlestringminLength: 1maxLength: 240editMode"auto" | "scripted" | "freestyle"Response (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
projectIdstringrequiredtitlestringrequirededitUrlstring (uri)requiredreplayedbooleanrequiredsessionIdstringnullablesessionStatus"CREATED" | "TRANSCRIBING" | "READY" | "FAILED"nullableeditVersionintegernullablemin: -9007199254740991max: 9007199254740991editMode"auto" | "scripted" | "freestyle"nullableExample 200 response
{
"data": {
"projectId": "proj_01j9example0000000000000",
"title": "Why Every AI Agent Breaks in Production",
"editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit",
"replayed": false,
"sessionId": "edsess_01j9example0000000000000",
"sessionStatus": "CREATED",
"editVersion": -9007199254740991,
"editMode": "auto"
},
"meta": {
"requestId": "req_01j9example0000000000000",
"creditsCharged": 1,
"creditsRemaining": 499,
"replayed": false
}
}Error responses
400invalid_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited