メインコンテンツまでスキップ

POST /jobs/{job_id}/confirm

Confirm a pending job, deduct credits, and queue it for processing.

Request​

curl -X POST https://your-domain.com/api/v1/jobs/job-abc123/confirm \
-H "X-API-Key: chu_live_xxxxxxxx"

Response​

{
"job_id": "job-abc123",
"status": "queued",
"remaining_points": 9950
}

Errors​

StatusMeaning
402Insufficient credits — purchase more at /payment
404Job not found or doesn't belong to you
400Job is not in pending state (already confirmed or cancelled)