Apps
Register app
Register a Custom App in the current organization.
/appsA Custom App has to be registered before anyone can install it. This call adds the app to the current organization’s Apps library and returns the slug you use to install it.
Send is_private as true. An admin or a member can call this.
Enterprise authentication
Send these requests to https://api.cloud.blnkfinance.com on Blnk Cloud. On a self-hosted Enterprise deployment, send them to ENTERPRISE_PUBLIC_URL.
Pass an Enterprise API key, or an OAuth access token, in the X-blnk-key header. Create the key in Enterprise API keys, or issue a token with OAuth.
This credential comes from the Cloud or Enterprise workspace. A Core API key belongs to the Core instance.
X-blnk-keystring
Enterprise API key, or an OAuth access token.
Body
namestring
Name shown in the Apps library. Blnk builds slug from this name.
is_privateboolean
Send true so the app stays in the current organization.
registration_callback_urlstring
Absolute http or https URL Blnk calls on install and uninstall. It cannot include credentials, and it cannot target localhost or a private address. See Set Up Install and Uninstall Events.
descriptionstring
Short explanation of what the app does.
logo_urlstring
Public URL of the app logo.
developer_namestring
Company, team, or person that built the app.
portal_generator_urlstring
Absolute http or https URL Blnk calls to open the app. Same address rules as registration_callback_url. Required before anyone can launch the app.
permissionsstring[]
Scopes the app can be granted: data:read, data:write, alerts:read, and alerts:write. Omit this and an install grants data:read.
assigned_tostring[]
User ids allowed to launch the app, from List team members. Omit it, or send an empty array, and every member can launch it. Each id has to be an active member of this organization, with a first and last name, and this field is only for a private app.
require_password_to_launchboolean
When true, every launch asks for the account password again, and for two_factor_code when 2FA is on.
Response
A 201 response returns the app. Save slug.
app_idstring
Id of the app (app_...).
slugstring
Identifier built from name. Use it on Install app.
namestring
Name shown in the Apps library.
descriptionstring
Short explanation of what the app does.
logo_urlstring
Public URL of the app logo.
developer_namestring
Company, team, or person that built the app.
registration_callback_urlstring
URL Blnk calls on install and uninstall.
portal_generator_urlstring
URL Blnk calls to open the app.
permissionsstring[]
Scopes the app can be granted.
is_privateboolean
true when the app belongs to the current organization.
organization_idstring
Organization that owns the app. Set when is_private is true.
assigned_tostring[]
User ids allowed to launch the app. Empty means every member.
require_password_to_launchboolean
Whether a launch asks for the account password again.
created_atstring
When the app was registered.
updated_atstring
When the app was last updated.