Get async operation
Get the status and result of an async operation. Costs 0 credits.
Request examples
curl -sS "https://hitfactorapp.com/api/v1/operations/apiop_01j9example0000000000000" \
-H "x-api-key: $HITFACTOR_API_KEY"const response = await fetch("https://hitfactorapp.com/api/v1/operations/apiop_01j9example0000000000000", {
headers: {
"x-api-key": process.env.HITFACTOR_API_KEY!,
},
})
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": "operation_get",
"arguments": {
"operationId": "apiop_01j9example0000000000000"
}
}
}'Parameters
operationIdpathstringrequiredminLength: 1Response (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
operationIdstringrequiredtoolNamestringrequiredstatusenum (5 values)required"queued""running""succeeded""failed""canceled"resultanyrequirednullableerrorobjectrequirednullableShow object fields
codestringrequiredmessagestringrequiredcreatedAtstringrequiredstartedAtstringrequirednullablecompletedAtstringrequirednullableexpiresAtstringrequirednullableExample 200 response
{
"data": {
"operationId": "apiop_01j9example0000000000000",
"toolName": "generate_script",
"status": "queued",
"result": null,
"error": {
"code": "example_code",
"message": "example_message"
},
"createdAt": "2026-12-01T20:00:00.000Z",
"startedAt": "2026-12-01T20:00:02.000Z",
"completedAt": "2026-12-01T20:00:28.000Z",
"expiresAt": "2026-12-02T20:00:00.000Z"
},
"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