ByDomu for developers

# Build on your agency’s data.

A REST API to read and write to the CRM, webhooks to hear about what happens and an MCP server so your AI can query it. Start in **test mode**: nothing you do touches your clients.

[Create a test key](https://app.bydomu.com/settings/api-keys) [Quickstart](https://developers.bydomu.com/en/guias/inicio-rapido)

REST + JSON OpenAPI 3.0 api.bydomu.com/v1

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});
const { data } = await bydomu.contacts.list({ status: ["NEW"] });
```

cURL:

```bash
curl -G https://api.bydomu.com/v1/contacts \
  -H "X-API-Key: $BYDOMU_API_KEY" \
  --data-urlencode "status=NEW"
```

Python:

```python
import os, requests

r = requests.get("https://api.bydomu.com/v1/contacts",
    params={"status": "NEW"},
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]})
```

## Start in 3 steps

All in your test agency, with sample data

1. ### Create a test key
  In Settings › API and webhooks › API keys, choose **Test**. It’s shown once: save it.
  Test `domu_sk_test_4f…` [Create](https://app.bydomu.com/settings/api-keys)
2. ### Make your first request
  Ask who you are with `GET /v1/me`: the response tells you the mode and permissions.
  ```
  curl https://api.bydomu.com/v1/me \
    -H "X-API-Key: $BYDOMU_API_KEY"
  ```
  → **200 OK** · X-Domu-Mode: test
3. ### Receive a webhook
  Subscribe a URL to an event and send yourself a sample. It arrives signed and marked as test.
  `deal.won` tu-servidor.co/webhooks livemode: false

[**Guides** Step by step: quickstart, webhooks, the widget and prompts for coding agents. _See guides_](https://developers.bydomu.com/en/guias) [**API reference** Every endpoint by resource, with its permission, its errors and the Try button. _Open the reference_](https://developers.bydomu.com/en/referencia) [**AI connections** claude.ai, ChatGPT, Claude Code, Cursor, VS Code and more, read-only. _Connect your AI_](https://developers.bydomu.com/en/ia) [**Event catalog** All 79 object.verb events, with a sample payload. _See events_](https://developers.bydomu.com/en/eventos)
