Documentation Index
Fetch the complete documentation index at: https://guide.cloud.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
This feature is in private beta. If you want access, please contact Support.
- The user clicks Install from the app details page.
- The user reviews and approves the permissions.
- Blnk Cloud creates a scoped API key for the installation.
- Blnk Cloud sends the install event to your backend via the callback URL.
- Your app stores the install details and returns a
2xxresponse. - If the response succeeds, the app becomes active in Cloud.
Handling the install event
An install event tells your app that a user has connected it to a specific organization and instance. Blnk Cloud sends a payload like this:install_payload.json
| Field | Description |
|---|---|
installed_app_id | The ID for this specific app installation. |
app_id | The ID of the app that was installed. |
organization_id | The organization where the app was installed. |
instance_id | The Cloud instance where the app was installed. |
api_key | The scoped API key your backend uses to call Cloud APIs for this install. |
api_key_prefix | A safe prefix for identifying the key without exposing the full secret. |
granted_permissions | The permissions the user approved during installation. |
idempotency_key | A unique key for this install event. Use it to avoid processing the same event twice. |
Note: If your app does not return a
2xx response within 10 seconds, Blnk cancels the installation, revokes the API key, and the install fails.routes.ts
Use whatever encryption or key-management approach fits your stack before you write the secret to your database.
Handling the uninstall event
When a user uninstalls your app, Blnk Cloud revokes the app’s API key and sends an uninstall event to the same callback URL. Your app should use this event to stop treating the installation as active. You can also clean up any resources you created for that organization or instance.uninstall_payload.json
routes.ts
You can also choose to delete encrypted keys, remove portal sessions, or clean up instance-specific resources.
Handling retries
Cloud may retry an install or uninstall event if it does not receive a successful response. Your handler should be safe to run more than once. Use theidempotency_key to check whether you have already processed the event:
routes.ts
Test the installation flow
Before moving to app development, test the install and uninstall flow from Cloud.- Register your app.
- Install the app from the Apps library.
- Confirm your callback URL receives the install event.
- Confirm your callback URL returns a
2xxresponse. - Confirm the install is active in your database.
- Uninstall the app from Cloud.
- Confirm your callback URL receives the uninstall event.
- Confirm the install is no longer active in your database.
Run the example KYC app
Open the demo repository and follow its README to run the KYC example app this documentation is built around.