Skip to main content
A platform key lets your own code create businesses and set them up through LobbyStack’s API. It also lets the 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.
The page lists each key by name, with who created it and when, and when it was last used. Members see the page but can’t make, update or revoke keys.

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 /businesses creates a business with no owner yet. Name the owner in owner_email, and LobbyStack emails them your invitation. Leave it out to run the business from your own product. access_level takes full, the default, or activity.
  • Every other request names its business in the LobbyStack-Business header.
  • Links the API returns, such as a widget’s script tag or a calendar connect link, point at your address.
Your keys can create 30 businesses an hour between them. 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, leave owner_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.

On a paid tier, a key with 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.
On Free, these requests return 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_number with PATCH /receptionist.
  • Onboarding: Your key finishes it with POST /onboarding/complete. Send skip_number: true if the business has no number.
  • Selling and handing over: A package needs an owner, because the checkout opens from their invitation. package_id returns 400 without owner_email, and setting a package later returns 409. 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 the lobbystack command:
The key acts as an admin, so it can’t invite an owner or change an owner’s role. Only owners can give a key billing access, and a tier checkout the key starts goes to the owner who gave it that access, when they created or last updated the key. Billing access lasts while that person is still an owner. If they become an admin or leave your team, the key loses billing access and keeps the rest. Write access to billing includes read access. Partner endpoints lists what each access allows.

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:
The key needs 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
Leave 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:
Run the command again whenever the file changes, and it changes only what differs. Your key keeps reaching the business after its owner joins. Onboard a business from the command line covers every section of the file.

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