Add a webhook step to an existing workflow template
| Field | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Priority index for FIFO execution order (0 is first step) |
workflow_uuid | string | Yes | UUID of the workflow template to add the step to |
webhook_name | string | Yes | Name of the webhook step |
webhook_description | string | Yes | Description of the webhook step |
method | string | Yes | HTTP method. Allowed values: "GET", "POST", "PUT", "DELETE", "PATCH" |
path | string | Yes | URL path for the webhook (supports template variables) |
domain_uuid | string | Yes | UUID of the domain associated with this webhook step |
human_approval_required | boolean | Yes | Whether this step requires human approval before execution |
step_identifier | string | Yes | Unique identifier (slug) for this step |
on_success_next_step_identifier | string | Yes | Step identifier to execute next on success |
on_fail_next_step_identifier | string | Yes | Step identifier to execute next on failure |
delay_to_next_step | integer | Yes | Delay in seconds before executing the next step |
execution_condition | object | No | Condition that must be met for this step to execute |
execution_condition.operator | string | No | Comparison operator: "eq", "ne", "lt", "gt", "lte", "gte", "in", "contains" |
execution_condition.field | string | No | Field path to evaluate |
execution_condition.value | string | No | Value to compare against |
retry_delay | integer | Yes | Delay in seconds between retry attempts (default: 10) |
retry_backoff_mode | string | Yes | Retry backoff strategy: "linear" (default) or "exponential" |
max_retries | integer | Yes | Maximum number of retry attempts (default: 5) |
request_timeout_in_milliseconds | integer | Yes | Request timeout in milliseconds (default: 5000) |
request_body_json | object | Yes | Request body as JSON object (supports template variables) |
headers_json | object | Yes | HTTP headers as JSON object (supports template variables) |
query_params_json | object | Yes | Query parameters as JSON object (supports template variables) |
index field defines the priority and execution order for FIFO (First-In-First-Out) workflows:
execution_condition field allows you to control when a step executes based on field values:
| Operator | Description | Example |
|---|---|---|
eq | Equal to | amount eq 100 |
ne | Not equal to | status ne "cancelled" |
lt | Less than | quantity lt 10 |
gt | Greater than | price gt 1000 |
lte | Less than or equal to | age lte 18 |
gte | Greater than or equal to | score gte 80 |
in | Value in array | status in ["active", "pending"] |
contains | String contains substring | email contains "@example.com" |
amount > 1000.
request_body_json, headers_json, query_params_json, and path:
{{ #key }}) are available. Step response and initial variables are not supported in concurrent execution.
on_success_next_step_identifier: Defines which step to execute next when this step succeedson_fail_next_step_identifier: Defines which step to execute next when this step failsdelay_to_next_step: Adds a delay (in seconds) before executing the next stephuman_approval_required is true:
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful |
details | string | Success message |
API key for authentication. Get this from your dashboard by selecting a brand and going to API Keys section.
Brand UUID for authentication. Get this from your dashboard after adding a brand - it will be displayed in the UI.
Workflow step configuration
Priority index for FIFO execution order (0 is first)
UUID of the workflow template to add the step to
Name of the webhook step
Description of the webhook step
HTTP method for the webhook call
GET, POST, PUT, DELETE, PATCH URL path for the webhook (supports template variables)
UUID of the domain associated with this webhook step
Whether this step requires human approval before execution
Unique identifier (slug) for this step
Step identifier to execute next on success
Step identifier to execute next on failure
Delay in seconds before executing the next step
Delay in seconds between retry attempts (default: 10)
Retry backoff strategy (default: linear)
linear, exponential Maximum number of retry attempts (default: 5)
Request timeout in milliseconds (default: 5000)
Request body as JSON object (supports template variables: {{ #key }}, {{ step.response.key }}, {{ initial.key }})
HTTP headers as JSON object (supports template variables)
Query parameters as JSON object (supports template variables)
Condition that must be met for this step to execute