How to set up HTTP
Authentication
The HTTP integration supports flexible header-based authentication:- Add the HTTP integration in Cargo
- Configure headers for authentication:
- Public headers: Visible values (Content-Type, etc.)
- Secret headers: Encrypted values (API keys, tokens)
HTTP actions
Call
Make HTTP requests to any API endpoint. Required fields:- URL: The endpoint URL (supports template expressions)
- Method: POST, PUT, PATCH, GET, or DELETE
- Body format: Form, JSON, or Text
- Headers: Additional request headers (merged with connector headers)
- Send data to third-party APIs
- Trigger webhooks
- Integrate with any REST API
- Custom CRM integrations
Browse
Fetch and render web page content. Required fields:- URL: The web page URL
HTTP data models
Listen hook
Receive incoming webhook data from external systems. Configuration: No additional configuration required. When configured, Cargo provides a unique webhook URL. External systems can POST data to this URL to trigger workflows. Use cases:- Receive form submissions
- Process payment notifications
- Handle CRM webhooks
- Integrate with Zapier/Make
Fetch URL
Periodically fetch data from a URL endpoint. Required fields:- URL: The API endpoint that returns JSON
- Path: JSON path to the results array (e.g., “results”, “data.items”)
- Deduplication key: Unique field for deduplication (default: “id”)
- Headers: Additional request headers
- Endpoint must return JSON
- Response should be an array or contain an array at the specified path
- Results should be in reverse chronological order
- Sync data from external APIs
- Monitor RSS-like feeds
- Pull data from custom systems
Example: Posting to a Slack-like webhook
Example: Calling a REST API
Best practices
- Store sensitive credentials (API keys, tokens) as Secret headers
- Use template expressions to dynamically build URLs and bodies
- Set appropriate Content-Type headers for your request format
- Handle pagination when fetching large datasets
- Use the deduplication key to prevent duplicate processing
- Test endpoints with sample data before full deployment

