Overview
HTTP commands provide functionality for:- Making GET, POST, PUT, DELETE, and other HTTP method requests
- Configuring request headers, query parameters, and request bodies
- Handling authentication and authorization
- Managing timeouts and error handling
- Processing HTTP responses
Available Commands
Common Use Cases
- API Integration: Fetch data from REST APIs
- Web Scraping: Retrieve HTML content from web pages
- Data Synchronization: Pull data from external services
- Authentication: Handle API authentication flows
- Webhook Processing: Send data to webhook endpoints
Command Parameters
HTTP commands typically support the following parameters:| Parameter | Type | Description | Required |
|---|---|---|---|
| url | string | The target URL for the HTTP request | Yes |
| method | string | HTTP method (GET, POST, PUT, DELETE, etc.) | No (defaults to GET) |
| headers | object | HTTP headers to include in the request | No |
| body | string/object | Request body for POST/PUT requests | No |
| timeout | number | Maximum wait time in milliseconds | No |
| queryParams | object | URL query parameters | No |
Variable Support
HTTP commands support variable interpolation in URLs, headers, and request bodies:Best Practices
- Use Secrets for Credentials: Always use
%{SECRET_NAME}for API keys and passwords - Set Appropriate Timeouts: Configure timeouts based on expected response times
- Handle Errors: Implement error handling for failed requests
- Use Project Variables: Leverage
@{PROJECT_ID}and@{RUN_ID}for tracking - Validate Responses: Always validate response structure before processing
Related Commands
- Parse Commands - Parse HTTP response data
- Validation Commands - Validate HTTP responses
- Sink Commands - Send HTTP response data to destinations