Passer au contenu principal
POST
Create a business

Autorisations

Authorization
string
header
requis

An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create, phone_numbers:purchase, partner:read, partner.businesses:write, partner.demos:write, partner.packages:write, partner.branding:write, partner.templates:write, partner.team:write, partner.billing:read, partner.billing:write. Only platform keys can hold businesses:create and users:create, and only a key a partner made in its console can hold the partner scopes, which the Partner endpoints use. Only a partner's owners grant partner.billing:read and partner.billing:write.

En-têtes

Idempotency-Key
string
requis

Required. A unique value, up to 255 characters, that makes retries of this request safe.

Maximum string length: 255

Corps

application/json
name
string
requis
Required string length: 1 - 200
timezone
string
requis

IANA time zone, for example America/Toronto.

Required string length: 1 - 80
business_type
string

Defaults to service_company, the type the dashboard uses.

Required string length: 1 - 64
slug
string

Lowercase letters, digits and hyphens. Made from the name when left out. Another business already using it is a 409.

Required string length: 2 - 120
locale
enum<string>

Default language for callers: en, fr, es, sr (Serbian, Latin script), de, pt (Brazilian Portuguese), it, nl, pl, tr, vi, tl (Tagalog), sv, ru or uk. Defaults to en.

Options disponibles:
en,
fr,
es,
sr,
de,
pt,
it,
nl,
pl,
tr,
vi,
tl,
sv,
ru,
uk
website_url
string<uri>
Maximum string length: 2000
owner_email
string

Only with a partner's platform key. The partner emails this address an invitation to own the business and sign in on the partner's dashboard. Leave it out for a business you run from your own product: nobody hears from LobbyStack, and nobody can own the business later. It then can't be released and can't take package_id. Webhooks cover its calls and messages, and its other alerts email the partner's owners and admins. Set a transfer_number on the receptionist, or calls it can't take are refused.

Required string length: 3 - 320
access_level
enum<string>

Only with a partner's platform key: what the business's own team can use. full, the default, lets them run the receptionist, its knowledge, hours, services and team, without billing, API keys or MCP. activity shows them calls, chats, appointments, contacts and messages, and the partner sets up the receptionist.

Options disponibles:
full,
activity
template_id
string<uuid>

Only with a partner's platform key: one of the partner's templates, from GET /partner/templates, to start the business from. The key needs partner:read too. The business takes its setup and documents, apart from the name and time zone sent here, before the owner's invitation goes out. A template that can't be applied leaves no business behind and is a 409.

package_id
string<uuid>

Only with a partner's platform key: one of the partner's packages, from GET /partner/packages, to sell the business. The key needs partner.businesses:write too, and owner_email is required. The owner's invitation then opens a checkout on the partner's Stripe account. Left out, the business is billed outside LobbyStack.

Réponse

Created

data
object
requis