Documentation Index
Fetch the complete documentation index at: https://pathlit.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The REST API Node allows you to make HTTP requests to any REST API endpoint. This node enables you to:- Make GET, POST, PUT, DELETE, and other HTTP requests
- Configure headers and request bodies
- Import API configurations from OpenAPI specifications
- Use dynamic values from workflow inputs
- Handle JSON and other content types
- Integrate with external services and APIs
Configuration Parameters
Node Configuration
-
REST API Configuration:
Configure your API request using:
- Endpoint URL: The target API endpoint (supports format strings)
- HTTP Method: GET, POST, PUT, DELETE, PATCH, etc.
- Headers: Key-value pairs for request headers
- Request Body: Data to send (for POST/PUT/PATCH requests)
- Content Type: Format of request body (JSON, form data, etc.)
Expected Inputs and Outputs
-
Inputs:
- The node accepts text input that can be referenced in URLs, headers, and request bodies using format strings
-
Outputs:
- output: The response body from the API (typically JSON)
Use Case Examples
- Third-Party Integration: Call external APIs to send data, retrieve information, or trigger actions in other systems.
- Webhook Notifications: Send webhook notifications to external services when workflow events occur.
- Data Fetching: Retrieve data from REST APIs for processing in your workflow, such as fetching prices, weather data, or user information.
Error Handling and Troubleshooting
- Connection Errors: Verify the endpoint URL is correct and the API is accessible from Pathlit’s servers.
- Authentication Issues: Include necessary authentication headers (API keys, bearer tokens) in the headers configuration.
- Response Parsing: Ensure the API returns valid JSON if you’re processing the response in downstream nodes.
Relevant Nodes
Webhook Trigger
Receive HTTP requests to trigger workflows
HTTP Request Node
Alternative HTTP request node
LLM Node
Process API responses with AI