create

Create a workflow.

Authentication

X-API-Keystring
API Key authentication via header

Request

This endpoint expects an object.
chunkStrategyenumOptional
namestringOptional
The name of the workflow being created.
yamlstringOptional

Workflow YAML. GroundX validates it and creates the workflow settings. When yaml is supplied, omit extract, customSteps, outputRoutes, leafFields, and steps. A v1 workflow declares extraction_policy_version, workflow.custom_steps, workflow.agent_chain, a workflow_step and role for each group, and a workflow_output_key for each routed field. repeats: true declares an array of records; unique_attrs names fields used to identify the same record. For related lists, match_attrs names the shared fields and passthrough.from names the parent group. String matching ignores capitalization and surrounding whitespace. Blank or missing values do not match. When several parents match, GroundX uses the first. Group names and workflow_output_key values become output names.

extractobjectOptional
Extract agent definitions.
templatemap from strings to stringsOptional

Workflow-level prompt template values used by fixed and custom workflow step prompts.

sectionStrategyenumOptional
stepsobjectOptional
A collection of workflow steps
customStepslist of objectsOptional

Workflow-level custom extraction steps. Legacy fixed steps remain under steps.

outputRouteslist of objectsOptional
Custom output routes. Each record must have exactly one matching leafFields record on finalPath, workflowGroup, workflowField, stepName, level, and outputKey.
leafFieldslist of objectsOptional

Custom leaf-field metadata used to validate route integrity and executable-step field counts.

Response

Workflow successfully created
workflowobject
Workflow information