Skip to main content
This page follows one made-up app the whole way. Acme is a business on Bachs that makes a helpdesk called Deskly. Mama’s Kitchen is a merchant on Bachs that wants Deskly to see its payments and make refunds.

Words you will see

The life of an app

1

Acme builds Deskly in sandbox

In Developer Portal → Apps, Acme creates Deskly and gets its client secret, shown once. It adds an icon, links, a callback address, the permissions it wants with a reason for each, and a webhook. It clicks Test install to run a connection against one of its own sandbox businesses. See Create an app.
2

Acme copies it to live and publishes it

Copy to live makes the live Deskly with a new live secret. It starts private. Acme clicks Publish and picks unlisted or public. Eight checks run in seconds and Deskly is live. See Publish your app.
3

Mama's Kitchen clicks Connect

On Deskly’s site, or on Install in the Bachs app directory, which sends them to Deskly’s site. Deskly’s server makes a state and a verifier and sends the browser to Bachs.
4

Mama's Kitchen approves on Bachs

The approval page shows Deskly, “by Acme” with a Verified business mark, a business picker, each permission with Deskly’s reason, and Deskly’s privacy and terms links. They click Allow. Bachs sends the browser back to Deskly with a one-time code.
5

Deskly swaps the code for tokens

Deskly’s server sends the code, its client secret and the verifier to Bachs. It gets an access token, a refresh token, and the signing secret for the webhook Bachs just set up for this business. See Connect a business.
6

Deskly works for Mama's Kitchen

It calls the API with the access token, limited to the approved permissions, and receives signed events such as collection.succeeded. About every hour it refreshes. Each refresh moves the connection’s end to 90 days from then.
7

The connection ends

Mama’s Kitchen disconnects, Deskly revokes it, nobody refreshes for 90 days, Acme deletes Deskly, or Bachs suspends it. Deskly gets app.deauthorized first, then its tokens and webhook for that business stop. Mama’s Kitchen’s business is not touched. See When a connection ends.

Why each safety step is there