Platform account and developer tools
API keys are the supported credentials for current developer REST, API SDK, CLI and MCP workflows. API SDKs receive credentials explicitly; they do not automatically read a CLI profile or Platform browser session. The CLI cohort’s--profile selects injected-key metadata; --secure-profile selects OS-stored
keys on supported Windows hosts and rechecks identity for each action/MCP request.
The public 0.2.0-beta.0 CLI cohort retires the older browser flow
that exported a project secret in a callback URL. Its pinned client source
contains protected enrollment/recovery and shared CLI/MCP sessions using explicit
--developer-deployment and --developer-profile selection. Package delivery
does not qualify production enrollment or the real installed browser/native
flow. Verify those for the selected deployment and host. Do not use a Platform
JWT as a public API/MCP token.
This enrollment path uses an existing Platform account with active organization
owner/admin access to the selected project and explicit scope consent. Enrollment
is self-service within those existing permissions. See the
CLI sessions for fixed deployments, qualified hosts
and named recovery. Optional auth login --no-browser emits its URL on stderr
only after protected custody acknowledges; open it on the same computer while
the CLI owns its loopback callback. Default login opens the OS browser. Keep
URLs and verifiers out of saved logs and shared chat.
The target developer sessions are independent of browser sign-out: CLI logout
or explicit developer-access revocation ends those grants. Current API-key
profile removal is local cleanup and does not revoke a server key used by other
integrations. See CLI credential setup.
API Key Types
Secret Keys
Secret keys provide full access to your project’s API. Use them only on your backend server.Restricted keys and operation scopes
Restricted keys (rk_*) are project credentials with explicit operation
scopes. A scope on one resource does not grant access to another. Secret keys
retain their existing broad project access.
The expanded REST and hosted MCP scope enforcement below is a source preview.
It requires the corresponding backend release; this documentation change does
not establish deployed availability.
Use the group plus
:read or :write, for example transcriptions:read.
Restricted keys need recordings:write for legacy recording creation, upload
URL/completion and chunk/finalize requests. Device tokens retain their own
ownership and protocol checks; they do not receive developer scopes.
Template writes affect all projects using that organization’s template; they
are separate from generating a summary with summaries:write.
Provider keys are separate from Bota project keys. Enter them in Platform or
through CLI standard input.
Integration MCP tools accept no raw provider keys and expose safe metadata with
has_error rather than raw diagnostic text.
Hosted MCP applies the same scope checks to tool discovery and invocation.
Its compound get_recording requires recordings:read,
transcriptions:read and summaries:read. Webhook tools are MCP-only:
trigger_webhook_event requires webhooks:write; the existing
list_webhooks result includes signing secrets and therefore requires both
webhooks:read and webhooks:write. There is no public /v1/webhooks route.
Check a developer credential
The public CLI cohort includesbota auth status. A compatible backend
implements credential identity through
GET /v1/auth/identity and hosted MCP get_project_identity. Secret and restricted project keys can inspect their
own verified context without a business-resource scope. Device, upload,
reset-completion and end-user credentials cannot use this developer operation.
The result contains safe IDs, credential type, the stored test flag and scope
metadata. It contains no reusable key, key hint, human account or inferred
expiry. Scope metadata remains subject to ordinary operation admission; the
test flag does not promise isolated test data or billing. Backend/package
delivery and developer login retain their separate requirements.
Device Tokens
Device tokens (dtok_*) authenticate 4G-enabled wearable devices for direct cloud uploads. Unlike other key types, device tokens are:
- Issued automatically when a device is bound to an end user
- Scoped to a single device and its bound end user
- Limited in permissions - can only create/upload recordings and report device status
- Create recordings (
POST /v1/recordings) -device_idandend_user_idare auto-populated from the token - Get upload URLs (
POST /v1/recordings/:id/upload-url) - Complete uploads (
POST /v1/recordings/:id/upload-complete) - Send heartbeats (
POST /v1/devices/:id/heartbeat) - Refresh their token (
POST /v1/devices/:id/token/refresh)
Automatic Parameter Extraction: When a device token is used, the backend automatically extracts the
device_id and end_user_id from the token’s database record. Devices should NOT include these fields in request bodies - they will be ignored and overridden with the token’s values.Device tokens are returned only once when a device is bound. Store them securely on the device. If lost, unbind and rebind the device to get a new token.
Upload Tokens
Upload tokens authorize a single audio upload. They expire in minutes and are recording-scoped.Authentication Flows
Server-to-Server
Your backend authenticates directly with Bota using secret keys. For example, creating an end user:Mobile App Flow (BLE Devices)
Mobile apps authenticate through your backend, never directly with Bota. Here’s an example of uploading a recording from a Bluetooth device via your app:4G Device Direct Upload Flow
4G-enabled devices authenticate directly with Bota using device tokens, bypassing the need for a mobile app:Device Provisioning Flow
Devices are provisioned during initial setup, typically via Bluetooth pairing through your mobile app:Test vs Live Keys
Bota provides separate key types for development and production:
Use test keys during development. Consider creating separate projects for staging environments.
Security Best Practices
Store keys securely
Store keys securely
Use environment variables or a secrets manager. Never commit keys to version control.
Use restricted keys when possible
Use restricted keys when possible
If a service only needs to read transcriptions, create a restricted key with only
transcriptions:read scope.Rotate keys periodically
Rotate keys periodically
Rotate your API keys regularly and immediately if you suspect a compromise. For device tokens, use the token refresh endpoint.
Never expose keys in client code
Never expose keys in client code
Mobile apps and web frontends should never contain Bota API keys. Always proxy through your backend. Device tokens are the exception - they’re designed to be stored on devices.
Verify webhook signatures
Verify webhook signatures
Always verify the
X-Bota-Signature header when receiving webhooks to prevent spoofing.Secure device token storage
Secure device token storage
On 4G devices, store the device token in secure storage (encrypted flash, secure element if available). The token grants upload access to the bound user’s recordings.
Save keys immediately after creation
Save keys immediately after creation
When you create a new API key, copy it immediately and store it securely. The full key is only shown once - after creation, you’ll only see a hint like
sk_live_...vVkA in the dashboard.Managing API Keys
API keys are managed in the Bota Dashboard:- Navigate to your project settings
- Select API Keys
- Create, rotate, or revoke keys as needed
- Key hint (e.g.,
sk_live_...vVkA) - for identification - Name - optional user-defined label
- Last used - timestamp of most recent API call
- Created - when the key was generated
- Create: Issued automatically when binding a device
- Refresh: Use the token refresh endpoint
- Revoke: Automatically revoked when unbinding a device

