How to start a workflow via API
sample-workflow-template
).
YOUR_API_KEY
with your actual API key and <my-workflow-slug>
with the slug of your workflow.
application/json
Content-Type: application/json
header. The body should be a JSON object, optionally containing a startData
field.
multipart/form-data
multipart/form-data
. curl
will set the Content-Type
header automatically when you use the -F
option.
Any form fields you send will be collected into the startData
. If you send files, they will be processed and their resulting identifiers or content will also be part of startData
.
start_data_schema
field in a workflow definition allows you to specify the expected structure and validation rules for data sent when starting a workflow. This schema follows the JSON Schema specification and helps ensure data quality and provides clear documentation of expected inputs.
start_data_schema
definitions:
x-formFieldType: "multi-file"
:
workflow_id
, created_by
, and internal_notes
are hidden from the form but can be populated programmatically when the workflow starts.
x-formFieldType
: Specifies the UI component type (e.g., “file”, “date”, “select”)x-formFieldLabel
: Custom label for the form fieldx-formFieldOrder
: Controls the order of fields in generated formsx-formFieldPlaceholder
: Placeholder text for input fieldsx-formFieldHidden
: Hides the field from the generated form (useful for system-generated values)start_data_schema
provides several advantages:
lambda_handler.py
file.cron_schedule
parameter in the Workflow
constructor.
cron_schedule
parameter:
start_data_schema