Skip to content

POST /api/v1/runs

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

Launch Run

validate, create a queued run, stage the fixture, enqueue the job.

Auth: Authorization: Bearer <token> required

Terminal window
curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/runs" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"allow_regenerate":false,"entity":"generated_articles","guid":31567,"mode":"live","params":{},"pipeline_id":"generate"}'
{
"createtime": "2026-09-03T02:14:04Z",
"current_step": "make_article_structure",
"entity_guid": 31567,
"entity_name": "generated_articles",
"guid": 1842,
"metrics": {
"llm_calls": 11
},
"mode": "live",
"pipeline_id": "generate",
"started_at": "2026-09-03T02:14:05Z",
"started_by": "agent@entherium.dev",
"status": "running",
"steps_done": 7,
"steps_total": 18,
"trigger": "api",
"updatetime": "2026-09-03T02:19:40Z"
}

PipelineRunRead — Successful Response

FieldTypeDescription
createtimestring
current_stepstring | null (opt.)
entity_guidinteger
entity_namestring
errorstring | null (opt.)
error_stepstring | null (opt.)
finished_atstring | null (opt.)
guidinteger
metricsobject (opt.)
modestring
pipeline_idstring
started_atstring | null (opt.)
started_bystring | null (opt.)
statusstring
steps_doneinteger
steps_totalinteger
triggerstring
updatetimestring
ParameterInRequiredTypeDefaultConstraintsDescription
Idempotency-Keyheadernostring—uuidOptional.
FieldTypeRequiredDescription
allow_regeneratebooleanno
entitystringyes
guidintegeryes
mode"live" | "mock" | "replay"no
paramsobjectno
pipeline_idstringyes
pipeline_variantstring | nullno
pipeline_versionstring | nullno
stepsarray of string | nullno

Example:

{
"allow_regenerate": false,
"entity": "generated_articles",
"guid": 31567,
"mode": "live",
"params": {},
"pipeline_id": "generate"
}
CodeMeaningBody
401Missing or invalid authentication credentialsErrorResponse
409The record already generated successfully and allow_regenerate is false, or the entity is lockedErrorResponse
422Validation ErrorHTTPValidationError
429Agent token: the concurrent-run cap for this token is reachedErrorResponse

Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.