Skip to content
LogoLogo

About apps

An app connects Picked to another service. It can add a page to the dashboard. It can also add panels to the window that publishes a workspace. It can add workflow tools, and tools for the AI agent in the dashboard.

This page answers two questions. What is an app? Why does Picked install an app on each project at one fixed version?

App, version and installation

Three things carry the name "app", and each one has a different owner.

  • The app belongs to one organization. That organization builds the app, deploys it, and holds its keys. A handle identifies the app in the organization, for example lead-insights.
  • A version is one manifest that the organization deployed. You cannot change a version. When the organization deploys a different manifest, Picked adds the next version number. When the manifest is the same as the newest version of that kind, Picked adds no version. See Release versions and dev versions.
  • An installation is one app on one project, at one version. A project holds one installation of an app at most. The installation has its own slug in the project, its own scopes, and its own data.

Therefore, the organization that builds an app and the project that uses it can be different. The members of a project decide what an app can do on that project. The author of the app decides what the next version asks for.

One manifest holds the whole app

The manifest declares every part of the app together. It holds the address of the server of the app, and the pages of the app. It also holds the workflow tools, the MCP server, the events that the app receives, and the scopes that the app asks for. See App manifest for each field.

These parts change together. A new workflow tool can need a new scope. A new page can need a new tool on the server. When one version holds all of them, a person can check that version, accept it, and upgrade to it as one item. When the parts are separate, a project gets each change at a different time. Then nobody accepts the full set of access that the app uses.

Why an installation stays on its version

A new version does not change an installation. The installation stays on its version until a person on that project upgrades it. The Apps page of the project then shows New version available. Upgrade opens the same consent window that an installation opens.

This rule keeps the control of a project with the people on that project. A new version cannot add a scope, a tool, or a new server address to a project if those people do not approve it.

The rule has a cost for the author of the app. Different projects can stay on different versions for a long time. A project that never upgrades continues to call the endpoint of its own version. Therefore, the server of an app must continue to serve each version that a project still uses.

Release versions and dev versions

Each version is a release version or a dev version. The API calls this the channel of the version.

  • RELEASE versions are for every project that can install the app. picked app deploy writes a release version.
  • DEV versions come from picked app dev. Only the projects of the organization that owns the app can install a dev version. The dashboard shows Dev next to it.

A new installation uses the newest release version. Before the first release, the organization that owns the app installs the newest dev version. An upgrade moves to the newest version of the same kind. So a dev installation moves to the next dev version. A release installation never gets a dev version.

With dev versions, an author can try a version on a real project before other projects can get it. The installation, the consent and the upgrade are the same as for a release. See the guide for a local server.

An app asks for scopes in its manifest, for example organization_leads/read. These are the same scopes that an API key or a member role holds. See Authorization and scopes.

When a person installs or upgrades an app, the dashboard shows each scope that the version asks for. For an upgrade, it also marks each new scope as New. It also shows each scope that the version no longer asks for. The person accepts the full list, or does not continue. A person cannot accept only a part of the list.

Three rules make this consent real:

  • The accepted list must be the list of the version. The request carries the scopes that the person accepted. If the version asks for a different list, the request fails. So a version cannot get a scope that the person did not see.
  • You cannot grant a scope that you do not hold. The person must hold each scope at that project. If not, the request fails with Cannot grant scopes you do not hold. So an app never gets more access than the person who accepted it.
  • Access outside a request is a separate grant. An app that must work by itself, for example to copy data at fixed times, asks for offlineAccess. The consent window then tells the person, below the scopes. The person must accept it with the scopes. See Access outside a request.

The app must also accept. Picked tells the server of the app about each installation and each upgrade. If the server refuses, or if Picked cannot get to it, Picked undoes the change. It removes a new installation. It moves an upgraded installation back to its old version and its old scopes. Therefore, a project never has an installation that its app does not know about.

When the manifest has no endpoint, Picked sends no message, and the change stays.

Private apps and public apps

An app is private to the organization that owns it. Only the projects of that organization can install it.

A public app is available to every organization. Only Picked can make an app public. This change needs the apps/publish scope, which only Picked holds. The app must also have a release version. The Apps page of a project shows Published by Picked on a public app.

Each organization that installs a public app gets its own installation, with its own consent and its own data. The author of the app does not get access to a project until a person on that project installs the app.

Picked makes its own apps on the same platform. Examples are the Vercel app, the Zoho CRM app, and the Google apps.

Apps, external APIs and MCP connections

A project can also connect to other services without an app.

  • An external API is an origin that one project registers for the External API workflow node. The project holds the origin and the credential.
  • An MCP connection is an MCP server that one project registers for the AI agent. The project holds the URL and the credential.

Both belong to one project, and a person on that project configures each one. An app is different. Its author makes workflow tools, pages and an MCP server as one version, and many projects can install it. An app never adds an external API or an MCP connection to a project. When you remove an app, its tools stop. The external APIs and the MCP connections of the project do not change.

An external API is a good choice when one project calls one service with its own credential. An app is a good choice when the same connection must work in many projects. An app is also the choice when the connection needs a page in the dashboard.

Why an app keeps its data in Picked

An app often must keep data for each installation. Examples are the token of another service, or the list of projects to deploy. Picked keeps this data for the app, as labels on the installation. Therefore, the server of the app needs no database. It holds one private key. Each request from Picked identifies the installation and the address of Picked to call back.

Labels also make removal complete. When a person removes an app, Picked tells the app first, while the app can still read its labels. Therefore, an app that holds a grant at another service can revoke it there. Then Picked removes the labels and the tokens of the installation. Picked removes them also when the app does not answer.

An app can mark a label as secret. See Why the app holds no other data.