Skip to main content

Nova API — /api/pipelines

The operations Nova tags public under /api/pipelines. Generated from reference-src/nova-openapi.json.

GET /api/pipelines​

Operation id pipelines_list: in Python client.call("pipelines_list", …), on the command line stardelt api pipelines_list.

The pipelines the caller may see: their groups' pipelines, and every pipeline for an administrator. A pipeline without spec.ownerGroup is administrators-only. state is one of loading, paused, running, failed, succeeded, idle; loaded is false while Airflow has no DAG for a new pipeline yet. Answers Cache-Control: no-store.

Responses

CodeDescription
200The visible pipelines, sorted by name
401No token to sign in with
502The scheduler or the cluster did not answer
503No cluster connection, or the scheduler is not configured

POST /api/pipelines​

Operation id pipelines_create: in Python client.call("pipelines_create", …), on the command line stardelt api pipelines_create.

Schedule a statement or a published notebook: create a Pipeline for one of the caller's owner groups (runAs: pipeline-<group>), validated so the loader accepts it. A body gives exactly one of a non-empty sql and a notebook ({ name, objectVersion, params }) — both or neither is 400 give a statement, a notebook, a dbt run or a quality run. A body may instead give tasks ([{ name, sql | notebook | dbt | quality, dependsOn }], 1 to 30 tasks, each with exactly one source, at most 8 dependencies): tasks together with sql or notebook is 400 give a statement, a notebook or a task list; a task name outside ^[a-z0-9][a-z0-9_-]{0,62}$, a name used twice, more than 30 tasks, a dependency on itself or on a task of another pipeline, and a cycle are 400 with a sentence that names the task. Refusals, in this order: a name outside 1 to 40 lower-case letters, digits and dashes starting with a letter 400; a group the caller is not a member of 403 (you are not a member of the group <g> — administrators included); a group without a ready ServicePrincipal 409 with the principals route's message; an empty, over-20,000-character or NUL-carrying statement 400; a parameter name, a parameter count or value, or a ${…} placeholder the loader cannot fill 400; a notebook name outside ^[A-Za-z0-9][A-Za-z0-9._ -]{0,127}\.ipynb$ 400, more than 32 notebook parameters, a value over 256 characters or NUL, or a params JSON text over 4096 characters 400, and a version that is not in the store 400 that notebook version does not exist in group <g> (503 when NOVA_S3_* is unset, 502 when S3 does not answer); a retry, wait, time-limit or run-mode option out of range 400; a cron that is not five in-range fields or fires more often than every five minutes 400; an unknown IANA timezone 400; a name that already exists 409; more than ten creations per user per hour 429. options and params are optional: an omitted option keeps its default (1 retry after 5 minutes, a 120-minute time limit, Forbid); params are the statement's ${params.<name>} values, a notebook's values are in notebook.params. Airflow is not needed: the resource is the source of truth, and the answer is the new pipeline with loaded: false, state: "loading". In a stage whose NOVA_STAGE_KIND is prod, a body that schedules a notebook is refused with 400 "In production a notebook comes from Git. Deploy it with a bundle." unless it carries a bundle deploy stamp (provenance, or one already on the pipeline); other stages and statement schedules are unaffected. The audit line carries the statement's length, the cron and, for a notebook, the group, the file name and the pinned version — never the statement and never a parameter value. Answers Cache-Control: no-store.

Request body

FieldTypeRequiredDefaultDescriptionConstraints
descriptionstring (nullable)NoOne line saying what the pipeline does (spec.description); at most 200 characters. Omitted or blank writes none.
namestringYes
notebookobjectNoA published notebook version to run instead of a statement.
notebook.connectionstring (nullable)NoThe Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows.
notebook.namestringYes<group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named.
notebook.objectVersionstringYesThe S3 object version, never a branch or a tag: exactly the bytes a person published.
notebook.paramsobject (map of string)NoParameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string.
notifyobjectNoWho is told when a run ends (spec.notify). Omitted writes none; every name must be a destination of ownerGroup.
notify.onFailurearray of stringNoDestinations told when the run fails, after the last retry.
notify.onRecoveredarray of stringNoDestinations told on the first success after a failure.
notify.onSuccessarray of stringNoDestinations told when the run succeeds.
optionsobjectNoRetries, the wait between them, the time limit and the run mode; omitted fields keep the defaults.
options.backoffMinutesinteger (nullable)NoThe wait between attempts, 1 to 60 minutes.format int64
options.concurrencystring (nullable)NoForbid (one run at a time, the default) or Allow (runs side by side).
options.retriesinteger (nullable)NoExtra attempts after a failure, 0 to 5.format int64
options.timeoutMinutesinteger (nullable)NoThe longest a whole run may take, 1 to 720 minutes.format int64
ownerGroupstringYes
paramsobject (map of string)NoValues for ${params.<name>} in the statement; at most 16. A notebook's values are in notebook.params, not here.
provenanceobjectNoWhich bundle, target and commit this pipeline is deployed from (stardelt bundle deploy).
provenance.bundlestringYesThe bundle's name: 3 to 40 lower-case letters, digits and dashes.
provenance.expiresAtstring (nullable)NoWhen the preview copy is due to be removed, RFC 3339. At most 31 days after the deploy.
provenance.previewstring (nullable)NoThe preview this deploy belongs to (stardelt bundle deploy --preview ID). Omitted on a normal deploy; set together with expires_at.
provenance.repositorystring (nullable)NoThe bundle's repository as an https://host/path address, so a later stage can link the pull request that promotes a commit. Omitted when the bundle's checkout names none.
provenance.revisionstring (nullable)NoThe commit the bundle was read at: 7 to 64 hex digits, with -dirty appended when the working tree had uncommitted changes. Omitted when the bundle is not in a Git checkout.
provenance.targetstringYesThe target of the bundle: 1 to 32 lower-case letters, digits and dashes.
publishstringNodirect, wap, proposal
scheduleobjectNoA cron expression and its IANA zone; both required when a schedule object is sent.
schedule.cronstringYes
schedule.timezonestringYes
sqlstringNoThe statement to run; exactly one of this and notebook is given.
tasksarray of object (nullable)NoA whole task list instead of one run task: 1 to 30 tasks, each a statement, a pinned notebook, a dbt run or SQL checks, with dependencies. Exclusive with sql and notebook.
tasks[].dbtobject (map of any)NoA dbt run instead of a statement or a notebook: exactly one of the six.
tasks[].dbt.batchesarray of string (nullable)No1 to 8 selectors, run in order (config.batches as the JSON array text).
tasks[].dbt.projectstringYesA directory name under /opt/dbt/projects in the tool image.
tasks[].dbt.selectstring (nullable)No
tasks[].dbt.threadsinteger (nullable)No1 to 16; omitted is 4.min 0; format int32
tasks[].dbt.varsobject (map of string) (nullable)No
tasks[].dependsOnarray of stringNoNames of the tasks that must succeed first; at most 8, each a task of this list.
tasks[].namestringYesUnique within the pipeline: [a-z0-9][a-z0-9_-]{0,62} (the CRD also accepts capitals).
tasks[].notebookobjectNoA published notebook version to run instead: exactly one of the six.
tasks[].notebook.connectionstring (nullable)NoThe Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows.
tasks[].notebook.namestringYes<group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named.
tasks[].notebook.objectVersionstringYesThe S3 object version, never a branch or a tag: exactly the bytes a person published.
tasks[].notebook.paramsobject (map of string)NoParameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string.
tasks[].pythonobject (map of any)NoA published .py file to run instead.
tasks[].python.filestringYesThe .py file name under the pipeline's ownerGroup, as notebooks_publish stored it.
tasks[].python.objectVersionstringYesThe S3 object version, never a branch or a tag.
tasks[].python.paramsobject (map of string)NoThe run's parameters, written as the task's config.params JSON object string.
tasks[].qualityobjectNoSQL assertions instead of a statement, a notebook or a dbt run: exactly one of the six.
tasks[].quality.checksarray of objectYes1 to 50 SQL assertions; a check passes when its query returns no rows.
tasks[].quality.checks[].namestringYes[A-Za-z0-9][A-Za-z0-9_-]{0,62} and unique within the task.
tasks[].quality.checks[].severitystring (nullable)Noerror fails the run, warn only logs it; omitted is error.
tasks[].quality.checks[].sqlstringYesThe assertion: it passes when the query returns no rows.
tasks[].sparkPipelineobjectNoA declared Spark graph instead of a statement, a notebook, a dbt run or SQL checks: exactly one of the six.
tasks[].sparkPipeline.filesobject (map of string)NoThe graph's files, relative path to text; at most 64 files of 64 KiB each, the whole graph at most 256 KiB. spark-pipeline.yml must be one of them.
tasks[].sparkPipeline.fullRefresharray of string (nullable)NoDatasets to rebuild from scratch; 1 to 32 names.
tasks[].sparkPipeline.projectstringYesThe bundle directory that holds spark-pipeline.yml.
tasks[].sparkPipeline.refreshstring (nullable)Noincremental (the default) or full.
tasks[].sqlstringNoThe statement to run; exactly one of this, notebook, python, dbt, quality and sparkPipeline is given.
tasks[].writesarray of stringNoThe tables a sql, spark-pipeline or notebook task writes, as catalog.schema.table; at most 16. spec.publish: wap audits exactly these tables.
triggersarray of object (nullable)NoTables whose update starts the run (spec.triggers). At most one entry, 1 to 10 tables, and not together with schedule; omitted means none.
triggers[].modestring (nullable)No
triggers[].tablesUpdatedarray of stringNo
viewersarray of string (nullable)NoGroups that may read the pipeline without being members (spec.viewers). At most 16, each a group name; omitted writes none. A bundle's pipeline file carries it.

Responses

CodeDescription
201The resource as written
400The name, the statement, the cron or the timezone is invalid
401No token to sign in with
403The caller is not a member of the owner group
409No ready principal for the group, or the name is taken
429More than ten creations in the last hour
502The cluster did not answer
503No cluster connection

POST /api/pipelines/check​

Operation id pipelines_check: in Python client.call("pipelines_check", …), on the command line stardelt api pipelines_check.

What the engine says about a statement, without running it: Nova fills the statement's ${run.date} (today, UTC), ${run.id} (check) and ${params.<name>} placeholders and sends EXPLAIN <statement> to the engine as the caller, under the source nova-schedule-check. It never sends EXPLAIN ANALYZE and never the statement itself. checked: false means this kind of statement cannot be checked here (only select, with, insert, merge, delete, update, values and create … as … are). A refused statement answers 200 with ok: false and the engine's sentence; an engine that does not answer is 502. Refusals before the engine: an empty, over-20,000-character or NUL-carrying statement 400, a parameter table or a placeholder as on create 400. Answers Cache-Control: no-store.

Request body

FieldTypeRequiredDefaultDescriptionConstraints
paramsobject (map of string)NoThe parameters the statement's ${params.<name>} placeholders are filled with.
sqlstringYes

Responses

CodeDescription
200The engine's verdict, or that this statement cannot be checked
400The statement, a parameter or a placeholder is invalid
401No token to sign in with
502The query engine is not reachable

POST /api/pipelines/preview-schedule​

Operation id pipelines_preview_schedule: in Python client.call("pipelines_preview_schedule", …), on the command line stardelt api pipelines_preview_schedule.

The next fire times of a cron in its zone, RFC 3339 with that zone's offset (for example 2026-10-21T03:00:00+02:00), so the Schedule dialog can show what a cadence means before it is saved. A field or a zone as on create (400 with the same sentences); count is 1 to 10, 5 when omitted. Like croniter, a day matches when both day fields are restricted and either matches, and when one is unrestricted and the other matches. A wall-clock time the zone skips at a DST jump is not a run; a time that happens twice is answered with its first occurrence. A cron that can never fire answers fewer runs (at most 366 days are searched), not an error. Answers Cache-Control: no-store.

Request body

FieldTypeRequiredDefaultDescriptionConstraints
countinteger (nullable)NoHow many runs to list, 1 to 10; 5 when omitted.min 0
cronstringYes
timezonestringYes

Responses

CodeDescription
200The next runs in the schedule's zone
400The cron, the timezone or the count is invalid
401No token to sign in with

GET /api/pipelines/principals​

Operation id pipelines_principals: in Python client.call("pipelines_principals", …), on the command line stardelt api pipelines_principals.

The caller's own groups and the pipeline principal of each. principal is pipeline-<group> when a ServicePrincipal of that name with spec.ownerGroup equal to the group exists; ready is its status.ready. message is null when it is ready, otherwise the Ready condition's message (or no status yet), and for a group without a principal the ServicePrincipal to apply (on a make install platform, the make sync-principal NAME=pipeline-<group> GROUP=<group> command). A group without a ready principal cannot schedule. Answers Cache-Control: no-store.

Responses

CodeDescription
200One entry per group of the caller, sorted by group
401No token to sign in with
502The cluster did not answer
503No cluster connection

POST /api/pipelines/validate​

Operation id pipelines_validate: in Python client.call("pipelines_validate", …), on the command line stardelt api pipelines_validate.

Check a pipeline document without writing it: the body is the body of pipelines_create (the document stardelt apply reads). It runs every rule a create runs (the name, the caller's own group, the group's ready principal, exactly one of a statement and a notebook with the rules of its kind, the options, the schedule) and then looks at the name: free means create; a pipeline Nova wrote that the caller may act on, in the same group, means update; a pipeline written outside Nova, someone else's, or in another group is a problem. A body may instead give tasks ([{ name, sql | notebook, dependsOn }], 1 to 30 tasks, each with exactly one of the two, at most 8 dependencies): tasks together with sql or notebook is 400 give a statement, a notebook or a task list; a task name outside ^[a-z0-9][a-z0-9_-]{0,62}$, a name used twice, more than 30 tasks, a dependency on itself or on a task of another pipeline, and a cycle are 400 with a sentence that names the task. A rule that refuses is an answer, ok: false with one sentence in errors, status 200; nothing is written and no creation slot is taken. An accepted document with a schedule lists its next five fire times. In a stage whose NOVA_STAGE_KIND is prod, a body that schedules a notebook is refused with ok: false at 200 ("In production a notebook comes from Git. Deploy it with a bundle.") unless it carries a bundle deploy stamp (provenance, or one already on the pipeline); other stages and statement schedules are unaffected. A cluster or notebook store that does not answer is 502 or 503 as on create. Answers Cache-Control: no-store.

Request body

FieldTypeRequiredDefaultDescriptionConstraints
descriptionstring (nullable)NoOne line saying what the pipeline does (spec.description); at most 200 characters. Omitted or blank writes none.
namestringYes
notebookobjectNoA published notebook version to run instead of a statement.
notebook.connectionstring (nullable)NoThe Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows.
notebook.namestringYes<group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named.
notebook.objectVersionstringYesThe S3 object version, never a branch or a tag: exactly the bytes a person published.
notebook.paramsobject (map of string)NoParameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string.
notifyobjectNoWho is told when a run ends (spec.notify). Omitted writes none; every name must be a destination of ownerGroup.
notify.onFailurearray of stringNoDestinations told when the run fails, after the last retry.
notify.onRecoveredarray of stringNoDestinations told on the first success after a failure.
notify.onSuccessarray of stringNoDestinations told when the run succeeds.
optionsobjectNoRetries, the wait between them, the time limit and the run mode; omitted fields keep the defaults.
options.backoffMinutesinteger (nullable)NoThe wait between attempts, 1 to 60 minutes.format int64
options.concurrencystring (nullable)NoForbid (one run at a time, the default) or Allow (runs side by side).
options.retriesinteger (nullable)NoExtra attempts after a failure, 0 to 5.format int64
options.timeoutMinutesinteger (nullable)NoThe longest a whole run may take, 1 to 720 minutes.format int64
ownerGroupstringYes
paramsobject (map of string)NoValues for ${params.<name>} in the statement; at most 16. A notebook's values are in notebook.params, not here.
provenanceobjectNoWhich bundle, target and commit this pipeline is deployed from (stardelt bundle deploy).
provenance.bundlestringYesThe bundle's name: 3 to 40 lower-case letters, digits and dashes.
provenance.expiresAtstring (nullable)NoWhen the preview copy is due to be removed, RFC 3339. At most 31 days after the deploy.
provenance.previewstring (nullable)NoThe preview this deploy belongs to (stardelt bundle deploy --preview ID). Omitted on a normal deploy; set together with expires_at.
provenance.repositorystring (nullable)NoThe bundle's repository as an https://host/path address, so a later stage can link the pull request that promotes a commit. Omitted when the bundle's checkout names none.
provenance.revisionstring (nullable)NoThe commit the bundle was read at: 7 to 64 hex digits, with -dirty appended when the working tree had uncommitted changes. Omitted when the bundle is not in a Git checkout.
provenance.targetstringYesThe target of the bundle: 1 to 32 lower-case letters, digits and dashes.
publishstringNodirect, wap, proposal
scheduleobjectNoA cron expression and its IANA zone; both required when a schedule object is sent.
schedule.cronstringYes
schedule.timezonestringYes
sqlstringNoThe statement to run; exactly one of this and notebook is given.
tasksarray of object (nullable)NoA whole task list instead of one run task: 1 to 30 tasks, each a statement, a pinned notebook, a dbt run or SQL checks, with dependencies. Exclusive with sql and notebook.
tasks[].dbtobject (map of any)NoA dbt run instead of a statement or a notebook: exactly one of the six.
tasks[].dbt.batchesarray of string (nullable)No1 to 8 selectors, run in order (config.batches as the JSON array text).
tasks[].dbt.projectstringYesA directory name under /opt/dbt/projects in the tool image.
tasks[].dbt.selectstring (nullable)No
tasks[].dbt.threadsinteger (nullable)No1 to 16; omitted is 4.min 0; format int32
tasks[].dbt.varsobject (map of string) (nullable)No
tasks[].dependsOnarray of stringNoNames of the tasks that must succeed first; at most 8, each a task of this list.
tasks[].namestringYesUnique within the pipeline: [a-z0-9][a-z0-9_-]{0,62} (the CRD also accepts capitals).
tasks[].notebookobjectNoA published notebook version to run instead: exactly one of the six.
tasks[].notebook.connectionstring (nullable)NoThe Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows.
tasks[].notebook.namestringYes<group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named.
tasks[].notebook.objectVersionstringYesThe S3 object version, never a branch or a tag: exactly the bytes a person published.
tasks[].notebook.paramsobject (map of string)NoParameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string.
tasks[].pythonobject (map of any)NoA published .py file to run instead.
tasks[].python.filestringYesThe .py file name under the pipeline's ownerGroup, as notebooks_publish stored it.
tasks[].python.objectVersionstringYesThe S3 object version, never a branch or a tag.
tasks[].python.paramsobject (map of string)NoThe run's parameters, written as the task's config.params JSON object string.
tasks[].qualityobjectNoSQL assertions instead of a statement, a notebook or a dbt run: exactly one of the six.
tasks[].quality.checksarray of objectYes1 to 50 SQL assertions; a check passes when its query returns no rows.
tasks[].quality.checks[].namestringYes[A-Za-z0-9][A-Za-z0-9_-]{0,62} and unique within the task.
tasks[].quality.checks[].severitystring (nullable)Noerror fails the run, warn only logs it; omitted is error.
tasks[].quality.checks[].sqlstringYesThe assertion: it passes when the query returns no rows.
tasks[].sparkPipelineobjectNoA declared Spark graph instead of a statement, a notebook, a dbt run or SQL checks: exactly one of the six.
tasks[].sparkPipeline.filesobject (map of string)NoThe graph's files, relative path to text; at most 64 files of 64 KiB each, the whole graph at most 256 KiB. spark-pipeline.yml must be one of them.
tasks[].sparkPipeline.fullRefresharray of string (nullable)NoDatasets to rebuild from scratch; 1 to 32 names.
tasks[].sparkPipeline.projectstringYesThe bundle directory that holds spark-pipeline.yml.
tasks[].sparkPipeline.refreshstring (nullable)Noincremental (the default) or full.
tasks[].sqlstringNoThe statement to run; exactly one of this, notebook, python, dbt, quality and sparkPipeline is given.
tasks[].writesarray of stringNoThe tables a sql, spark-pipeline or notebook task writes, as catalog.schema.table; at most 16. spec.publish: wap audits exactly these tables.
triggersarray of object (nullable)NoTables whose update starts the run (spec.triggers). At most one entry, 1 to 10 tables, and not together with schedule; omitted means none.
triggers[].modestring (nullable)No
triggers[].tablesUpdatedarray of stringNo
viewersarray of string (nullable)NoGroups that may read the pipeline without being members (spec.viewers). At most 16, each a group name; omitted writes none. A bundle's pipeline file carries it.

Responses

CodeDescription
200The verdict: accepted (with the action) or the reason it is not
401No token to sign in with
502The cluster did not answer
503No cluster connection