Skip to content

Job Endpoints

Submit Job

POST /api/v1/jobs
Authorization: Bearer ccn_sk_...
Content-Type: application/json

{
  "workflow_id": "<id>",
  "inputs": {
    "13.text": "ocean sunrise",
    "5.seed": -1
  }
}

Job Status

GET /api/v1/jobs/<job_id>
Authorization: Bearer ccn_sk_...

Response includes:

  • status (queued, running, complete, failed)
  • progress (0–1)
  • preview image (base64, when running)
  • smart_messages for human‑readable updates

Job List

GET /api/v1/jobs?limit=50&offset=0
Authorization: Bearer ccn_sk_...

Download Output

GET /api/v1/jobs/<job_id>/output
Authorization: Bearer ccn_sk_...

If R2 cloud storage is enabled, pass ?url=1 to receive a presigned download URL instead of the binary response.