REST API Caller
REST API Caller
ToolBeginnerMake HTTP requests to external APIs with authentication and error handling.
API Integrationapihttprestintegration
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
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | The API endpoint URL | |
| method | string | HTTP method: GET, POST, PUT, DELETE | |
| headers | object | Request headers | |
| body | object | Request 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" }
}
}