External service proxying endpoints for forwarding requests to external services.
Important: You can only egress to domains that are listed in the Runtime egress permissions in your Forge Manifest. See Runtime egress permissions for details.
External domains must be declared in the permissions.external.fetch.backend section of your manifest.yml file.
Use the /proxy/{target} endpoint to proxy requests to external services.
Proxies requests to external services through the Forge Outbound Proxy (FOP). The target parameter specifies the external service to proxy to.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredRequest successfully proxied
object
1
2
3
4
curl --request GET \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123'Proxies PUT requests to external services through the Forge Outbound Proxy (FOP). The target parameter specifies the external service to proxy to.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
Generic request body
object
Request successfully proxied
object
1
2
3
4
5
6
curl --request PUT \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123' \
--header 'Content-Type: application/json' \
--data '{}'Proxies POST requests to external services through the Forge Outbound Proxy (FOP). The target parameter specifies the external service to proxy to.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
Generic request body
object
Request successfully proxied
object
1
2
3
4
5
6
curl --request POST \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123' \
--header 'Content-Type: application/json' \
--data '{}'Proxies DELETE requests to external services through the Forge Outbound Proxy (FOP). The target parameter specifies the external service to proxy to.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredRequest successfully proxied
object
1
2
3
4
curl --request DELETE \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123'Proxies OPTIONS requests to external services through the Forge Outbound Proxy (FOP). Used for CORS preflight requests and method discovery.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredRequest successfully proxied
object
1
2
3
4
curl --request OPTIONS \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123'Proxies HEAD requests to external services through the Forge Outbound Proxy (FOP). Returns headers without response body, useful for checking resource existence.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredRequest successfully proxied
object
1
2
3
4
curl --request HEAD \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123'Proxies PATCH requests to external services through the Forge Outbound Proxy (FOP). The target parameter specifies the external service to proxy to.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
Generic request body
object
Request successfully proxied
object
1
2
3
4
5
6
curl --request PATCH \
--url '{FORGE_EGRESS_PROXY_URL}/proxy/{target}' \
--header 'Accept: application/json' \
--header 'forge-proxy-authorization: Forge as=app,id=invocation-123' \
--header 'Content-Type: application/json' \
--data '{}'Rate this page: