For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Guide

Set up a custom pipeline

Create, configure, and publish custom pipelines to connect external APIs to Rippling.

Use with AI:Rippling AI ChatGPT Claude Cursor

Overview​

Custom pipelines let you ingest data from third-party APIs into Rippling by defining how to fetch, transform, and store that data as custom objects. Once ingested, this data becomes available across Rippling for analytics, automations, and custom apps.

Because pipelines interact directly with external APIs, you should be familiar with the provider’s API documentation (specifically authentication, endpoints, rate limits, and response schemas) before building.

Note

Use a function-based stream if the API is nested, needs custom pagination, incremental filters, deletes, or parent-child calls. No-code works best when the response is flat JSON.


Requirements​

Before setting up a custom pipeline, confirm you have the following:

  • API documentation - Access to the external service's technical docs for endpoint paths, parameters, and response schemas.
  • Authentication credentials - Your authentication credentials, such as an API key or OAuth details.
  • Data requirements - A clear understanding of which endpoints you need and how the data maps to what you want to track in Rippling.

How it works​

A custom pipeline runs on a schedule, calls external API endpoints, and writes the returned data into Rippling custom objects. The system includes built-in handling for common integration concerns:

  • Only one sync runs at a time for a given pipeline.
  • Conservative rate limiting and automatic retries for temporary failures.
  • Employee matching (preferably via work email, or fuzzy name matching).
  • Removing fields or changing field types marks those custom object fields as DEPRECATED in Rippling. Ensure you update your custom object views to account for deprecated columns.

Core concepts​

Pipeline​

A pipeline is the top-level integration unit. It defines:

  • API credentials and authentication
  • Global execution settings and rate limits
  • Data streams

Data streams​

Each pipeline contains one or more streams. A data stream:

  • Maps to a single API endpoint. Avoid merging multiple data sources into one stream; join or aggregate using Transformations instead.
  • Defines what data to extract and how to structure it.
  • Writes output to a corresponding custom object in Rippling.
  • Must include a user stream in your pipeline setup.

Parent-child stream relationship​

Some API endpoints depend on data from other endpoints. For example, you might need a user ID from one endpoint before you can call a second endpoint for that user's details. In these cases, you can add a sub-stream that pulls data from its parent stream's response. Sub-streams can be nested several layers deep.

Incremental vs. snapshot​

  • Incremental: After the first run, fetches only records updated since the last checkpoint. Requires the API to support filtering/querying on the checkpoint field. Always prefer updated_at timestamps over created_at (unless records are strictly immutable).
  • Snapshot: Every run pulls all records (like running a continuous reconciliation job). Simpler to build, but uses more API calls. Records missing from the source pull are automatically tombstoned and deleted from the target custom object in Rippling.

Checkpoint vs. pagination state​

Pagination stateCheckpoint
PurposeWhere you are in this run (e.g., page 3 of 10)Saved progress marker across runs (e.g., records updated after 2026-01-15)
LifetimeCleared when last: truePersisted to the database and passed to the next run

Set up a custom pipeline​

Setting up a custom pipeline involves three steps:

  1. Create the pipeline
  2. Add data streams
  3. Publish the pipeline

By default, custom objects created by custom pipelines are saved in a category with the name of the pipeline in Data > Catalog. You can select a different category when configuring the pipeline.

Create the pipeline​

  1. From the main sidebar in Rippling, select Data > Pipelines.
  2. Click + Create Pipeline.
  3. Under API, select + New API Connection.
  4. Enter a name and optional description for the pipeline.

Connect to an API​

Configure the API authentication settings for your pipeline:

  1. Enter the Base URL for the external API.
  2. Click Add credentials, then select either:
    • Add new credential: Choose a credential type and provide credential values
    • Use existing credentials: Select a saved credential from the list
  3. If you are adding a new credential, select the Credential source.
  4. Select the credential type (API key, Basic, Bearer token, Authorization header, OAuth client credential, or OAuth 2.0).
  5. Provide the required values based on the credential type.
  6. Name the new credentials and click Save.

Add collaborators​

You can share a pipeline with others in your organization. Collaborators can be assigned one of the following roles:

RoleWhat they can do
ManagerView and edit the pipeline configuration, manage streams, and pause or publish the pipeline.
ViewerView the pipeline configuration and sync history. Cannot make changes.

To add collaborators, create or select a Supergroup in the Who can manage or Who can view fields. Click Preview people to preview who has been added as a collaborator.

Configure user mapping​

User mapping associates records from the external source with employee profiles in Rippling:

  1. Check the User mapping checkbox.
  2. Select the data stream you want to map users to.
  3. Map by Email whenever possible, as it provides exact, high-accuracy results.
  4. If Email is unavailable, map by Name. Name mapping uses a best-guess fuzzy match; manually review mapped users to catch any mismatches.
  5. If neither Email nor Name is available from the API endpoint, map users manually using a transformation step (e.g., calling /list-workers) or equivalent code logic.
  6. Set the field's data type to Employee in the field mapping table under Record details.
Note

To configure user mapping, you'll need to first set up at least one data stream.

Advanced settings​

To configure additional pipeline settings, expand Advanced settings:

  • Category: Group custom objects created by this pipeline.
  • Rate limit: Set conservative limits to prevent 429 errors.
  • Time period: Define the time window for your rate limits.

Add data streams​

Each API endpoint requires its own data stream, configured with no-code or a function.

No-code​

Use when you can directly map flat API response fields in the UI.

  1. In the Data streams panel, click New.
  2. Edit the stream name by clicking the pencil icon.
  3. For Type, select No-code.
  4. Select the HTTP Method.
  5. In the Endpoint field, you will see the base URL pre-populated. Enter the endpoint path (for example, /users).
  6. Click Test connection to send a sample request and verify the response.
  7. If applicable, enter the Record path to specify where in the response the records are located.
  8. Review the fields returned by the API. You can add or remove fields, and adjust the data type for each field as needed.
  9. Under Record details, ensure the Record ID path is set to the field that uniquely identifies each record (such as ID or name). This is used as the deduplication key when syncing updates.

Key mapping parameters:

In the UIWhat it means
Record ID pathUnique record primary key.
Version pathField tracking record updates (use updated_at timestamp).
Is deleted path / valueField indicating if a record has been deleted.
PaginationConfiguration to walk through multiple pages in a single run.
Incremental sync / checkpointParameter used to filter new/updated records across runs.
Note

If the Schema inference toggle is enabled, Rippling automatically populates fields based on the API response when you run the test.

Function-based​

Use a function-based stream when you need custom logic to parse complex API structures, handle non-standard pagination, transform fields, or manage parent-child feeds.

Note

You must have access to the Functions app in Rippling to select or build custom pipeline functions.

  1. In Data streams, click New and set Type to Rippling Function.
  2. Select or attach your function from the Functions app.

Custom pipeline functions receive a DataBridgeRequest and must return a DataBridgeResponse:

// Input Parameter
interface DataBridgeRequest {
parameters: {
streamName: string;
state: any; // Ephemeral pagination state
checkpoint: string; // Persisted progress marker
backfill: boolean; // True if executing a backfill
connectionId: string;
};
}

// Output Requirement
class DataBridgeResponse {
records: DataBridgeRecord[]; // Extracted records
tombstones: DataBridgeTombstone[]; // Explicit deletion flags
checkpoint: string; // Updated checkpoint marker
feeds: DataBridgeFeed[]; // Sub-stream feed calls
last: boolean; // True when pagination is complete
state: Record<string, any>; // State for the next page call
}

class DataBridgeRecord {
id: string; // Unique 3P identifier
version: string; // Lexicographically comparable string (e.g. ISO updated_at)
value: string; // Base64-encoded JSON payload string
}

For implementation details and standards, refer to our pipeline function best practices.

Sub-streams​

Use a sub-stream when an API endpoint requires data from a parent stream's response. For example, if your first stream retrieves a list of users and a second endpoint requires a user ID to return user-level details, the second endpoint should be a sub-stream of the first. Streams can be nested several layers deep.

  1. Open an existing stream and click Add substream.
  2. Click + to pass parent fields into the request (for example, the parent stream's id field).
  3. Configure the sub-stream similarly to a top-level stream. In function streams, consume parent values via state.ancestor_vals or parameters.ancestor_vals.
Note

If two endpoints are independent and neither needs data from the other, configure them as separate top-level streams instead of using a parent/sub-stream relationship.

To configure a lookup between streams, change a field's data type to the target custom object.

Publish the custom pipeline​

  1. Click Create pipeline to validate the configuration. This may take a few minutes.
  2. Select the streams you want to create custom objects for. By default, all streams and fields are selected. Deselect any fields you do not want to bring into Rippling.
  3. Click Publish. Set up permissions on the new custom objects once published.

Reconciliation & backfills​

Reconciliation runs re-process all records from the source API without using stored checkpoints:

  1. Queue a reconciliation job from the UI under pipeline settings.
  2. When queued, the next scheduled sync runs both an incremental run and a full reconciliation run.
  3. Because backfills process all records, automations triggered on record updates may fire for every record. Guard downstream automations accordingly.

Sync frequency​

After a pipeline is published, it syncs data on a recurring schedule. The following behaviors apply:

  • New records: When a new record appears in the external source, Rippling creates a new record in the corresponding custom object on the next sync.
  • Updated records: If a record already exists (matched by the Record ID path), Rippling updates it rather than creating a duplicate.
  • Rate limiting: Rippling handles rate limiting automatically. If the external API enforces rate limits, Rippling paces requests to stay within those limits (attempts 6 retries, maximum 3 minutes each).
  • Deletes: For incremental syncs, records are deleted only if explicitly marked with a tombstone or deletion flag. For snapshot syncs, any record missing from the source payload is automatically deleted in Rippling.
  • Full re-sync / Reconciliation: Processes all records again without using stored checkpoints. Automations triggered on "updated" can fire for every row. Ensure you guard them accordingly.

Pipeline function best practices​

Use the following guidance when developing functions for your custom pipelines.

CategoryBest practice
Pagination & state
  • Each function execution represents a single page of work.
  • Pass progress through state and set last: false to request the next page.
  • Return last: true when pagination is complete.
  • Do not loop through every page in one invocation, and cap any inner loop so a growing result set cannot run until timeout.
Checkpointing & buffers
  • Update the checkpoint value as you paginate so failures don't restart from page one.
  • Subtract a safety buffer (e.g., 48 hours) from your maximum updated_at value when saving the final checkpoint to prevent edge-case data loss.
Payload encoding
  • Convert record payloads to JSON and base64-encode them before assigning them to DataBridgeRecord.value (e.g., btoa(JSON.stringify(data))).
Record versioning
  • Always populate version with a comparable timestamp (such as updated_at) and keep id stable.
  • If version is omitted, DataBridge defaults to the current system time, causing every record to be treated as updated on every run.
  • A stable id and version also make a retried page safe, as DataBridge ignores an older version for an ID it has already stored.
Deletes & tombstones
  • For incremental streams, return deleted record IDs in the tombstones array to remove them from Rippling custom objects.
Payload structure & types
  • Use LongText for large or nested fields, flatten nested objects (parent_child), and format arrays as pipe-delimited strings ("val1|val2") or item counts.
Environment logic
  • Do not hardcode company-specific IDs or settings inside the function; pass them via configuration settings.
Synchronous execution
  • Keep the pipeline function synchronous so the invocation can return DataBridgeResponse.
  • Use an asynchronous function for automation or app work that can finish in the background.
Batching
  • If one page needs several independent API calls, run them together with Promise.all().
  • Await a call only when a later call depends on its result.
Retries
  • Retry transient failures (5xx and 429) a few times with exponential backoff.
  • A 4xx other than 429 is a logic error; fail that invocation instead of retrying it.
Timeouts
  • One page should finish within the function timeout.
  • The default is 20 seconds when deploymentOptions is empty.
  • Set lambda_timeout_sec in function.yaml if a single page needs longer, and shrink the page before raising the limit further.

See also​