Create workflow ​
Creates a workflow configuration that listens to a trigger and executes one or more steps when the trigger occurs. The workflow configuration supports JSONata expressions for: - Conditional execution (run_if) - Dynamic step configuration (config) Cron expressions can be provided at the step level to schedule execution.
Endpoint ​
POST /workflowRequest Body ​
Optional workflow ID. If not provided, it will be generated.
4a4de828-f4c9-4bea-8ef4-2d705aec43bcThe environment in which this workflow is created.
05daecaf-4365-42e8-8370-8127de5dd717The event that triggers this workflow.
integrated_account:connectedWorkflow execution configuration.
JSONata condition evaluated before executing workflow steps.
integration.name = 'calcom'Step execution type.
run
runAction executed by the step.
run_sync_jobOptional cron expression for scheduled execution.
0 */6 * * *JSONata expression evaluated at runtime to generate the step execution payload.
(
$sync_job_id := $mapValues(integration.name,{
"calcom": "51b79ace-a7b4-4077-93ba-8048a06ece2b"
});
{
"sync_job_id": $sync_job_id,
"integrated_account_id": integrated_account_id,
"webhook_id": "9fda519d-148f-4cc5-bbac-4e373b16e5d4"
}
)
Response Body ​
4a4de828-f4db-4c9e-adfd-434e0864c3c705daecaf-4365-42e8-8370-8127de5dd717integrated_account:connectedWorkflow execution configuration.
JSONata condition evaluated before executing workflow steps.
integration.name = 'calcom'Step execution type.
run
runAction executed by the step.
run_sync_jobOptional cron expression for scheduled execution.
0 */6 * * *JSONata expression evaluated at runtime to generate the step execution payload.
(
$sync_job_id := $mapValues(integration.name,{
"calcom": "51b79ace-a7b4-4077-93ba-8048a06ece2b"
});
{
"sync_job_id": $sync_job_id,
"integrated_account_id": integrated_account_id,
"webhook_id": "9fda519d-148f-4cc5-bbac-4e373b16e5d4"
}
)