Skip to main content
This guide walks you through creating a simple API that fetches user data and returns a formatted response.

Your First Flow

Create a flow that:
  1. Accepts a user_id query parameter
  2. Fetches user data from an external API
  3. Returns a formatted response

Understanding the Structure

Trigger

The trigger defines how the API is invoked:
This creates an endpoint at GET /users.

Nodes

Nodes are the steps in your flow. Each node has:
  • id - Unique identifier (used to reference outputs)
  • type - The node type
  • config - Type-specific configuration

Template Expressions

Use {{path}} to reference data:

Adding Validation

Add a request node to validate input:
The pick pipe extracts only the specified fields from the response.

Adding Conditional Logic

Handle cases where the user might not exist:

Complete Example

Here’s a full flow with validation, error handling, and conditional responses:

Next Steps