# Build with bubbl3.

bubbl3 gives developers a REST API with idempotency keys, signed webhooks with retries and replay, a typed TypeScript SDK, a sandbox for test keys and an MCP server for AI agents. Start with a test key, then swap in a live key when it works. Nothing else changes.

The API, the SDK and the MCP server work on the same things you see in the dashboard: messages, contacts, numbers, groups of numbers, webhooks and routing rules. In the API, each number is a `line` object.

## Keys

Every call carries an API key as a bearer token. Keys start with `b3_test_` or `b3_live_`. A test key only reaches the sandbox, and no key can do more than the person who created it. You can revoke or rotate a key at any time, and the change takes effect at once.

## Retries without double-sending

Send your own `Idempotency-Key` with every write. A retry with the same key returns the first message instead of sending another, so a timeout never turns into two texts.

## Send your first message

Node:

```
import { Bubbl3 } from "@bubbl3/sdk";

const b3 = new Bubbl3({ apiKey: process.env.BUBBL3_API_KEY });

await b3.messages.create(
  { to: "+19175550142", body: "Hi Maya, still good for Thursday at 4:30?" },
  { idempotencyKey: "confirm-4821" },
);
```

cURL:

```
curl https://api.bubbl3.com/v1/messages \
  -H "Authorization: Bearer $BUBBL3_API_KEY" \
  -H "Idempotency-Key: confirm-4821" \
  -H "Content-Type: application/json" \
  -d '{"to": "+19175550142", "body": "Hi Maya, still good for Thursday at 4:30?"}'
```

## In the documentation

- [Documentation](https://docs.bubbl3.com)
- [API reference](https://docs.bubbl3.com/api)

## Start here

From test key to live in three steps.

1. **Get a test key.** Create a b3\_test\_ key in the dashboard. It only reaches the sandbox, so nothing goes to a real person.
2. **Send and reply.** Send to a test number, then reply as the contact from the simulator. Your webhooks fire as they would live.
3. **Swap in a live key.** When it works, use a b3\_live\_ key. Nothing else in your code changes.

Updated: 2026-10-15
