Skip to content

Developers: SaleFlowPoint APIs

Connect your own system, app or custom chatbot to SaleFlowPoint.

Get your API key

Every call needs an API key from your own SaleFlowPoint account. One key works for both the Business API and the WhatsApp API. You do not need a WhatsApp number in API mode to make a key.

Who can make one: the company owner or anyone whose role has the permission Connect numbers and change mode, chatbot, webhooks and API keys (whatsapp:manage). Others can see the list of keys but not make or revoke them.

Where: sign in at saleflowpoint.com/login, open WhatsApp & AI Agents (the WhatsApp icon in the top bar), then API keys in the WhatsApp menu. Direct link once you are signed in: https://saleflowpoint.com/whatsapp/api.

WhatsApp & AI Agents menu with API keys highlighted
1. In WhatsApp & AI Agents, open API keys in the WhatsApp menu, then press + New key.
  1. Press + New key at the top of the page.
  2. Type a Name for the key, for example Online shop or Booking system.
  3. Optional: tick Set limits.
    • Full access lets the key use every call of both APIs (the same as no limits).
    • Only some actions shows two groups, WhatsApp API and SaleFlowPoint Business API. Tick the actions your system needs, or press Select all in this group. A call outside them answers 403.
    • Expires on: the key stops at the end of that day (UTC) and then answers 401.
    • Only allow these IP addresses: one address or range per line, for example 203.0.113.10 or 203.0.113.0/24. Leave it empty to allow any address.
  4. Press Create key.
  5. Copy your key now. It starts with sfp_live_ and is shown only once. Press Copy, then I have saved it.
  6. Store it on your own server (a secret store or an environment variable), never in a web page, browser or phone app: anyone who can read the page could read the key.
The New API key form: name, Set limits, Only some actions with the WhatsApp API and Business API groups, expiry date and IP addresses
2. Name the key and, if you want, choose its actions, an expiry date and IP addresses. Then press Create key.
Copy your key now box with a new key starting sfp_live_, a Copy button and I have saved it
3. Copy the key at once: it is shown only once. (The key in this picture is hidden.)
The API keys table: name, key, limits, created, last used, status and the Limits and Revoke buttons
4. Your keys: name, first characters, limits, dates and status. Change limits or revoke a key here; revoked keys are folded away.

Scopes in plain words

ScopeWhat it allows
agent:bookingsBusiness API: services, staff, free times and bookings
agent:ordersBusiness API: products and shop orders
agent:invoicesBusiness API: a customer's invoices
agent:paymentsBusiness API: a customer's payments
agent:purchasesBusiness API: a customer's purchases
agent:returnsBusiness API: return requests
wa:sendWhatsApp API: send messages and mark them read
wa:readWhatsApp API: numbers, messages and conversations
wa:mediaWhatsApp API: upload and download files
wa:templatesWhatsApp API: message templates
wa:groupsWhatsApp API: group chats

The Business API's /branches lookup works with any agent: scope.

Use and test the key

Send it in the Authorization header of every call:

curl https://saleflowpoint.com/api/v1/business-api/services \
  -H "Authorization: Bearer sfp_live_..."

A 200 answer means the key works. 401: the key is wrong, revoked or expired. 403: the call is outside the key's scopes or IP allowlist.

Replace, revoke or lost key

  • Replace a key: make the new key first, switch your system to it, then revoke the old one.
  • Revoke: press Revoke on the key. Every system using it stops at once; this cannot be undone.
  • Lost it? We cannot show a key again (we keep only a fingerprint of it). Make a new key and revoke the old one.
  • Leaked it? Revoke it straight away, then make a new one.
Loading SaleFlowPoint…