flow:invoke.
Invocation route
/events.
Request forwarding
- Query parameters are preserved.
- Request bodies are forwarded for methods other than GET and HEAD.
- Application headers are forwarded when possible.
- The ECS
Authorizationheader is removed before forwarding. - The function response is returned directly without an ECS response wrapper.
Build application routes
Treat the function as an HTTP server rather than a single operation. For example:Permission errors
flow:read does not allow invocation. If a caller receives permission_denied, add flow:invoke for the required function resource.
Production patterns
- Use a dedicated invocation key for each application.
- Scope the key to the function name when possible.
- Keep deployment keys out of runtime applications.
- Return clear status codes and content types from the function.
- Put health checks on a lightweight route that does not trigger expensive work.
