Get started
API keys and scopes
One organization key can serve all your clients; workspace keys isolate one client. Scopes limit what each key may do, which matters most for AI agents.
On this page
Workspace and organization keys#
| Key | Reaches | Created in |
|---|---|---|
bp_ws_… | One workspace (one end client). | The workspace's API keys tab, or the provisioning API. |
bp_org_… | Every workspace of your organization. | Developers in the dashboard, by owners and admins. |
- Send the key as
Authorization: Bearer <key>. It is shown once when created; Braidport stores only a hash. - The dashboard creates keys, webhook endpoints and invitations only once your e-mail address is confirmed; before that it answers
forbiddenwithdetails.reason: "email_unverified". - With an organization key the workspace follows from the
conversation_idorchannel_idof the request; list routes takeworkspace_id. - Keys can carry an expiry date and can be revoked at any time. A revoked or expired key gets
unauthorized. GET /v1/mereturns the calling key, its organization, plan, limits and scopes.
Scopes#
A new key has every scope unless you narrow it. A request outside the key's scopes gets forbidden, with a hint naming the missing scope.
read
Read channels, templates, events, usage and account details.
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /v1/usage | read | Event usage for a UTC calendar month (current month by default) |
| GET | /v1/channels | read | List connected channels, including the workspace's sandbox channel |
| GET | /v1/channels/:id | read | Get one channel |
| GET | /v1/channels/:id/templates | read | List the WhatsApp message templates of a channel |
| GET | /v1/events | read | Recent events, oldest first: the most recent 200 or so events of the workspace, none older than 24 hours (needs the workspace's event buffer). A cursor that trimming has passed usually answers validation_failed with details.reason cursor_expired; after 48 hours without an event the buffer starts afresh and the gap is not reported |
send
Send messages, typing indicators and read receipts; manage WhatsApp templates.
| Method | Path | Scope | What it does |
|---|---|---|---|
| POST | /v1/messages | send | Send a message (synchronous; idempotent with an Idempotency-Key header) |
| POST | /v1/conversations/:conversation_id/typing | send | Show a typing indicator in a conversation |
| POST | /v1/conversations/:conversation_id/read | send | Mark a received message as read |
| POST | /v1/channels/:id/templates | send | Submit a WhatsApp message template for review |
| DELETE | /v1/channels/:id/templates/:name | send | Delete a WhatsApp message template in every language |
| POST | /v1/test/inbound | send | Simulate a customer message on the workspace's sandbox channel |
calendar
Check availability and book, change or cancel calendar events.
| Method | Path | Scope | What it does |
|---|---|---|---|
| POST | /v1/calendar/availability | calendar | Free slots of a given length in a connected Google Calendar |
| POST | /v1/calendar/events | calendar | Book a calendar event (an Idempotency-Key prevents double booking) |
| GET | /v1/calendar/events/:event_id | calendar | Read a calendar event again, for example a Meet link still pending at booking |
| PATCH | /v1/calendar/events/:event_id | calendar | Change a calendar event |
| DELETE | /v1/calendar/events/:event_id | calendar | Cancel a calendar event |
email
Send e-mail from connected Gmail accounts.
| Method | Path | Scope | What it does |
|---|---|---|---|
| POST | /v1/email/send | Send an e-mail from a connected Gmail account |
admin
Manage webhook endpoints, workspaces, connect links and API keys.
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /v1/webhook-endpoints | admin | List webhook endpoints (workspace and organization level) |
| POST | /v1/webhook-endpoints | admin | Create a webhook endpoint; the signing secret is returned once |
| GET | /v1/webhook-endpoints/:id | admin | Get one webhook endpoint |
| PATCH | /v1/webhook-endpoints/:id | admin | Change a webhook endpoint |
| DELETE | /v1/webhook-endpoints/:id | admin | Delete a webhook endpoint (idempotent) |
| POST | /v1/webhook-endpoints/:id/test | admin | Send a signed ping event to the endpoint and report the result |
| POST | /v1/events/:id/redeliver | admin | Queue an event for delivery again while it is still stored |
| GET | /v1/workspaces | admin | List workspaces Organization keys only. |
| POST | /v1/workspaces | admin | Create a workspace for a client Organization keys only. |
| GET | /v1/workspaces/:id | admin | Get one workspace Organization keys only. |
| PATCH | /v1/workspaces/:id | admin | Rename, archive or reconfigure a workspace Organization keys only. |
| DELETE | /v1/workspaces/:id | admin | Delete a workspace, disconnecting its channels Organization keys only. |
| POST | /v1/workspaces/:id/connect-links | admin | Create a connect link to send to the client Organization keys only. |
| POST | /v1/workspaces/:id/api-keys | admin | Create a workspace API key; the key is returned once Organization keys only. |
GET /v1/me works with any valid key.
Keys for AI agents#
An agent that reads customer messages reads untrusted text: a message can try to instruct it. Give it only what it needs.
- Prefer workspace keys over organization keys, so one client's conversation can never reach another client.
- Leave out
emailfor an agent that answers chats, so injected text cannot make it send e-mail; leave outadminfor every agent. - Use a
read-only key for agents that summarise or classify.
Provisioning API#
On the Scale plan, organization keys with the admin scope can onboard a client end to end: create the workspace, create its connect link and send it to the client, and create a workspace key for your automation. These routes accept only organization keys; on other plans they answer feature_not_in_plan.
A new workspace key takes:
| Field | Type | Description |
|---|---|---|
name | string | required≤ 100 charsYour label for the key. |
scopes | "read" | "send" | "calendar" | "email" | "admin"[] | optional≥ 1 itemsdefault ["read","send","calendar","email","admin"]Scopes granted to the key. |
expires_at | timestamp | optionalOptional expiry. |
Connect link options are described in White-label and domains.
All routes#
Every /v1 route with the scope it needs, straight from the API contract:
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /v1/me | any key | The calling key, its organization, plan, limits and scopes |
| GET | /v1/usage | read | Event usage for a UTC calendar month (current month by default) |
| GET | /v1/channels | read | List connected channels, including the workspace's sandbox channel |
| GET | /v1/channels/:id | read | Get one channel |
| POST | /v1/messages | send | Send a message (synchronous; idempotent with an Idempotency-Key header) |
| POST | /v1/conversations/:conversation_id/typing | send | Show a typing indicator in a conversation |
| POST | /v1/conversations/:conversation_id/read | send | Mark a received message as read |
| GET | /v1/channels/:id/templates | read | List the WhatsApp message templates of a channel |
| POST | /v1/channels/:id/templates | send | Submit a WhatsApp message template for review |
| DELETE | /v1/channels/:id/templates/:name | send | Delete a WhatsApp message template in every language |
| POST | /v1/calendar/availability | calendar | Free slots of a given length in a connected Google Calendar |
| POST | /v1/calendar/events | calendar | Book a calendar event (an Idempotency-Key prevents double booking) |
| GET | /v1/calendar/events/:event_id | calendar | Read a calendar event again, for example a Meet link still pending at booking |
| PATCH | /v1/calendar/events/:event_id | calendar | Change a calendar event |
| DELETE | /v1/calendar/events/:event_id | calendar | Cancel a calendar event |
| POST | /v1/email/send | Send an e-mail from a connected Gmail account | |
| GET | /v1/webhook-endpoints | admin | List webhook endpoints (workspace and organization level) |
| POST | /v1/webhook-endpoints | admin | Create a webhook endpoint; the signing secret is returned once |
| GET | /v1/webhook-endpoints/:id | admin | Get one webhook endpoint |
| PATCH | /v1/webhook-endpoints/:id | admin | Change a webhook endpoint |
| DELETE | /v1/webhook-endpoints/:id | admin | Delete a webhook endpoint (idempotent) |
| POST | /v1/webhook-endpoints/:id/test | admin | Send a signed ping event to the endpoint and report the result |
| GET | /v1/events | read | Recent events, oldest first: the most recent 200 or so events of the workspace, none older than 24 hours (needs the workspace's event buffer). A cursor that trimming has passed usually answers validation_failed with details.reason cursor_expired; after 48 hours without an event the buffer starts afresh and the gap is not reported |
| POST | /v1/events/:id/redeliver | admin | Queue an event for delivery again while it is still stored |
| POST | /v1/test/inbound | send | Simulate a customer message on the workspace's sandbox channel |
| GET | /v1/workspaces | admin | List workspaces Organization keys only. |
| POST | /v1/workspaces | admin | Create a workspace for a client Organization keys only. |
| GET | /v1/workspaces/:id | admin | Get one workspace Organization keys only. |
| PATCH | /v1/workspaces/:id | admin | Rename, archive or reconfigure a workspace Organization keys only. |
| DELETE | /v1/workspaces/:id | admin | Delete a workspace, disconnecting its channels Organization keys only. |
| POST | /v1/workspaces/:id/connect-links | admin | Create a connect link to send to the client Organization keys only. |
| POST | /v1/workspaces/:id/api-keys | admin | Create a workspace API key; the key is returned once Organization keys only. |