REST API Caller

Back

REST API Caller

ToolBeginner

Make HTTP requests to external APIs with authentication and error handling.

API Integrationapihttprestintegration
Use This Template
When to Use

Foundation tool for any agent that needs to interact with external services. Handles common authentication methods and automatically parses responses.

Usage Conditions
  • External API call is required
  • Data needs to be fetched from a third-party service
  • Webhook or callback needs to be triggered
Parameter Schema
NameTypeRequiredDescription
urlstringThe API endpoint URL
methodstringHTTP method: GET, POST, PUT, DELETE
headersobjectRequest headers
bodyobjectRequest body for POST/PUT
Implementation Notes
# REST API Caller Tool

## Purpose
Execute HTTP requests to external APIs with proper error handling.

## Authentication Support
- API Keys (header or query param)
- Bearer tokens
- Basic auth
- OAuth 2.0

## Error Handling
- Automatic retry with exponential backoff
- Timeout configuration
- Response validation
Generated JSON Schema
{
  "type": "object",
  "name": "REST API Caller",
  "geneType": "tool",
  "parameters": {
    "url": { "type": "string", "required": true },
    "method": { "type": "string", "required": true },
    "headers": { "type": "object" },
    "body": { "type": "object" }
  }
}