Developers

Creating and managing API keys

Updated 13 November 2026

API keys let your own code call the Baat API. Each key belongs to your organization and carries a set of scopes that limit what it can do. Manage keys under Settings → Developers → API keys.

Which plan you need

Creating an API key needs the Business plan. You can also create keys during the free trial. Keys you created earlier keep working on any plan.

Creating a key

Click Create key, then:

  • Name — name it after the system that will use it, such as Order system

  • Scopes — tick only the permissions this key needs (see the table below)

  • Click Create

The secret is shown only once. Baat displays the full bk_live_… value a single time. Copy it into your secret manager straight away. If you lose it, delete the key and create a new one. Afterwards the dashboard shows only a masked value like bk_live_****a1b2.

For a ready-to-run request, open a template under Settings → Templates and use its Send via API tab. See Sending WhatsApp messages with the API.

Scopes

ScopeWhat it allows
messages:sendSend template and text messages: POST /m1/whatsapp/messages
messages:readRead the messages in a conversation: GET /m1/orgs/{orgId}/messages
contacts:writeCreate or update contacts: POST /v1/remote/contacts
templates:readList a channel’s templates: GET /v1/remote/account/channels/{channelId}/whatsapp-templates

The Create key form also lists Read contacts, Manage broadcasts and Manage webhooks. No API endpoint uses them yet, so ticking them adds nothing.

A key’s scopes cannot be changed after it is created. To grant a different set, create a new key.

Reading the keys table

ColumnMeaning
KeyThe masked secret. The full secret can never be shown again
ScopesThe permissions the key has
StatusActive or Inactive

Revoking and deleting

Open the ⋮ menu on a key:

  • Revoke key — sets the key to Inactive. Calls with it are refused at once, and the key stays in the list. Choose Re-activate key to turn it back on

  • Delete — removes the key for good. This cannot be undone

If a secret may have leaked, revoke the key, create a new one, and update your application.

Treat keys like passwords. Anyone with a key can send messages from your WhatsApp number, and those messages are charged to your account. Give each key only the scopes it needs, keep it out of source control, and revoke it the moment anything looks wrong.

Related reading

Where this fits in the wider picture.

Need a hand?

Our team answers on WhatsApp, usually within a business day.

Contact support Book a demo