Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Pass through condition

A Pass through condition controls which actions in your API Endpoint workflow execute. When the condition is false, all following actions are skipped. When true, the workflow continues normally.

How it works

This action acts as a checkpoint: if the condition is false, all actions that come after it are skipped. The workflow doesn't throw an error—it simply stops processing the remaining actions in that branch.

YOU STILL NEED A RESPONSE

In an API Endpoint workflow, make sure your workflow still returns something. If you use Pass through condition to skip actions, you usually want a Send response action either:

  • Before the Pass through condition, or
  • In a separate branch (for example with a True/False split)

Configuration

In the action configuration panel, you define the condition that will be evaluated. This can be:

  • A direct boolean value
  • A comparison (e.g., inputs.userId !== null)
  • A formula that returns true or false
  • A variable that contains a boolean value

Common use cases in API Endpoints

  • Skipping expensive operations — Skip database calls or external API requests when a quick pre-check fails
  • Early returns — Stop processing when you already have the result you need
  • Feature flags — Only execute certain logic when a feature is enabled
  • Permission checks — Skip operations when simple permission checks say "no"

Example: Skip expensive operation

  1. Receive API Endpoint request with userId
  2. Pass through condition: userId Is not empty
    • If false, skip all following actions
  3. Fetch user details from database (expensive query)
  4. Fetch user's related records
  5. Process and return data

If the userId is empty, actions 3-5 are skipped entirely, saving database queries and processing time.

PLACEMENT MATTERS

Position your Pass through condition before any actions you want to conditionally execute. Actions placed before Pass through condition will always run regardless of the condition.

When to use vs True/False split

  • Use Pass through condition when you simply want to skip remaining actions
  • Use True/False split when you need to execute different logic for true vs false cases

CONTINUE LEARNING

Learn how to create different execution paths based on conditions.

True/False split →