Skip to content

Get async operation

Get the status and result of an async operation. Costs 0 credits.

GEThttps://hitfactorapp.com/api/v1/operations/{operationId}
MCP tooloperation_getCost0 creditsModeSync (200 OK)ScopeAny keyChannel syncNot required

Request examples

curl -sS "https://hitfactorapp.com/api/v1/operations/apiop_01j9example0000000000000" \
  -H "x-api-key: $HITFACTOR_API_KEY"

Parameters

operationIdpathstringrequired
minLength: 1

Response (200 OK)

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

operationIdstringrequired
toolNamestringrequired
statusenum (5 values)required
"queued""running""succeeded""failed""canceled"
resultanyrequirednullable
errorobjectrequirednullable
Show object fields
codestringrequired
messagestringrequired
createdAtstringrequired
startedAtstringrequirednullable
completedAtstringrequirednullable
expiresAtstringrequirednullable
Example 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_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited