Talentino Docs
API ReferencePipeline API (internal)

Start Import Activity processing

POST/process-import-activity

Starts the ImportActivityStateMachine for an Import Activity batch. The handler validates the Authorization header against the Redis token import_activity_cookie:{import_activity_id}, loads the Import Activity row, launches the state machine (passing the row's import_status and import_method into the execution input), and — only when the current import_status is not_started — advances it to in_progress (existing awaiting_validation / validated statuses are preserved). Credit locking is not yet wired for this route.

Authorization

resourceToken
AuthorizationBearer <token>

Per-resource bearer token. The Authorization header value must exactly match the short-lived token the control plane stored in Redis under the resource-scoped key for the id in the request body (job_match_cookie:{id}, resume_cookie:{id}, or import_activity_cookie:{id}). This is an application-level check; there is no API Gateway authorizer.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/process-import-activity" \  -H "Content-Type: application/json" \  -d '{    "import_activity_id": 89  }'
{  "message": "Processing started for import_activity_id: 89"}
{  "message": "string"}
{  "message": "Unauthorized"}
{  "message": "Resume not found",  "resume_id": 0,  "import_activity_id": 0}
{  "message": "Internal server error"}