On this page
Requests and resources reference
Call external services and work with rule resources.
Before you begin: Random and crypto reference.
Outbound HTTP Requests
FRL v2 can call approved external services from rule code:
Rule excerpt: add this to a complete FRL rule before running it. Try a complete example →
HTTP helpers return { ok, status, statusText, headers, data, text }. data is parsed JSON when possible.
Literal external hosts are checked with the theme version. If a host is not approved yet, the version waits for external request review before other users can install it. URLs from $secret are admin-controlled dynamic hosts; Frontbacked checks the resolved host when the rule runs. Rejected dynamic hosts are blocked for that site/request without disabling the whole theme.
FRL v2 blocks relative HTTP calls back into the same theme's endpoints, same-site full URLs, and proxy loops. It also rejects target URLs built from actor, request, post, payment, or other visitor-controlled data. Use a literal service URL or an admin-filled $secret value for outbound hosts.
Continue with Record helpers reference.