Overview
REST API Tools allow your agents to interact with any HTTP API endpoint. Configure the request method, URL, headers, parameters, and body to integrate with external services and data sources.Why Use REST API Tools?
Universal Integration: Connect to any REST API—weather services, databases, CRMs, payment processors, or custom internal APIs. Custom Configuration: Full control over HTTP methods, headers, authentication, query parameters, and request bodies. Schema-Driven: Define input schemas using JSON Schema to validate parameters and enable intelligent agent usage.Creating a REST API Tool
1. Start Creation
- Click Tools in the sidebar → New Tool → Select REST API
2. Basic Configuration
Tool Name: Descriptive name for the API endpoint (e.g., “Weather Lookup”, “Search Products”) Description: What the tool does and when agents should use it. Be specific to help agents choose the right tool.3. HTTP Configuration
Method: Choose the HTTP method:GET- Retrieve dataPOST- Create or submit dataPUT- Update dataDELETE- Remove dataPATCH- Partial update
4. Headers
Add HTTP headers for authentication, content type, or custom headers:5. Request Body
For POST, PUT, and PATCH requests, configure the JSON request body:6. Input Schema
Define the tool’s inputs using JSON Schema. This validates parameters and helps agents understand what data to provide:type: Data type (string, integer, number, boolean, object, array)description: Helps agents understand the parameterenum: Restrict to specific valuesdefault: Default value if not providedminimum/maximum: Numeric constraintsrequired: List of required parameters
Variable Substitution
Use{{variable_name}} syntax to reference schema properties:
In URLs:
Testing Your Tool
Before saving, test your API tool:- Schema Validation: Enter sample data to verify your schema
- API Test: Click Test API to send a real request
- Response Preview: View the API response to ensure it works correctly
- Error Debugging: Check error messages if the request fails
Testing is highly recommended to catch configuration issues before assigning
the tool to agents.
Authentication Patterns
Bearer Token
Basic Auth
API Key in Header
API Key in Query Parameter
Best Practices
Clear Descriptions: Help agents understand when and how to use the tool Validate Inputs: Use comprehensive JSON Schema with constraints and defaults Test Thoroughly: Test with various inputs before deployment Secure Credentials: Use workspace variables for API keys, never hardcode them Error Handling: Consider API rate limits and error responses Descriptive Names: Use clear tool names like “Search Inventory” not “API 1”Common Use Cases
Data Retrieval: Fetch weather, stock prices, user information Search Operations: Search products, documents, or databases Data Creation: Create records, submit forms, or send notifications External Actions: Trigger workflows, send emails, or update systems Real-Time Information: Get current data that changes frequentlyTroubleshooting
Connection Failed: Verify URL is correct and accessible, check network/firewall settings Authentication Errors: Confirm API key/token is valid and properly formatted Schema Validation Failed: Check required fields and data types match your schema Invalid Response: Verify API returns expected format, check API documentation Rate Limiting: Consider API rate limits and add delays if neededNext Steps
Assign Tools to Agents
Configure agent tool access
Test Your Agents
Test agents with your new tools