Skip to content
Console

Manage jobs

Terminal window
curl "https://api.avflow.dev/v1/jobs?limit=20&page=1&status=running&q=relay" \
-H "Authorization: Bearer ${AVFLOW_API_KEY}"
ParameterDefaultDescription
limit20Page size (1–100)
page1Page number (1-based)
statusFilter by job status (running, completed, failed, etc.)
qSubstring match on job name
{
"jobs": [
{
"id": "job_abc123",
"name": "livekit-mix",
"status": "running",
"submittedAt": "2026-06-10T12:00:00Z",
"startedAt": "2026-06-10T12:00:05Z",
"endedAt": null
}
],
"page": 1,
"limit": 20,
"total": 42
}

The list includes active and ended jobs. Each entry is a summary (id, name, status, timestamps) — no job spec and no usage. Use Get a job for the full definition and live metrics.

Terminal window
curl "https://api.avflow.dev/v1/jobs/my-job" \
-H "Authorization: Bearer ${AVFLOW_API_KEY}"

Returns the full job definition plus status and componentStatus. For a running job, the response also includes a usage object with cumulative per-component metrics:

{
"name": "my-job",
"status": "running",
"sources": [ ],
"nodes": [ ],
"sinks": [ ],
"componentStatus": { },
"usage": {
"jobDurationSec": 120,
"components": [
{
"name": "room_src",
"role": "source",
"type": "livekit",
"values": { "source": { "videoMillis": 120000 } }
}
]
}
}

Ended jobs return the submitted spec and final status without usage.

Terminal window
curl -X DELETE "https://api.avflow.dev/v1/jobs/my-job" \
-H "Authorization: Bearer ${AVFLOW_API_KEY}"

Stops the job and marks it as completed.