Skip to main content

Basic Usage

Configuration

HTTP Methods

GET Request

Output:

POST Request

PUT Request

DELETE Request

PATCH Request

URL Interpolation

Static URL

Path Parameters

Query Parameters

Dynamic URL from Input

URL with Previous Operation Output

Headers

Static Headers

With Environment Variables

With Input Values

Dynamic Headers from Previous Operations

Request Body

JSON Body

String Body

Form Data

Timeout Configuration

Default Timeout (30s)

Short Timeout for Fast APIs

Long Timeout for Slow Operations

Retry Configuration

Basic Retry

Backoff Pattern:
  • Attempt 1: immediate
  • Attempt 2: 1s delay
  • Attempt 3: 2s delay
  • Attempt 4: 4s delay

Conditional Retry

No Retries

Response Handling

Automatic JSON Parsing

Access Response Headers

Check Status Code

GraphQL API

Webhook Handler

OAuth Token Refresh

Third-Party Integrations

Stripe Payment

SendGrid Email

Slack Notification

Twilio SMS

GitHub API

Error Handling

Check Response Status

Fallback API

Handle Timeout

Conditional Caching

Cache Based on Response

Performance Tips

Parallel Requests

Execute multiple independent HTTP requests in parallel:

Set Appropriate Timeouts

Cache Aggressively

Batch Requests

Testing

Best Practices

1. Always Set Timeouts
2. Use Retries for Transient Failures
3. Secure API Keys
4. Cache Responses
5. Handle Errors Gracefully
6. Use HTTPS
7. Validate Responses

Pitfall: Hardcoded URLs

Next Steps

tools Operation

MCP tools

email Operation

Send emails

storage Operation

Store API responses

Fetch Agent

Starter Kit HTTP agent