Apps
Install app
Install a registered app on a Cloud instance.
/apps/{slug}/installInstall a registered app on one Cloud instance. Blnk creates a scoped API key, sends the install to the app’s registration callback, and finishes the install when that callback returns 2xx.
An admin or a member calls this with a user session token, the account password, and two_factor_code when 2FA is on. An API key cannot install an app.
Header
Authorizationstring
Bearer session token for the current organization.
Path
slugstring
slug from Register app.
Query
instance_idstring
Core instance to install the app on (instance_...). Send this when the body does not include instance_id.
Body
instance_idstring
Core instance to install the app on (instance_...). The instance has to belong to the current organization, and the app can be installed once on it. You can send this as a query parameter instead.
passwordstring
Account password of the signed-in user.
two_factor_codestring
2FA code. Required when 2FA is on for this user.
permissionsstring[]
Scopes to grant on this install. Omit it to grant every permission the app declares. If the app declared none, Blnk grants data:read.
A list you send has to be a non-empty subset of those permissions.
Response
A 201 response returns the installation and the API key. Save installed_app_id and api_key.
installed_app_idstring
Id of this installation (instapp_...). Use it on Launch app.
app_idstring
Id of the app (app_...).
api_keystring
Scoped API key for this installation (blnk_...). The app uses it to call Blnk for this instance.
api_key_prefixstring
Prefix of api_key, safe to store in logs.
granted_permissionsstring[]
Scopes granted on the key.
pinnedboolean
Whether the app is pinned in the sidebar. false on a new install.
messagestring
App installed successfully.