This feature is only available in the Enterprise version

Apps

Install app

Install a registered app on a Cloud instance.

POST/apps/{slug}/install

Install 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.

Authorizationstringrequiredheader

Bearer session token for the current organization.

Path

slugstringrequiredpath

slug from Register app.

Query

instance_idstringquery

Core instance to install the app on (instance_...). Send this when the body does not include instance_id.

Body

instance_idstringrequiredbody

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.

passwordstringrequiredbody

Account password of the signed-in user.

two_factor_codestringbody

2FA code. Required when 2FA is on for this user.

permissionsstring[]body

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_idstringrequired

Id of this installation (instapp_...). Use it on Launch app.

app_idstringrequired

Id of the app (app_...).

api_keystringrequired

Scoped API key for this installation (blnk_...). The app uses it to call Blnk for this instance.

api_key_prefixstringrequired

Prefix of api_key, safe to store in logs.

granted_permissionsstring[]required

Scopes granted on the key.

pinnedbooleanrequired

Whether the app is pinned in the sidebar. false on a new install.

messagestringrequired

App installed successfully.