Both run as the person who called them. If a user is signed in, their identity is attached to the call, and the access rule on the flow or route decides whether they may run it. You never pass a user id in the request and trust it.
Get started
How a call travels
- Your app calls the method. The client adds your API key and the signed-in user’s token.
- Pawabase checks the access rule on that flow or route against the caller.
- If allowed, your logic runs on the server. It can use secrets, other services and the database, with whatever authority you gave it.
- The result comes back to your app.
Which form should I use?
- Choose a flow when it is a sequence of steps that other people on your team should be able to see and change, or when it uses built-in building blocks such as sending mail, publishing to a channel, emitting an event or calling another service.
- Choose a route when you want the address to look like part of your API (
POST /orders/42/pay) and when the same logic should be reachable from outside your app too, by anything that can make an HTTP request.
What this section covers
Flows
Run an automation and use its response.
Routes
Call custom URLs with GET, POST, PUT, PATCH and DELETE.
Patterns
Checkout, long jobs, retries, timeouts, uploads and testing.