Create new workflow
/workflowsCreates a new workflow definition with graph generation from workflow instructions
Query parameters
verbosebooleanoptionaldefault falseIf true, includes full workflow implementation details in workflow_details field
Body parameters
namestringrequiredHuman-readable name for the workflow
workflow_instructionsstringrequiredNatural language instructions that define the workflow logic
sample_dataobjectrequiredSample data to use for workflow graph generation
fhir_provider_idoneOfrequiredFHIR provider ID(s) - must be valid UUID(s) from existing FHIR providers
dynamic_generationbooleanoptionalEnable dynamic lang2fhir calls instead of pre-populated templates
Successfully created workflow
Response fields
successbooleanoptionalWhether the workflow was created successfully
messagestringoptionalStatus message
workflow_idstring (uuid)optionalID of the created workflow
workflowobjectoptionalSimplified workflow representation without implementation details
idstring (uuid)optionalUnique identifier for the workflow
namestringoptionalHuman-readable name for the workflow
workflow_instructionsstringoptionalNatural language instructions that define the workflow logic
sample_dataobjectoptionalSample data used for workflow graph generation
configobjectoptionalfhir_provider_idsstring (uuid)[]optionalFHIR provider IDs for executing workflow steps
dynamic_generationbooleanoptionalWhether to use dynamic lang2fhir generation instead of pre-populated templates
graphobjectoptionalstepsobject[]optionalSimplified list of workflow steps without operation details
created_atstring (date-time)optionalTimestamp when the workflow was created
updated_atstring (date-time)optionalTimestamp when the workflow was last updated
workflow_detailsobjectoptionalOnly included when verbose=true - contains full implementation details including operation definitions and placeholders
idstring (uuid)optionalUnique identifier for the workflow
namestringoptionalHuman-readable name for the workflow
workflow_instructionsstringoptionalNatural language instructions that define the workflow logic
sample_dataobjectoptionalSample data used for workflow graph generation
configobjectoptionalfhir_provider_idsstring (uuid)[]optionalFHIR provider IDs for executing workflow steps
dynamic_generationbooleanoptionalWhether to use dynamic lang2fhir generation instead of pre-populated templates
graphobjectoptionalstepsobject[]optionalOrdered list of workflow execution steps
created_atstring (date-time)optionalTimestamp when the workflow was created
updated_atstring (date-time)optionalTimestamp when the workflow was last updated