lobbystack onboard command build a business from one file. Owners and admins make keys on the console’s API keys page. A key acts as your partner and reaches only your businesses.
Create a platform key
Give each tool its own key, so you can revoke one without breaking the others:1
Open the form
On API keys, click Create API key.
2
Name the key and pick its access
Enter a Name you’ll recognize, such as
Client onboarding. Under Access, select only what the tool needs. To create businesses, select Create businesses and invite their owners. To run your partner from code, select the partner access the tool needs. Only owners see the billing access.3
Copy the key
Click Create key, then copy the key and store it in a password manager or your tool’s settings. The console shows it once.
What a partner’s key can do
A partner’s key acts as your partner rather than as a person, so it keeps working when the teammate who made it leaves. It reaches your active businesses, including the ones the console created, and no others:POST /businessescreates a business with no owner yet. Name the owner inowner_email, and LobbyStack emails them your invitation. Leave it out to run the business from your own product.access_leveltakesfull, the default, oractivity.- Every other request names its business in the
LobbyStack-Businessheader. - Links the API returns, such as a widget’s script tag or a calendar connect link, point at your address.
POST /businesses takes template_id to start from one of your templates, which needs partner:read, and package_id to sell one of your packages, which needs partner.businesses:write. A key can’t change alert preferences, so do that in the console.
Platform keys lists the scopes, headers and responses.
Run businesses from your own product
If your customers use your product and never see LobbyStack, leaveowner_email out of POST /businesses. Nobody gets an invitation, and your key sets up and runs the business. A key can’t invite an owner, so the business stays without one.
Add it to your product. Build an AI receptionist into your SaaS through the API. Your customers stay in your UI.
phone_numbers:manage and phone_numbers:purchase buys the business’s number. A key doesn’t get phone_numbers:purchase by default, so turn on Find, buy and replace phone numbers on the key first. Send the business in the LobbyStack-Business header:
1
Search
POST /phone-numbers/search returns offers. Each offer lasts 5 minutes, and only the key that searched can claim it.2
Claim
POST /phone-numbers/claims buys the number. Poll GET /phone-numbers/claims/{claim_id} until its status is claimed or failed.3
Replace, if you need to
Search again with
replaces, then call POST /phone-numbers/{phone_number_id}/replace. A business can replace its number once.409. A key never gets your 14-day trial number, because that trial needs one person’s verified mobile. Your keys share 20 searches in 10 minutes, and your tier’s limits on new numbers apply.
A business with no owner has nobody on its team, which changes four things:
- Alerts: Webhooks cover calls, messages, appointments and contacts. LobbyStack emails your owners and admins when a website visitor asks for a person, a transfer or a text fails, a customer’s text needs a reply, a calendar stops syncing, an AI reply fails or a webhook endpoint turns off. You have 3 minutes to answer a visitor from the business’s Inbox. Nobody gets an alert about new website or Instagram chats.
- Calls the receptionist can’t take: LobbyStack forwards them to the business’s transfer number and refuses them without one. Set
transfer_numberwithPATCH /receptionist. - Onboarding: Your key finishes it with
POST /onboarding/complete. Sendskip_number: trueif the business has no number. - Selling and handing over: A package needs an owner, because the checkout opens from their invitation.
package_idreturns400withoutowner_email, and setting a package later returns409. You can delete the business, but you can’t release it.
Run your partner from code
With the partner access, a key does what the console does. It makes and publishes demos, manages packages, changes your brand and domain, saves templates, invites your team, releases or deletes businesses, and shows your tier and Stripe account. A coding assistant or your own scripts can then do your White Label work through the API or thelobbystack command:
Onboard a business from a file
lobbystack onboard reads a YAML or JSON file that describes a business, creates the business and sets it up. Sign in with your partner’s key first. On LobbyStack’s cloud, use https://app.lobbystack.com:
businesses:create, business:read, business:write, knowledge:read, knowledge:write and team:manage, plus phone_numbers:manage and phone_numbers:purchase for a number. A manifest for a partner’s key can name the owner, who gets your invitation when the command creates the business:
harbor-dental.yaml
plan out, because your businesses don’t buy LobbyStack’s plans. On a paid tier, add phone_number and the command claims the first number the search offers. Leave owner out for a business with no owner, and the command finishes its onboarding. Preview the run with --plan, then run it:
Update a key
Click Update beside the key to change its name or access, then Save. The key stays the same, so your tools keep working with it and get the new access on their next request. You can’t update a revoked key. Only owners can update a key that has billing access, so admins see Update turned off on those keys. An owner who saves a key with billing access becomes the owner that access depends on.Revoke a key
Click Revoke beside the key, then Revoke key. Anything that uses it stops working right away, and you can’t undo it:- the webhook endpoints the key created turn off, on every business
- nobody can accept the invitations it sent, to a business’s team or to yours
- owners it invited when it created their business can still join