A Route is a custom endpoint under /rest/v1 handled by a flow, the same as Logic → Routes in Studio.
Your app then calls it with pawabase.routes.post("orders/42/pay", ...). See Routes.

Check who owns what

A route’s policy can’t know an order is the caller’s; the flow must check. Make “load the record as the caller, then continue” the first steps of the flow (Rules on routes).

Flows

What runs.

Calling routes

From your app.