Skip to main content

Basic GET request

POST with JSON Body

Access environment variables via ctx.env - configure them in the decorator:

Response Handling

Error Handling

HTTP errors raise HttpError:

Timeouts

Methods and Options

Limitations

  • 5MB response limit - Matches Friday’s platform webfetch limit
  • No URL allowlists yet - Designed but not implemented; all outbound requests allowed
  • No streaming responses - Body returned as complete string

ctx.http reference

Full API reference for HTTP fetch.

Use MCP tools

For APIs with MCP servers, tools may be simpler than raw HTTP.