Workspaces and team
A workspace is one business: its channel, its customers, its conversations, its workflows. Everything in this API belongs to exactly one.
You only ever see your own workspace
A record belonging to another workspace comes back as 404, not 403. There is no way to discover that an id exists somewhere else — from inside your workspace, it does not.
Your workspaces
GET /v1/workspaces/current the one your token is scoped to
GET /v1/workspaces/mine every one you belong to, with your role
PATCH /v1/workspaces/current rename it (owners only)
PUT /v1/workspaces/current/retention
how long message text is kept (owners only)
PUT /v1/workspaces/current/idle
hours of silence before a conversation counts
as quiet, 1 to 23 (owners only)
PUT /v1/workspaces/current/channel-linking
whether a one-time code a customer carries to
WhatsApp merges their records (owners only)Each access token is scoped to exactly one workspace, which is why no other endpoint takes a workspace id. Your first workspace is created when you sign up, and you are its owner.
More than one business
POST /v1/workspaces
{ "name": "Ada Shoes" }
POST /v1/workspaces/{id}/switch
{ "refreshToken": "<the one you are leaving>" }Creating a workspace makes you its owner; your token stays where it was. Switching returns a new token pair scoped to the workspace you name, with your role there - the same shape as login, without the password again. A workspace you do not belong to is 404, the same as one that does not exist.
The refresh token you leave is revoked
Send it with the switch and it stops working. Presenting a revoked refresh token afterwards is treated as theft and signs you out everywhere, exactly as it does after logout - so replace it wherever you stored it before making another call with it.
Workspace management is for people. An API key belongs to one workspace and gets 403 from these endpoints.
Members
GET /v1/users everyone here
GET /v1/users/{id} one member
GET /v1/users/me you, and your role
PATCH /v1/users/me your own name or phone
DELETE /v1/users/{id} remove a member (owners only)
GET /v1/users/me/sessions the devices you are signed in on
DELETE /v1/users/me/sessions/{sessionId} sign one of them out
POST /v1/users/me/sessions/sign-out-others sign out everywhere else
GET /v1/users/sessions how each member's login is used (owners only)
DELETE /v1/users/{id}/sessions sign a member out everywhere (owners only)
GET /v1/audit?userId=&from=&to=&before= who did what, newest first (owners only;
the plan's audit log)A plan caps how many devices one person stays signed in on (team.max_sessions_per_user); signing in past it signs the least recently used one out. Every change made through the API is recorded for the audit log - who, what, when and from where, never what was sent.
Two roles. staff does the daily work: reading and replying to conversations, managing customers, syncing templates, and reading everything else. owner can additionally change what the workspace is — the rule is that anything which alters what gets sent automatically, who can get in, or which credentials exist needs an owner:
connect, rotate, disconnect or delete a channel - WhatsApp or Instagram
exchange a WhatsApp signup code and confirm its authorized number
request an email verification message and verify the owner's code or link
preview and restore deleted WhatsApp conversation history
set the questions on an Instagram profile
create, publish, enable or disable a workflow
draft a workflow from a description
recover workflow draft jobs and read their history
write, change or delete a trigger of your own
write, send, stop or archive a campaign
say which kind of case a campaign’s replies are
merge two customers into one
invite people, and remove members
rename the workspace
set when a conversation counts as quiet
let a one-time code merge a customer's channels
submit a new template to Meta, and delete one
submit a verification-code template
draft a template from a description
issue or revoke API keys
add, change or remove webhooks
turn the AI assistant on or off, and set what it may say
create, edit, publish, withdraw and delete business knowledge entries
answer or dismiss a question the AI could not answer
map your own event names to orders
connect, refresh, complete onboarding or disconnect the merchant payment account
switch automatic payment links on or off (POST /v1/payments/account/workflow, DELETE /v1/payments/account/workflow)
choose payment templates (PUT /v1/payments/account/templates)
set the receipt wording and late-receipt template (PUT /v1/payments/account/receipt)
submit the order shipped and delivered templates (POST /v1/order-updates/templates)
rename the shop, switch it on or off, or arrange its home page (PATCH /v1/shop, GET /v1/shop/availability)
put the shop on your own domain or take it off (PUT /v1/shop/domain, DELETE /v1/shop/domain)
switch the shop's checkout reminders on or off and choose WhatsApp, email or both (PATCH /v1/shop/recovery)
switch back-in-stock alerts on or off and choose what their form asks for (PATCH /v1/shop/restock)
choose what checkout asks buyers for (PATCH /v1/shop/checkout-contact)
set the shop's banner slides and featured tiles (PUT /v1/shop/promos)
make, change, pause and delete the shop's discount codes (POST /v1/shop/discounts, PUT and DELETE /v1/shop/discounts/{id})
set how many open cases one person may hold before new cases go to someone else (PUT /v1/cases/routing)
see how each member's login is used and sign a member out everywhere (GET /v1/users/sessions, DELETE /v1/users/{id}/sessions)
read the audit log (GET /v1/audit)
set the low-stock level, for the catalogue or one product (PUT /v1/catalog/stock-alerts, PUT /v1/catalog/products/{id}/low-stock)
retry checkout reminders or back-in-stock messages that did not send (POST /v1/catalog/stock-alerts/retry)
abandon an unconfirmed payment attempt (POST /v1/chat-orders/{orderId}/payments/{requestId}/abandon)
send or record a refund on an order (POST /v1/chat-orders/{id}/refunds)
turn website chat on or off and change its settings (PUT /v1/webchat/settings)
read merchant balances, destinations and withdrawal history (GET /v1/payments/withdrawals, /balances, /destinations, /attempts, /providers)
register a merchant payout destination (POST /v1/payments/withdrawals/destinations)
review, confirm or check a withdrawal (POST /v1/payments/withdrawals/review, /{id}/confirm, /{id}/check)
write the weekly brief on demand
see and choose where alerts are delivered
lift an opt-outA staff member calling any of those gets 403.
Abandoning a payment attempt requires an owner to check Bachs first and confirm no payment exists under the order reference. Only a pending attempt without a provider checkout ID can be abandoned; the action is audited and allows a replacement attempt. A confirmed checkout cannot be abandoned through this endpoint: use Check payment to reconcile it.
Merchant withdrawals are separate from subscription billing. Only an owner can see the available and pending balances or request a withdrawal. Confirmation and destination registration require the current owner's password. Payout destinations must belong to the merchant and be approved by Bachs. After a timeout, check the existing attempt; starting a second payout can withdraw the money twice. Same-currency fees shown before confirmation are estimates; Bachs confirms actual fees on the payout record.
You cannot remove yourself
A workspace with no owner is unadministrable, and the only fix is a platform administrator reaching into the database. Refused rather than allowed and regretted.
Invitations
POST /v1/users/invitations
{ "email": "colleague@example.com", "role": "staff" }Sends an email with a single-use token. The invitee accepts it with POST /v1/auth/invitations/accept, choosing their own password — you never set one for them, and no endpoint will tell you whether they have.
GET /v1/users/invitations pending ones
DELETE /v1/users/invitations/{id} revokeRevoking kills the token. An invitation sent to the wrong address is undone by revoking it, not by hoping nobody clicks.
Invitation links are credentials
Anyone holding the link can join the workspace as the role it names. Accepting one is throttled per address for the same reason sign-in is: the endpoint verifies a password for an address that may already have an account, which makes it a password oracle if left open.
Next
API keys →
Issuing, revoking, and the two paths a key can reach.