Skip to main content
POST
Single-shot pipeline creation. Accepts a declarative payload describing pipeline steps, schedule, and metadata — returns the created pipeline ID.
This endpoint uses API key authentication. Pass your key via Authorization: Bearer trvh_sdk_... or x-api-key header.

Request Body

string
required
Pipeline name displayed in the UI.
string
Optional description for the pipeline.
string
Pipeline category (e.g., "Real Estate", "E-Commerce").
array
Tags for the pipeline (e.g., ["adp", "mls", "automated"]).
object
required
Where data comes FROM. This connection is inherited by all source type steps.
object
required
Where data goes TO. This connection is inherited by load, stage, and reconcile steps.
array
required
Ordered array of pipeline step definitions. Steps execute sequentially — each step depends on the previous one.
object
Optional schedule for automatic execution.

Step Type Configs

Source

Extract data from a database, API, file, or S3 bucket. Inherits connectionId and connection config from the top-level source object. You typically don’t need a source step in the steps array — one is auto-generated from the top-level source definition. Only add explicit source steps when you need multiple sources (e.g., a second API call mid-pipeline for enrichment).
string
Override connection ID (for additional sources beyond the primary). If omitted, inherits from top-level source.connectionId.
string
Override API endpoint (for API sources).
string
Table name to extract from (for DB sources).

Transform

Field mapping and data transformation rules.
array
Array of field mapping objects.
array
Array of transformation rules.

Validate

Data validation rules.
array

Quality

Data quality checks.
array

DB Lookup

Read from another database for reference/enrichment.
string
required
Connection ID for lookup database.
string
Schema name.
string
required
Table to look up from.
string
required
Field from pipeline data to match on.
string
required
Field in lookup table to join on.
string
Comma-separated list of fields to pull from lookup table.

Stage

Write to a staging/temporary table for intermediate processing.
string
Staging schema name.
string
required
Staging table/view name.

Load

Write to the final destination database (Postgres for v1). Inherits connectionId, vendor, and schemaName from the top-level destination object.
string
required
Destination table name.
string
Override connection ID. If omitted, inherits from top-level destination.connectionId.
string
Override schema. If omitted, inherits from top-level destination.schemaName.

Reconcile

Post-load data reconciliation — compares source vs destination.
string
default:"default"
"default" uses the built-in ADP screen map. "custom" expects a mapping file at execution time.
boolean
default:true
Compare source and destination row counts.
boolean
default:true
Check non-null completeness per field.
boolean
default:true
Run ADP screen-level validation.

Response

boolean
Whether the import succeeded.
object
The created pipeline document.