Skip to Content

next-workflow-builder

DevKit AI Builder Template DocumentationMarketplace
CTRL K
Demo
CTRL K
  • DevKit 
  • AI Builder Template 
    • Introduction
    • Getting Started
    • Configuration
    • Plugins
      • Overview
      • HTTP Request
      • Condition
      • Loop
      • Merge
      • Database Query
      • Run Workflow
      • Run Workflows in Sequence
      • Switch
    • Creating Plugins
    • API Reference
    • CLI Reference
    • Components
    • Database
    • Authentication
    • Deployment
    • Architecture
    • Contributing
    • MCP Server
  • Marketplace
  • Introduction
  • Getting Started
  • Configuration
  • Plugins
    • Overview
    • HTTP Request
    • Condition
    • Loop
    • Merge
    • Database Query
    • Run Workflow
    • Run Workflows in Sequence
    • Switch
  • Creating Plugins
  • API Reference
  • CLI Reference
  • Components
  • Database
  • Authentication
  • Deployment
  • Architecture
  • Contributing
  • MCP Server

On This Page

  • Configuration
  • Output
  • Usage Examples
  • GET request
  • POST request with template data
  • Chaining requests
  • Error Handling
  • Generated Code
Question? Give us feedback Edit this page 
DocumentationBuilt-in PluginsHTTP Request

HTTP Request

Make HTTP requests to any API endpoint. This is the most versatile built-in plugin — use it to call REST APIs, webhooks, or any HTTP service.

Configuration

FieldTypeRequiredDescription
MethodSelectYesHTTP method: GET, POST, PUT, PATCH, DELETE
URLTemplate InputYesThe endpoint URL. Supports template references like {{PreviousNode.url}}
HeadersTemplate TextareaNoJSON object of request headers. Defaults to {}
BodyTemplate TextareaNoJSON request body. Disabled for GET requests. Defaults to {}

Output

FieldTypeDescription
successbooleanWhether the request completed successfully
dataunknownParsed JSON response body, or raw text if not JSON
statusnumberHTTP status code (e.g. 200, 404)
errorstringError message if success is false

Usage Examples

GET request

Fetch data from an external API:

  • Method: GET
  • URL: https://api.example.com/users
  • Headers: {"Authorization": "Bearer token123"}

POST request with template data

Send data from a previous node:

  • Method: POST
  • URL: https://api.example.com/orders
  • Headers: {"Content-Type": "application/json"}
  • Body: {"email": "{{Trigger.email}}", "plan": "pro"}

Chaining requests

Reference output from a previous HTTP Request node:

  • URL: https://api.example.com/users/{{FetchUser.data.id}}/profile

Error Handling

The step returns success: false with a descriptive error message for:

  • Connection failures (server unreachable, DNS resolution failed)
  • Non-2xx HTTP status codes (includes the status code and response body)
  • Invalid JSON in headers or body configuration
  • Network timeouts

Generated Code

When exporting a workflow, the HTTP Request action generates:

import { httpRequestStep } from './steps/http-request-step'; const result = await httpRequestStep({ url: 'https://api.example.com/endpoint', method: 'POST', body: {}, });
Last updated on March 12, 2026
OverviewCondition

© 2026 All rights reserved.

Product by David Sanchez