Skip to main content
POST
/
v1
/
api
/
add_workflow_template
curl -X POST https://api.hookpulse.io/v1/api/add_workflow_template/ \
  -H "x-hookpulse-api-key: {{x-hookpulse-api-key}}" \
  -H "x-brand-uuid: {{x-brand-uuid}}" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_name": "{{workflow_name}}",
    "workflow_description": "{{workflow_description}}",
    "runtype": "{{runtype}}"
  }'
{
  "success": true,
  "details": "Webhook Template added",
  "workflow_uuid": "{{workflow_uuid}}"
}
Create a new workflow template with FIFO (First-In-First-Out) or concurrent execution mode. This endpoint creates the initial workflow structure; webhooks can be added to the workflow later using other APIs.

Base URL

All API requests should be made to:
https://api.hookpulse.io

Example request

curl -X POST https://api.hookpulse.io/v1/api/add_workflow_template/ \
  -H "x-hookpulse-api-key: {{x-hookpulse-api-key}}" \
  -H "x-brand-uuid: {{x-brand-uuid}}" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_name": "{{workflow_name}}",
    "workflow_description": "{{workflow_description}}",
    "runtype": "{{runtype}}"
  }'

Request body

FieldTypeRequiredDescription
workflow_namestringYesName of the workflow template
workflow_descriptionstringYesDescription of the workflow template
runtypestringYesExecution mode: "fifo_sequential" for strict sequential order, or "concurrently" for parallel execution

Execution Modes

FIFO Sequential Mode (fifo_sequential)

FIFO (First-In-First-Out) mode ensures steps execute in strict sequential order:
  • Guaranteed Order: Steps execute one after another, in the exact order defined
  • Dependency Support: Later steps can safely access variables from earlier steps using {{ step.response.variable }} and {{ initial.variable }}
  • Data Consistency: Ensures data flows correctly through the workflow
  • Full Variable Support: All template variables are available:
    • {{ #key }} - System secrets
    • {{ variable }} - Workflow variables
    • {{ step.response.variable }} - Previous step responses
    • {{ initial.variable }} - Initial workflow input
Use Cases:
  • Payment processing workflows
  • Data transformation pipelines
  • Sequential API calls with dependencies
  • Multi-step user onboarding

Concurrent Mode (concurrently)

Concurrent mode allows multiple steps to execute simultaneously:
  • Parallel Execution: Multiple steps run in parallel, reducing total execution time
  • Independent Operations: Ideal when steps don’t depend on each other
  • Limited Variable Support: In concurrent mode, only system variables are evaluated:
    • {{ #key }} - System secrets (available)
    • {{ variable }} - Workflow variables (not available)
    • {{ step.response.variable }} - Previous step responses (not available)
    • {{ initial.variable }} - Initial workflow input (not available)
Note: The limitation exists because steps execute simultaneously, so there’s no guarantee of execution order or availability of previous step data. Use Cases:
  • Sending notifications to multiple services simultaneously
  • Parallel data processing
  • Independent API calls
  • Bulk operations

Example response

Success Response

Response fields

FieldTypeDescription
successbooleanIndicates if the request was successful
detailsstringSuccess message (only present on success)
workflow_uuidstringUnique identifier for the created workflow template (only present on success)
errorstringError message (only present on error)
workflow_uuidstringUUID of the existing workflow with the same name (only present on error)

Next Steps

After creating a workflow template, you can:
  1. Add Webhooks: Use workflow-specific APIs to add webhook steps to your workflow
  2. Configure Failure Handling: Set up failure handling and retry strategies
  3. Add Execution Conditions: Configure step conditions for conditional execution
  4. Schedule Workflows: Set up scheduling to run workflows automatically

Authorizations

x-hookpulse-api-key
string
header
required

API key for authentication. Get this from your dashboard by selecting a brand and going to API Keys section.

x-brand-uuid
string
header
required

Brand UUID for authentication. Get this from your dashboard after adding a brand - it will be displayed in the UI.

Body

application/json

Workflow template configuration

workflow_name
string
required

Name of the workflow template

workflow_description
string
required

Description of the workflow template

runtype
enum<string>
required

Execution mode: 'fifo_sequential' for strict sequential order, 'concurrently' for parallel execution (note: in concurrent mode, only system variables are evaluated; initial.variable, response, and header variables are not available)

Available options:
fifo_sequential,
concurrently

Response

Workflow template created successfully

success
boolean

Indicates if the request was successful

details
string

Success message

workflow_uuid
string

Unique identifier for the created workflow template