Class: Http
Methods
fetch()
Make an HTTP request through the host. Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | str | Yes | - | Target URL |
method | str | No | "GET" | HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD) |
headers | dict[str, str] | None | No | None | Request headers |
body | str | None | No | None | Request body (string) |
timeout_ms | int | None | No | None | Request timeout in milliseconds |
HttpResponse
Raises: HttpError on network-level failure (DNS, TLS, timeout, connection)
HttpResponse
Basic GET
POST with JSON
Error Handling
Timeout
Methods
All HTTP methods are supported:Headers
Case-insensitive header dict:Creating Artifacts
Common pattern: create Friday platform artifacts via HTTP API:REST API Patterns
Authentication
Query Parameters
Construct URL with parameters:Response Body Limits
- 5MB limit enforced by platform
- Exceeding returns truncated or error response
- For large payloads, consider streaming (not yet available)
URL Allowlists
Not yet implemented. Currently all outbound HTTPS requests are allowed.Why Not Use requests or httpx?
Agents run as native Python processes. You can pip install requests or httpx if needed. Host-provided HTTP is still preferred for audit logging, rate limiting, TLS management, and response limits.
See Also
How to Make HTTP Requests
Task-oriented guide

