Skip to main content

Inbound routes and webhooks

Routes let outside systems call into your app: payment providers, messaging platforms, mobile clients, and similar. You describe the external event and what should happen in the app (for example, mark paid when checkout completes). GenieForge maps that to a protected route and handler. Find routes under App Blueprint → Routes. Always pair the route with a secret.

How to verify

  1. Find the route under App Blueprint → Routes.
  2. Confirm bearer token or signed-webhook protection is configured.
  3. Send a test event from the provider (or a signed test) and check Executions / project data.
  4. Confirm an unsigned or wrong-secret call fails.

Limits and notes

  • Open endpoints with no secret are not available. Prefer a bearer token or signed webhook.
  • A bearer token is read from the Authorization header, or from a custom header that starts with X- (for example X-Api-Key). Headers that browsers and networks add on their own (such as Host, Origin, or User-Agent) cannot carry the token, because any caller would pass.
  • Routes answer with data, not web pages: JSON, plain text, or a CSV download. A route cannot serve HTML. Use a page for anything a person opens in a browser.
  • A refused call always gets the same 403 Forbidden answer, whatever the cause: a missing or wrong secret, a secret that is not set in the app yet, or a route that is set up wrong. The route does not tell outside callers how it is protected. If a provider’s calls are refused, check that the secret is set in the app and matches the provider.
  • A turned-off route answers 404, the same as a route that does not exist.
  • Signed webhooks are checked against the exact bytes the provider sent, so JSON, form posts, and plain text bodies all work.
  • A signed call with exactly the same body and signature as one accepted in the last 15 minutes is refused as a duplicate (409). When the route also requires a timestamp, a repeat is refused for good. A failed run frees the slot, so the provider’s retry still goes through.
  • Keep follow-ups safe to retry so a duplicate delivery does not corrupt state.
  • See Launch checklist.