Skip to main content

Use case

Create, version, and manage reusable enrichment pipelines programmatically. Use these endpoints to list existing workflows, inspect block definitions, create new pipelines from code, update configurations, or remove workflows you no longer need.

API Reference

See the full request/response schema and parameters in the API Reference.

Pricing

See Credits & Pricing Guide for credit costs.

Errors

For error responses (400, 403, 404, etc.), see Handling Errors.
For a full reference of available block types and their use cases, see Workflow Blocks.

Workflow definition

A workflow definition is a directed graph of blocks connected by edges:
  • blocks — each block has a sequence_number, block_type (see Workflow Blocks), block_name, optional block_id, and a specs object.
  • edges — each edge has a from_block_id, a to_block_id, and an optional condition.
This shape is used in both Create Workflow and Update Workflow requests.

List workflows

Retrieve all workflows in your organization.
Returns a lightweight list of workflows without block definitions.
Use GET /workflows/{workflow_id} to retrieve a workflow with its full block graph.

Get workflow

Retrieve a specific workflow including its complete block graph.

Create workflow

Create a new workflow with a block graph definition.
Required body fields: workflow_name, workflow_description, and workflow_definition. Pass an optional id to use a custom workflow ID; otherwise one is auto-generated.

Example request

All workflows are validated before creation. Block compatibility is checked automatically.

Update workflow

Update an existing workflow’s name, description, or block definition.
Pass workflow_id as a query parameter. All body fields (workflow_name, workflow_description, workflow_definition) are optional — only include what you want to change. The workflow_definition shape is the same as Create Workflow above.
Performs upsert: creates the workflow if it doesn’t exist. Workflow definition is validated before saving.

Delete workflow

Permanently delete a workflow.
Pass workflow_id as a query parameter.
Permanently removes the workflow definition. Historical workflow runs are preserved.