App-to-app calls
Apps call each other securely, with no tokens to set up.
- Plans
- Every plan, including the free app
What you get
- Calls between your own apps over the platform's internal network
- No API keys to create, share or rotate
- The calling app named on every request
- Calls only between apps that both agree: the caller lists the app it calls, and that app lists who may call it
- Traffic that never leaves the platform
- Sleeping apps woken for the call
How it works
An app lists the apps it calls under calls in its whisk.yaml, and the app being called lists the apps it accepts under accepted_callers in its own. The calling app then sends ordinary HTTP to the other app's internal address with its service token, which Whisk issues and rotates every day. A call that either side has not agreed to is refused, and the deploy says which line is missing.
Whisk's edge checks the token before the request arrives. The receiving app decides who may call it, and sees which app sent each request, so it can also decide route by route.
Calls suit questions that need an answer now. To read another app's tables, use a shared database. For work that can wait, the receiving app accepts the request and puts it on its own queue as a durable workflow.
Example
A building supplier runs a stock app and a separate trade quoting app. When a rep builds a quote, the quoting app asks the stock app for current levels at each branch. No key was ever created, so none can leak or expire.
For your coding agent
calls: [stock]
env: { STOCK_APP_ID: "<stock app id>" }and in the stock app's whisk.yaml:
accepted_callers: [quoting]
whisk apps info stock --json prints the ID. The app calls http://<app id>.internal.whisk:8443/<path> with Authorization: Bearer $WHISK_SERVICE_TOKEN, as the whisk.yaml reference explains.
Related features
- Shared databaseKeep customers, products and prices once, read by every app that needs them.
- Durable workflows with retriesMulti-step automations that retry failed steps and pick up where they stopped.
- Team sign-in and access controlYour team signs in with a passkey or an emailed code. You choose who opens each app.