Skip to main content

Overview

The Builder API provides endpoints for creating, managing, and deploying visual workflows. All endpoints (except health and static assets) require JWT authentication.

Base URL

Authentication

All API endpoints (except /health and static assets) require JWT authentication:

Health Endpoints

GET /api/builder/health

Health check endpoint (no authentication required). Response:
Status Codes:
Success
Service is healthy

GET /

Serves the React SPA frontend (no authentication required). Response: HTML content with React application.

Workflow Endpoints

POST /api/builder/workflows

Create a new workflow.
string
required
Display name for the workflow
string
Optional description
array
required
List of workflow nodes
array
required
List of connections between nodes
Request:
Response:
Status Codes:
Created
Workflow created successfully
Bad Request
Invalid workflow definition
Unauthorized
Invalid or missing authentication token

GET /api/builder/workflows

List all workflows for the authenticated user.
integer
default:"20"
Maximum number of workflows to return
integer
default:"0"
Number of workflows to skip for pagination
string
Filter by tag
Request:
Response:

GET /api/builder/workflows/

Get details for a specific workflow. Path Parameters:
string
required
The workflow ID
Request:
Response:
Status Codes:
Success
Workflow retrieved successfully
Not Found
Workflow does not exist or user lacks access

PUT /api/builder/workflows/

Update an existing workflow. Request:
Response:
Status Codes:
Success
Workflow updated successfully
Not Found
Workflow does not exist

DELETE /api/builder/workflows/

Delete a workflow. Request:
Response:
Status Codes:
No Content
Workflow deleted successfully
Not Found
Workflow does not exist

Validation Endpoints

POST /api/builder/validate

Validate a workflow definition without saving.
array
required
List of workflow nodes
array
required
List of connections between nodes
Request:
Response (Valid):
Response (Invalid):
Validation Rules:

Code Generation Endpoints

POST /api/builder/generate

Generate LangGraph Python code from a workflow.
string
Name for the generated module
array
required
List of workflow nodes
array
required
List of connections between nodes
object
Code generation options
Request:
Response:
Generation Options:

MCP Integration Endpoints

GET /api/builder/tools

List available MCP tools for workflow integration. Request:
Response:

GET /api/builder/resources

List available MCP resources. Request:
Response:

Version History Endpoints

GET /api/builder/workflows//versions

List version history for a workflow. Request:
Response:

GET /api/builder/workflows//versions/

Get a specific version of a workflow. Request:

POST /api/builder/workflows//rollback

Rollback to a previous version.
integer
required
Version number to rollback to
Request:
Response:

Error Responses

All endpoints may return the following errors:

400 Bad Request

401 Unauthorized

403 Forbidden

404 Not Found

422 Unprocessable Entity


Node Type Reference

Start Node

Agent Node

Router Node

Tool Node

Human Node

End Node


SDK Examples

Python

JavaScript/TypeScript


Builder Guide

Learn how to use the builder

Authentication API

Authentication endpoints

LangGraph Concepts

Understand LangGraph fundamentals

MCP Tools

Configure MCP tools

Full API access! Use these endpoints to programmatically manage workflows and integrate with your development pipeline.