# Bibu API and MCP server: the whole reference

> Every operation of Bibu's API, made from the OpenAPI file (https://meetbibu.com/api/v1/openapi.json). The same operations are the tools of the MCP server (https://meetbibu.com/mcp), under the same names, with the same keys. The pages for people: https://meetbibu.com/docs?lang=en.

API base URL: https://meetbibu.com/api/v1

Everything Bibu does for you in the app, from your own tools or an AI agent: mailboxes and domains, campaigns, prospects, the inbox, exclusions, webhooks and billing. The same rules as the app apply (billing, the daily budget, the safety check, each country's law): nothing goes around them.

**Keys.** In Bibu, API & MCP › API key › Create a key. Send it as `Authorization: Bearer bibu_…`. A key is **read only** (it may call the operations whose `x-bibu-effect` is `read`) or **full access** (everything, like you in the app). It is shown once; Bibu keeps only its hash.

**Limits.** 120 requests a minute per key; past it, `429` with `Retry-After`. Every answer says `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds).

**Idempotency.** Send `Idempotency-Key: <a UUID>` with any write: for 24 hours, the same key gets the same answer (`Idempotent-Replayed: true`) and nothing is done twice. It is required where an email goes to a prospect or money is spent.

**Errors.** `{ "error": { "code", "message", "key"?, "field"?, "detail"? } }`: `code` per status (the Idempotency-Key errors have their own: `idempotency_key_required`, `idempotency_mismatch`, `idempotency_in_progress`), `key` Bibu's own reason when it has one (stable: branch on it), `field` the input at fault, `message` one sentence for a person, `detail` what the other side answered, word for word, when there is one (a mail server refusing a login). A body field an operation doesn't take is refused (400), never dropped.

**Cost.** Calling the API costs nothing; what it makes Bibu do is paid in credits, like in the app (1 credit = €0.001; `get_prices` gives every price; a campaign made before the credits keeps its price per email to its end).

Ids: a person is named by the campaign person id (the same as their conversation's). Amounts are in euro cents (`…Cents`) or in credits (`…Credits`, `credits`). Dates are ISO 8601 (UTC).

## Start here: a campaign and its prospects

1. `GET /me` (get_me): whose key it is.
2. `POST /campaigns` (create_campaign) with `offer`, `target` and `people`, from a full access key: Bibu answers the campaign's `id`, its `status` preparing.
3. `GET /campaigns/{id}` (get_campaign) every 10 seconds until `status` is `ready` (or `failed`). Its `people` says where it stands: about 15 prospects are found before the launch (`people.beforeLaunch`).
4. `GET /campaigns/{id}/people` (list_campaign_people): the prospects found. `GET /people/{id}` (get_person) says why Bibu chose one.
5. Nothing is sent before `POST /campaigns/{id}/launch` (launch_campaign): it emails real people, so ask the user first.

## Errors

| Status | Code | What it means |
| --- | --- | --- |
| 400 | bad_request | The request isn't valid: a field (error.field), a field it doesn't take, or the JSON. A missing Idempotency-Key answers 400 too, with its own code: idempotency_key_required. |
| 401 | unauthorized | No valid API key. |
| 402 | payment_required | A payment method or budget is needed (no card on file, a payment failed). |
| 403 | forbidden | This key can't do that (read only), or it isn't yours to do. |
| 404 | not_found | Nothing with this id in this company. |
| 409 | conflict | Not in this state (e.g. a campaign not running, already launched), or the same Idempotency-Key still running. |
| 422 | unprocessable | Bibu refuses these values (its reason in error.key), or the Idempotency-Key was used for another request. |
| 429 | rate_limited | More than 120 requests in a minute: wait (Retry-After). |
| 500 | server_error | Something failed on Bibu's side, or a service it uses: try again. |

Idempotency-Key errors have their own codes: `400 idempotency_key_required` (an operation that sends an email or spends money, without the header), `422 idempotency_mismatch` (the key was used for another request), `409 idempotency_in_progress` (the first request with it still runs).

## Webhooks

Bibu POSTs each event as JSON to the webhook's address (add_webhook), signed. Answer a 2xx within 10 seconds; anything else is tried again after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h, then given up.

- `lead.hot`: A hot lead: Bibu sorted a reply as interested or meeting (once per person and webhook), within a minute.
- `reply.received`: Any reply (webhooks with events replies), 2 minutes after it arrives so it is sorted first.
- `test`: “Send a test” (test_webhook): a made-up lead.

Headers: `X-Bibu-Event` (the event's type), `X-Bibu-Delivery` (the delivery's id, the same on every try: deduplicate on it), `X-Bibu-Signature` (`t=<unix seconds>,v1=<hex>`: v1 is the HMAC-SHA256 of `<t>.<raw body>` with the webhook's signing secret, whsec_…; compare in constant time, refuse a t older than 5 minutes, read the raw body before any JSON parser).

Payload:

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "type": "lead.hot",
  "createdAt": "2026-11-24T09:58:00.000Z",
  "lead": {
    "firstName": "Claire",
    "lastName": "Martin",
    "email": "claire@maisonlune.fr",
    "title": "Head of E-commerce",
    "company": "Maison Lune",
    "companyDomain": "maisonlune.fr",
    "linkedinUrl": "https://www.linkedin.com/in/claire-martin",
    "country": "France"
  },
  "campaign": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "D2C brands"
  },
  "stage": "interested",
  "hot": true,
  "reply": {
    "subject": "Re: An idea for Maison Lune",
    "body": "Yes, happy to talk next week.",
    "at": "2026-11-24T09:58:00.000Z"
  },
  "conversationUrl": "https://meetbibu.com/replies?tab=all&c=6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90"
}
```

Check the signature in Node.js, then with Express:

```js
import { createHmac, timingSafeEqual } from "node:crypto";

// rawBody: the request's body as a string, exactly as it arrived.
export function fromBibu(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(
    signatureHeader.split(",").map((part) => part.trim().split("=", 2)),
  );
  const t = Number(parts.t);
  if (!parts.v1 || !Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  return parts.v1.length === expected.length && timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}
```

```js
import express from "express";

const app = express();

// express.raw: the body stays as Bibu signed it.
app.post("/bibu-webhook", express.raw({ type: "application/json" }), (req, res) => {
  const raw = req.body.toString("utf8");
  if (!fromBibu(raw, req.get("X-Bibu-Signature") ?? "", process.env.BIBU_WEBHOOK_SECRET)) {
    return res.sendStatus(401);
  }
  const event = JSON.parse(raw);
  // event.id is the same on every try: skip one you already handled.
  if (event.type === "lead.hot") console.log("Hot lead:", event.lead.email);
  res.sendStatus(200);
});

app.listen(3000);
```

In Python, then with Flask:

```python
import hashlib
import hmac
import time


def from_bibu(raw_body: bytes, signature_header: str, secret: str) -> bool:
    parts = dict(p.strip().split("=", 1) for p in signature_header.split(",") if "=" in p)
    t, v1 = parts.get("t", ""), parts.get("v1", "")
    if not t.isdigit() or not v1 or abs(time.time() - int(t)) > 300:
        return False
    expected = hmac.new(secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(v1, expected)
```

```python
import os
from flask import Flask, abort, request

app = Flask(__name__)


@app.post("/bibu-webhook")
def bibu_webhook():
    raw = request.get_data()  # the body as Bibu signed it
    if not from_bibu(raw, request.headers.get("X-Bibu-Signature", ""), os.environ["BIBU_WEBHOOK_SECRET"]):
        abort(401)
    event = request.get_json()
    # event["id"] is the same on every try: skip one you already handled.
    if event["type"] == "lead.hot":
        print("Hot lead:", event["lead"]["email"])
    return "", 200
```

## Company

The company the key opens: who you are, its settings, the sender's name, the daily budget.

### Who am I

`GET /me` · MCP tool `get_me` · Reads only · any key

The company the key opens (workspace), the key itself (its name, scope and first characters), and the API's limits.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/me" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "workspace": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "Maison Studio",
    "company": "Maison Studio"
  },
  "key": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "My CRM",
    "prefix": "bibu_Ab12",
    "scope": "read",
    "createdAt": "2026-11-24T09:58:00.000Z"
  },
  "limits": {
    "requestsPerMinute": 120
  }
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### The sender's name

`GET /sender` · MCP tool `get_sender` · Reads only · any key

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/sender" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "firstName": "Claire",
  "lastName": "Martin",
  "signAs": "mailbox",
  "sendsFrom": "own"
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Change the sender's name

`PATCH /sender` · MCP tool `update_sender` · Changes data · full access key · Idempotency-Key header optional

The name the emails sign with ({{sender_name}}), and how emails from Bibu's own mailboxes are signed (campaigns that already send from them). Sending from Bibu's own mailboxes: coming soon.

Parameters:
- `firstName` (body, string, optional): At most 100 characters.
- `lastName` (body, string, optional): At most 100 characters.
- `signAs` (body, string, optional): One of: mailbox, sender.

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/sender" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "firstName": "Claire",
  "lastName": "Martin",
  "signAs": "mailbox"
}'
```

Example answer (200):

```json
{
  "firstName": "Claire",
  "lastName": "Martin",
  "signAs": "mailbox",
  "sendsFrom": "own"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### The company's settings

`GET /company` · MCP tool `get_company` · Reads only · any key

What the app's Settings hold about the company: its name, what it sells, its postal address and phone (Settings › Company; the last two are what the law asks in the emails of some countries) and its booking link (Settings › Replies). Every campaign, email and answer builds on them. The sender's name is get_sender's.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/company" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "name": "Maison Studio",
  "offer": "We build Shopify stores for D2C brands and deliver them in 8 weeks. We want a 20-minute call.",
  "postalAddress": "14 rue des Entrepreneurs, 75015 Paris, France",
  "phone": "+33 1 99 00 12 34",
  "bookingLink": "https://cal.com/thomas-maisonstudio/20min"
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Change the company's settings

`PATCH /company` · MCP tool `update_company` · Changes data · full access key · Idempotency-Key header optional

Only the fields you send change, checked like in the app; an empty string removes one. All or nothing: a refused field (error.field names it) saves none. postalAddress and phone are what the law asks in the emails of some countries: with them saved, a campaign waiting on the blocker senderDetails can launch, and those emails end with them. A new bookingLink waits for the account's email address to be confirmed, like in the app (auth.err.verifyFirst), and is refused while Bibu's own booking page is on (409, replies.err.bookingPageOn: the page is the link then). The company's website isn't changed here.

Parameters:
- `name` (body, string, optional): The company's name (200 characters at most). At most 200 characters.
- `offer` (body, string, optional): What the company sells, to whom, and what it wants from prospects. At most 4,000 characters.
- `postalAddress` (body, string, optional): The company's postal address (300 characters at most; several lines are joined into one). At most 300 characters.
- `phone` (body, string, optional): The company's phone number, with the country code. At most 40 characters.
- `bookingLink` (body, string, optional): The company's booking link (https:// is added when missing). At most 300 characters.

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/company" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "postalAddress": "14 rue des Entrepreneurs, 75015 Paris, France",
  "phone": "+33 1 99 00 12 34"
}'
```

Example answer (200):

```json
{
  "name": "Maison Studio",
  "offer": "We build Shopify stores for D2C brands and deliver them in 8 weeks. We want a 20-minute call.",
  "postalAddress": "14 rue des Entrepreneurs, 75015 Paris, France",
  "phone": "+33 1 99 00 12 34",
  "bookingLink": "https://cal.com/thomas-maisonstudio/20min"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Today's spend against the daily budget

`GET /budget` · MCP tool `get_budget` · Reads only · any key

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/budget" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "dailyBudgetCents": 1240,
  "spentTodayCents": 1240,
  "emailsToday": 12,
  "monthlyCapCents": 1240,
  "spentMonthCents": 1240,
  "monthCapUntil": "…",
  "block": "budget"
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Set the daily budget

`PUT /budget` · MCP tool `set_budget` · Spends money · full access key · Idempotency-Key header required

What the workspace may spend a day, in euros (kept within €2 and €1000; €1 = 1,000 credits): every campaign shares it, and the campaigns stop for the day once it is spent (each action at its price, in credits (1 credit = €0.001): the campaign's research 500, each person found 5 (100 from the extended database), their email found 30, each email sent 2 (follow-ups too); with the writing option, 8 more for each email Bibu wrote; get_prices gives every price).

Parameters:
- `dailyBudget` (body, number, required): Euros a day. At most 100,000.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/budget" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "dailyBudget": 20
}'
```

Example answer (200):

```json
{
  "currency": "EUR",
  "dailyBudgetCents": 1240,
  "spentTodayCents": 1240,
  "emailsToday": 12,
  "monthlyCapCents": 1240,
  "spentMonthCents": 1240,
  "monthCapUntil": "…",
  "block": "budget"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Set the monthly cap

`PUT /budget/monthly-cap` · MCP tool `set_monthly_cap` · Spends money · full access key · Idempotency-Key header required

The most the workspace may spend in a calendar month, in euros (kept within €10 and €30000), or null to turn it off. Once spent, nothing goes out until the first of the next month.

Parameters:
- `monthlyCap` (body, number or null, required): Euros a month; null: no cap. At most 1,000,000.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/budget/monthly-cap" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "monthlyCap": 400
}'
```

Example answer (200):

```json
{
  "currency": "EUR",
  "dailyBudgetCents": 1240,
  "spentTodayCents": 1240,
  "emailsToday": 12,
  "monthlyCapCents": 1240,
  "spentMonthCents": 1240,
  "monthCapUntil": "…",
  "block": "budget"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Bibu manages my campaigns: state

`GET /autopilot` · MCP tool `get_autopilot` · Reads only · any key

Whether Bibu manages the campaigns on its own, how the daily budget is split into a cap per running campaign, what Bibu did lately and what it suggests.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/autopilot" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "on": true,
  "dailyBudgetCents": 1240,
  "caps": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "capCents": 1240,
      "by": "bibu",
      "spentTodayCents": 1240,
      "priceCents": 1240,
      "maxCents": 1240
    }
  ],
  "done": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "suggestions": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "rules": {
    "minReached": 12,
    "pauseAfter": 12
  }
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Turn “Bibu manages my campaigns” on or off

`PUT /autopilot` · MCP tool `set_autopilot` · Changes data · full access key · Idempotency-Key header optional

On: every morning Bibu pauses what doesn't work and moves the budget to what does, within the daily budget. Off: it only suggests.

Parameters:
- `on` (body, boolean, required)

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/autopilot" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "on": true
}'
```

Example answer (200):

```json
{
  "on": true,
  "dailyBudgetCents": 1240,
  "caps": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "capCents": 1240,
      "by": "bibu",
      "spentTodayCents": 1240,
      "priceCents": 1240,
      "maxCents": 1240
    }
  ],
  "done": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "suggestions": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "rules": {
    "minReached": 12,
    "pauseAfter": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 429 rate_limited, 500 server_error.

### Apply one of Bibu's suggestions

`POST /autopilot/suggestions/{id}/apply` · MCP tool `apply_autopilot_suggestion` · Changes data · full access key · Idempotency-Key header optional

Parameters:
- `id` (path, string (uuid), required): The suggestion's id (get_autopilot).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/autopilot/suggestions/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/apply" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "on": true,
  "dailyBudgetCents": 1240,
  "caps": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "capCents": 1240,
      "by": "bibu",
      "spentTodayCents": 1240,
      "priceCents": 1240,
      "maxCents": 1240
    }
  ],
  "done": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "suggestions": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "pause",
      "status": "done",
      "by": "bibu",
      "at": "2026-11-24T09:58:00.000Z",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "from": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "amountCents": 1240,
      "facts": {}
    }
  ],
  "rules": {
    "minReached": 12,
    "pauseAfter": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### The sending schedule

`GET /schedule` · MCP tool `get_schedule` · Reads only · any key

When the campaigns send, in each person's own local time, per country (a campaign may have its own: update_campaign_schedule).

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/schedule" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "schedule": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "start": "09:00",
    "end": "18:00",
    "countries": {},
    "smartDays": true,
    "sundays": true
  },
  "countries": [
    {
      "country": "France",
      "zones": [
        "Europe/Paris"
      ],
      "people": 200,
      "weekend": [
        12
      ]
    }
  ],
  "unplaced": 12,
  "campaigns": {
    "total": 42,
    "following": 12
  }
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Change the sending schedule

`PUT /schedule` · MCP tool `update_schedule` · Changes data · full access key · Idempotency-Key header optional

Every campaign without its own sends by it from now on.

No parameters.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/schedule" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "schedule": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "start": "09:00",
    "end": "18:00",
    "countries": {},
    "smartDays": true,
    "sundays": true
  },
  "countries": [
    {
      "country": "France",
      "zones": [
        "Europe/Paris"
      ],
      "people": 200,
      "weekend": [
        12
      ]
    }
  ],
  "unplaced": 12,
  "campaigns": {
    "total": 42,
    "following": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

## Mailboxes and domains

The sending infrastructure: your mailboxes and domains, connecting your own mailbox, domains with their mailboxes bought for you (paid by card), your own domains.

### List mailboxes and domains

`GET /mailboxes` · MCP tool `list_mailboxes` · Reads only · any key

Where your emails go from: your mailboxes (status, warm-up, today's sends against the daily limit, and their health: read every hour for free, tested once a day for 2 credits), your domains (their status, mailboxes, months paid; your own domain's nameservers to set), Bibu's own mailboxes (network: what they sent for campaigns that already send from them), and what your own brand's domains cost a month. Sending from Bibu's own mailboxes: coming soon.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/mailboxes" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "sendsFrom": "own",
  "connect": "page",
  "mailboxes": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "email": "claire@maisonlune.fr",
      "name": "D2C brands",
      "status": "setting_up",
      "source": "provider",
      "dailyLimit": 12,
      "sentToday": 12,
      "warmup": {
        "skipped": true,
        "waitsUntilWarm": true,
        "readyOn": "2026-11-24",
        "progress": 1
      },
      "lastError": "…",
      "lastErrorMessage": "…",
      "pausedUntil": "…",
      "releasedOn": "2026-11-24",
      "health": {
        "status": "problem",
        "reasons": [
          "listedIp"
        ],
        "held": {
          "reason": "listed",
          "since": "…"
        },
        "bounceRate": 1,
        "complaints": 12,
        "warmup": {
          "state": "…",
          "day": 12,
          "health": "excellent",
          "inboxRate": 12,
          "start": "started"
        },
        "dns": {
          "spf": "ok",
          "dkim": "ok",
          "dmarc": "ok"
        },
        "test": {
          "state": "running",
          "at": "2026-11-24T09:58:00.000Z",
          "landing": "inbox",
          "spf": "…",
          "dkim": "…",
          "dmarc": "…",
          "blocklists": {
            "ip": "clean",
            "domain": "clean"
          }
        },
        "tests": {
          "today": 12,
          "left": 12,
          "againAt": "2026-11-24T09:58:00.000Z",
          "running": true,
          "next": null
        },
        "checkedAt": "2026-11-24T09:58:00.000Z"
      },
      "bought": {
        "kind": "new",
        "monthCents": 1240,
        "nextChargeOn": "2026-11-24",
        "pack": 12
      }
    }
  ],
  "domains": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "status": "ordered",
      "mailboxes": 12,
      "own": true,
      "nameservers": [
        "…"
      ],
      "paidUntil": "…",
      "lastError": "…",
      "lastErrorMessage": "…",
      "bought": {
        "platform": "google",
        "yearCents": 1240,
        "renewsOn": "2026-11-24",
        "slotsLeft": 12
      },
      "nextTryAt": "2026-11-24T09:58:00.000Z"
    }
  ],
  "network": {
    "available": true,
    "paused": true,
    "days": 7,
    "mailboxes": 12,
    "domains": 12,
    "sent": 12
  },
  "ownBrand": {
    "domains": 12,
    "mailboxes": 12,
    "monthlyCents": 1240,
    "firstEmailsOn": "2026-11-24",
    "waitingForCard": true
  }
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Connect a mailbox you already have

`POST /mailboxes/connect` · MCP tool `connect_mailbox` · Changes data · full access key · Idempotency-Key header optional

As the app's “Your own mailboxes”: send the mailbox's login and Bibu connects it at once, with no page to open and no link to follow (but for a Microsoft mailbox, below). provider google: a Google Workspace or Gmail mailbox, with its address and an app password (in the Google account: 2-Step Verification on, then an app password); no servers. provider imap (the default): any other mailbox, with its password and its SMTP and IMAP servers and ports. Both logins are tried before the mailbox is connected, so a wrong password or a server that can't be reached is said at once (422 mailboxes.err.auth, mailboxes.connect.err.appPassword for a Google one, mailboxes.err.connection; error.detail is what the mail server answered, word for word). provider microsoft: a Microsoft 365 or Outlook mailbox takes no password, a person signs it in with Microsoft: the call answers how: page and url, Bibu's own page (Settings › Mailboxes, Microsoft chosen) for the user to open, signed in to Bibu; the mailbox shows in list_mailboxes once they are back. Sent with a password instead, such a mailbox answers 422 mailboxes.connect.err.microsoft. Bibu then starts the mailbox's free warm-up and tests it at once; it sends at once (under its daily limit), unless waitUntilWarm: a new mailbox, held from campaigns until it is warm. The password only serves to connect the mailbox: Bibu doesn't keep it, never answers it and never logs it (a test copy of Bibu keeps it encrypted). The account's email address must be confirmed first. Several at once: connect_mailboxes.

Parameters:
- `provider` (body, string, optional): google: a Google Workspace or Gmail mailbox and its app password. imap (the default): any other mailbox, with its servers. microsoft: a Microsoft 365 or Outlook mailbox, which takes no password: connect_mailbox answers the page where a person signs it in (nothing else is needed); connect_mailboxes answers mailboxes.connect.err.microsoft for it. One of: google, imap, microsoft.
- `email` (body, string, optional): The mailbox's address. At most 254 characters.
- `firstName` (body, string, optional): The first name it signs with (default: the sender's). At most 100 characters.
- `lastName` (body, string, optional): The last name it signs with (default: the sender's). At most 100 characters.
- `password` (body, string (password), optional): google: the app password (16 letters, with or without its spaces), not the Google account's password. imap: the mailbox's password. Never kept by Bibu, answered or logged. At most 500 characters.
- `smtpHost` (body, string, optional): imap: its SMTP server. At most 253 characters.
- `smtpPort` (body, integer, optional): imap: 465 (TLS) or 587. From 1 to 65,535.
- `imapHost` (body, string, optional): imap: its IMAP server. At most 253 characters.
- `imapPort` (body, integer, optional): imap: 993 (TLS). From 1 to 65,535.
- `waitUntilWarm` (body, boolean, optional): New mailboxes: campaigns wait until they are warm (14 days of warm-up in good health). Default false: a mailbox sends at once, its warm-up alongside (a mailbox already in use).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/mailboxes/connect" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "provider": "google",
  "email": "thomas@maisonstudio.fr",
  "password": "abcd efgh ijkl mnop"
}'
```

Example answer (200):

```json
{
  "connected": true,
  "how": "page",
  "url": "https://maisonlune.fr",
  "mailbox": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "email": "claire@maisonlune.fr",
    "name": "D2C brands",
    "status": "setting_up",
    "source": "provider",
    "dailyLimit": 12,
    "sentToday": 12,
    "warmup": {
      "skipped": true,
      "waitsUntilWarm": true,
      "readyOn": "2026-11-24",
      "progress": 1
    },
    "lastError": "…",
    "lastErrorMessage": "…",
    "pausedUntil": "…",
    "releasedOn": "2026-11-24",
    "health": {
      "status": "problem",
      "reasons": [
        "listedIp"
      ],
      "held": {
        "reason": "listed",
        "since": "…"
      },
      "bounceRate": 1,
      "complaints": 12,
      "warmup": {
        "state": "…",
        "day": 12,
        "health": "excellent",
        "inboxRate": 12,
        "start": "started"
      },
      "dns": {
        "spf": "ok",
        "dkim": "ok",
        "dmarc": "ok"
      },
      "test": {
        "state": "running",
        "at": "2026-11-24T09:58:00.000Z",
        "landing": "inbox",
        "spf": "…",
        "dkim": "…",
        "dmarc": "…",
        "blocklists": {
          "ip": "clean",
          "domain": "clean"
        }
      },
      "tests": {
        "today": 12,
        "left": 12,
        "againAt": "2026-11-24T09:58:00.000Z",
        "running": true,
        "next": null
      },
      "checkedAt": "2026-11-24T09:58:00.000Z"
    },
    "bought": {
      "kind": "new",
      "monthCents": 1240,
      "nextChargeOn": "2026-11-24",
      "pack": 12
    }
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Connect several mailboxes you already have

`POST /mailboxes/connect/batch` · MCP tool `connect_mailboxes` · Changes data · full access key · Idempotency-Key header optional

connect_mailbox for up to 20 mailboxes in one call, as the app's CSV import (more: call again with the next ones). Each mailbox is an object as connect_mailbox takes one (provider, email, password, the name it signs with, the servers of an imap one); waitUntilWarm is for all of them. One answer per mailbox, in the order sent: connected with the mailbox, or error (its key, its sentence, the field at fault, and detail: what its mail server answered, word for word). A refused mailbox never stops the others: the call answers 200 once it ran, even when none is connected. The same checks and the same keys as connect_mailbox; an address twice in the call is refused the second time (mailboxes.connect.err.duplicate). Always by their logins: no link is ever answered (a Microsoft mailbox answers mailboxes.connect.err.microsoft: connect_mailbox with provider microsoft, one at a time). Passwords are never kept by Bibu, answered or logged.

Parameters:
- `mailboxes` (body, array of object, required): 1 to 20 mailboxes, each as connect_mailbox takes one. At most 20 items.
  - `mailboxes[].provider` (body, string, optional): google: a Google Workspace or Gmail mailbox and its app password. imap (the default): any other mailbox, with its servers. microsoft: a Microsoft 365 or Outlook mailbox, which takes no password: connect_mailbox answers the page where a person signs it in (nothing else is needed); connect_mailboxes answers mailboxes.connect.err.microsoft for it. One of: google, imap, microsoft.
  - `mailboxes[].email` (body, string, optional): The mailbox's address. At most 254 characters.
  - `mailboxes[].firstName` (body, string, optional): The first name it signs with (default: the sender's). At most 100 characters.
  - `mailboxes[].lastName` (body, string, optional): The last name it signs with (default: the sender's). At most 100 characters.
  - `mailboxes[].password` (body, string (password), optional): google: the app password (16 letters, with or without its spaces), not the Google account's password. imap: the mailbox's password. Never kept by Bibu, answered or logged. At most 500 characters.
  - `mailboxes[].smtpHost` (body, string, optional): imap: its SMTP server. At most 253 characters.
  - `mailboxes[].smtpPort` (body, integer, optional): imap: 465 (TLS) or 587. From 1 to 65,535.
  - `mailboxes[].imapHost` (body, string, optional): imap: its IMAP server. At most 253 characters.
  - `mailboxes[].imapPort` (body, integer, optional): imap: 993 (TLS). From 1 to 65,535.
- `waitUntilWarm` (body, boolean, optional): New mailboxes: campaigns wait until they are warm (14 days of warm-up in good health). Default false: a mailbox sends at once, its warm-up alongside (a mailbox already in use).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/mailboxes/connect/batch" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mailboxes": [
    {
      "provider": "google",
      "email": "thomas@maisonstudio.fr",
      "password": "abcd efgh ijkl mnop"
    },
    {
      "provider": "google",
      "email": "lea@maisonstudio.fr",
      "password": "qrst uvwx yzab cdef",
      "firstName": "Léa",
      "lastName": "Martin"
    }
  ]
}'
```

Example answer (200):

```json
{
  "connected": 12,
  "failed": 12,
  "results": [
    {
      "email": "claire@maisonlune.fr",
      "connected": true,
      "mailbox": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "email": "claire@maisonlune.fr",
        "name": "D2C brands",
        "status": "setting_up",
        "source": "provider",
        "dailyLimit": 12,
        "sentToday": 12,
        "warmup": {
          "skipped": true,
          "waitsUntilWarm": true,
          "readyOn": "2026-11-24",
          "progress": 1
        },
        "lastError": "…",
        "lastErrorMessage": "…",
        "pausedUntil": "…",
        "releasedOn": "2026-11-24",
        "health": {
          "status": "problem",
          "reasons": [
            "listedIp"
          ],
          "held": {
            "reason": "listed",
            "since": "…"
          },
          "bounceRate": 1,
          "complaints": 12,
          "warmup": {
            "state": "…",
            "day": 12,
            "health": "excellent",
            "inboxRate": 12,
            "start": "started"
          },
          "dns": {
            "spf": "ok",
            "dkim": "ok",
            "dmarc": "ok"
          },
          "test": {
            "state": "running",
            "at": "2026-11-24T09:58:00.000Z",
            "landing": "inbox",
            "spf": "…",
            "dkim": "…",
            "dmarc": "…",
            "blocklists": {
              "ip": null,
              "domain": null
            }
          },
          "tests": {
            "today": 12,
            "left": 12,
            "againAt": "2026-11-24T09:58:00.000Z",
            "running": true,
            "next": null
          },
          "checkedAt": "2026-11-24T09:58:00.000Z"
        },
        "bought": {
          "kind": "new",
          "monthCents": 1240,
          "nextChargeOn": "2026-11-24",
          "pack": 12
        }
      },
      "error": {
        "key": "…",
        "message": "…",
        "field": "…",
        "detail": "…"
      }
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Change a mailbox

`PATCH /mailboxes/{id}` · MCP tool `update_mailbox` · Changes data · full access key · Idempotency-Key header optional

As the app's mailbox row and Settings › Advanced: the name it signs with, its daily limit (15 at most for one Bibu made, 100 for your own), pause or resume it (resuming one in error logs in again; one paused after a spam complaint only the Bibu team resumes), and whether it waits for its warm-up (warmup: false sends at once; true waits until it is warm: one Bibu made, unless over, or one of yours).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `firstName` (body, string, optional): At most 100 characters.
- `lastName` (body, string, optional): At most 100 characters.
- `dailyLimit` (body, integer, optional): From 1 to 100.
- `paused` (body, boolean, optional)
- `warmup` (body, boolean, optional): true: campaigns wait until it is warm (a mailbox Bibu made: unless its warm-up is over); false: it sends at once, its warm-up alongside.

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/mailboxes/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "firstName": "Claire",
  "lastName": "Martin",
  "dailyLimit": 12,
  "paused": true,
  "warmup": true
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "email": "claire@maisonlune.fr",
  "name": "D2C brands",
  "status": "setting_up",
  "source": "provider",
  "dailyLimit": 12,
  "sentToday": 12,
  "warmup": {
    "skipped": true,
    "waitsUntilWarm": true,
    "readyOn": "2026-11-24",
    "progress": 1
  },
  "lastError": "…",
  "lastErrorMessage": "…",
  "pausedUntil": "…",
  "releasedOn": "2026-11-24",
  "health": {
    "status": "problem",
    "reasons": [
      "listedIp"
    ],
    "held": {
      "reason": "listed",
      "since": "…"
    },
    "bounceRate": 1,
    "complaints": 12,
    "warmup": {
      "state": "…",
      "day": 12,
      "health": "excellent",
      "inboxRate": 12,
      "start": "started"
    },
    "dns": {
      "spf": "ok",
      "dkim": "ok",
      "dmarc": "ok"
    },
    "test": {
      "state": "running",
      "at": "2026-11-24T09:58:00.000Z",
      "landing": "inbox",
      "spf": "…",
      "dkim": "…",
      "dmarc": "…",
      "blocklists": {
        "ip": "clean",
        "domain": "clean"
      }
    },
    "tests": {
      "today": 12,
      "left": 12,
      "againAt": "2026-11-24T09:58:00.000Z",
      "running": true,
      "next": null
    },
    "checkedAt": "2026-11-24T09:58:00.000Z"
  },
  "bought": {
    "kind": "new",
    "monthCents": 1240,
    "nextChargeOn": "2026-11-24",
    "pack": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Remove a mailbox

`DELETE /mailboxes/{id}` · MCP tool `remove_mailbox` · Changes data · full access key · Idempotency-Key header optional

Bibu sends nothing more from it; its conversations stay. Bibu disconnects it for good, and deletes one it made. A released one: only its line goes.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/mailboxes/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Test a mailbox's deliverability now

`POST /mailboxes/{id}/check` · MCP tool `check_mailbox` · Changes data · full access key · Idempotency-Key header optional

As the app's “Check now”: one ordinary email from the mailbox to Bibu's test inbox. A few minutes later its health (list_mailboxes) says where it landed (inbox, spam, or missing), SPF, DKIM and DMARC as the receiver saw them, and whether Spamhaus lists its server or its domain. 2 credits a test, refused when the balance can't pay it (402, credits.err.short). 10 tests a mailbox a UTC day, Bibu's own daily one included: past them, 409 mailboxes.health.err.limit (health.tests.againAt says when). One at a time (409 mailboxes.health.err.running). Refused for a paused mailbox (422 mailboxes.health.err.paused) or one not connected yet (422 mailboxes.health.err.notConnected). A mailbox listed by Spamhaus, or in spam twice in a row, is held from new first emails until a test says it is well again.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/mailboxes/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/check" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "email": "claire@maisonlune.fr",
  "name": "D2C brands",
  "status": "setting_up",
  "source": "provider",
  "dailyLimit": 12,
  "sentToday": 12,
  "warmup": {
    "skipped": true,
    "waitsUntilWarm": true,
    "readyOn": "2026-11-24",
    "progress": 1
  },
  "lastError": "…",
  "lastErrorMessage": "…",
  "pausedUntil": "…",
  "releasedOn": "2026-11-24",
  "health": {
    "status": "problem",
    "reasons": [
      "listedIp"
    ],
    "held": {
      "reason": "listed",
      "since": "…"
    },
    "bounceRate": 1,
    "complaints": 12,
    "warmup": {
      "state": "…",
      "day": 12,
      "health": "excellent",
      "inboxRate": 12,
      "start": "started"
    },
    "dns": {
      "spf": "ok",
      "dkim": "ok",
      "dmarc": "ok"
    },
    "test": {
      "state": "running",
      "at": "2026-11-24T09:58:00.000Z",
      "landing": "inbox",
      "spf": "…",
      "dkim": "…",
      "dmarc": "…",
      "blocklists": {
        "ip": "clean",
        "domain": "clean"
      }
    },
    "tests": {
      "today": 12,
      "left": 12,
      "againAt": "2026-11-24T09:58:00.000Z",
      "running": true,
      "next": null
    },
    "checkedAt": "2026-11-24T09:58:00.000Z"
  },
  "bought": {
    "kind": "new",
    "monthCents": 1240,
    "nextChargeOn": "2026-11-24",
    "pack": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 402 payment_required, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Domains close to your company's

`GET /domains/suggestions` · MCP tool `suggest_domains` · Reads only · any key

Domain names Bibu can buy now for you, close to your company's name or website, free and not used in Bibu, each with its year (yearCents: at cost, what Bibu pays for that name plus the card's fee: about €12.19 for a .com, its own price for each name) and the platforms its mailboxes may be on. Pick one for order_mailboxes (kind new); search_domains finds others. Looking them up is free; nothing is reserved. The search can take a minute: while it goes on, 422 mailboxes.err.domainsStillLooking: call again in a few seconds (the same search goes on).

Parameters:
- `count` (query, integer, optional): How many names, 1 to 10 (default 6). From 1 to 10.

Example request:

```bash
curl "https://meetbibu.com/api/v1/domains/suggestions" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "mailboxesPerDomain": 12,
  "data": [
    {
      "name": "D2C brands",
      "yearCents": 1240,
      "monthlyCents": 1240,
      "platforms": [
        "google"
      ]
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 422 unprocessable, 429 rate_limited, 500 server_error.

### Search domain names

`GET /domains/search` · MCP tool `search_domains` · Reads only · any key

As “Search a name” in Settings › Mailboxes: the domain names Bibu can buy now for a word or a whole domain you give (query: trybibu, or trybibu.io to rank that exact name first when it is free), free and not used in Bibu, each with its year (yearCents: at cost, what Bibu pays for that name plus the card's fee: about €12.19 for a .com, its own price for each name) and the platforms its mailboxes may be on. taken: the exact name asked, when it can't be bought here. Pick one for order_mailboxes (kind new), as a suggested one. Free; nothing is reserved. The search can take a minute: while it goes on, 422 mailboxes.err.domainsStillLooking: call again with the same query in a few seconds (the same search goes on, and counts once). 5 new queries a minute per account, then 429 mailboxes.err.searchTooOften. A query with no word in it: 422 mailboxes.err.searchWord; no free name: 422 mailboxes.err.searchNone.

Parameters:
- `query` (query, string, required): A word (trybibu) or a whole domain (trybibu.io): Bibu searches the word, and ranks the exact name first when it is free. At most 300 characters.
- `count` (query, integer, optional): How many names, 1 to 20 (default 10). From 1 to 20.

Example request:

```bash
curl "https://meetbibu.com/api/v1/domains/search?query=trybibu.io" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "mailboxesPerDomain": 12,
  "data": [
    {
      "name": "D2C brands",
      "yearCents": 1240,
      "monthlyCents": 1240,
      "platforms": [
        "google"
      ]
    }
  ],
  "taken": "…"
}
```

Errors: 400 bad_request, 401 unauthorized, 422 unprocessable, 429 rate_limited, 500 server_error.

### The price of mailboxes to buy

`GET /mailboxes/quote` · MCP tool `quote_mailboxes` · Reads only · any key

What order_mailboxes would charge now, on the card saved in Bibu, never from the balance. kind new: a domain (suggest_domains or search_domains) with 1 to 5 new mailboxes on Google Workspace or Microsoft 365, warmed for 14 days (its year now, at cost, what Bibu pays for that name plus the card's fee: about €12.19 for a .com, its own price for each name; and each mailbox €5 a month from today); kind add: 1 to 5 more on a domain you bought here, up to its slots; kind prewarmed: mailboxes already warm, ready to send, by 3 (€15 each the first month, then €10). The mailboxes are signed with firstName and lastName (default: your company's sender). Show dueNowCents and monthlyCents to the user, then pass them to order_mailboxes. Sending from Bibu's own mailboxes: coming soon.

Parameters:
- `kind` (query, string, required): new: a domain with new mailboxes; add: more mailboxes on a domain you bought here; prewarmed: mailboxes already warm, by 3. One of: new, add, prewarmed.
- `platform` (query, string, optional): google (Google Workspace, the default) or microsoft (Microsoft 365). kind add: the domain's own. prewarmed: google only today. One of: google, microsoft.
- `domain` (query, string, optional): kind new: the domain to buy (suggest_domains, search_domains); kind add: a domain you bought here. At most 253 characters.
- `count` (query, integer, required): How many mailboxes: 1 to 5 (new, add), 3, 6 or 9 (prewarmed). From 1 to 9.
- `firstName` (query, string, optional): The name the mailboxes send under (default: your company's sender). At most 60 characters.
- `lastName` (query, string, optional): At most 60 characters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/mailboxes/quote?kind=new&count=9" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "kind": "new",
  "platform": "google",
  "domain": "maisonlune.fr",
  "count": 42,
  "emails": [
    "claire@maisonlune.fr"
  ],
  "dueNowCents": 1240,
  "monthlyCents": 1240,
  "domainYearCents": 1240,
  "mailboxFirstMonthCents": 1240,
  "mailboxMonthCents": 1240,
  "registryEmail": "claire@maisonlune.fr",
  "domains": 12,
  "mailboxes": 12,
  "mailboxesPerDomain": 12,
  "perDomainCents": [
    12
  ],
  "domainMonthlyCents": 1240,
  "free": true,
  "card": true,
  "needsCard": true,
  "billingUrl": "https://maisonlune.fr",
  "firstEmailsOn": "2026-11-24"
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Buy mailboxes

`POST /mailboxes/order` · MCP tool `order_mailboxes` · Spends money · full access key · Idempotency-Key header required

Buys what quote_mailboxes priced, as Settings › Mailboxes › “Buy mailboxes” does. expectedMonthlyCents (and expectedDueNowCents) must be the quote's, shown to the user: another price is refused (409, mailboxes.err.priceChanged) before anything is paid. The card saved in Bibu is charged dueNowCents first (never the balance); without a card, 402 (mailboxes.err.needCard): the user adds one in the app. A card refused or a bank asking to confirm buys nothing. Then Bibu orders them: new mailboxes arrive within hours and send after 14 days of warm-up; pre-warmed ones send within a day. What can't be made is refunded on the card. Each mailbox is then charged monthly from today, a domain yearly, until you remove it (remove_mailbox; a pre-warmed one stops with its pack of 3). Refused too: an order less than a minute ago, your company's postal address or phone missing in My company (a new domain is registered in its name), the prices no longer Bibu's (mailboxes.err.costChanged, nothing charged).

Parameters:
- `kind` (body, string, optional): new, add or prewarmed (see quote_mailboxes). Required since v1.8: the former order by number of domains is no longer sold. One of: new, add, prewarmed.
- `platform` (body, string, optional): google (default) or microsoft; as quoted. One of: google, microsoft.
- `domain` (body, string, optional): As quoted. At most 253 characters.
- `count` (body, integer, optional): As quoted. From 1 to 9.
- `names` (body, array of object, optional): The name each mailbox sends under, in order: one for all, or one each (default: your company's sender). Pre-warmed: the first one for all. At most 9 items.
  - `names[].firstName` (body, string, required): At most 60 characters.
  - `names[].lastName` (body, string, required): At most 60 characters.
- `domains` (body, integer, optional): Before v1.8: a number of domains of 5 mailboxes each. No longer sold: 422 mailboxes.err.useBuy. From 1 to 10.
- `expectedMonthlyCents` (body, integer, required): quote_mailboxes' monthlyCents, as shown to the user. At least 0.
- `expectedDueNowCents` (body, integer, optional): quote_mailboxes' dueNowCents, as shown to the user (checked when given). At least 0.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/mailboxes/order" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "expectedMonthlyCents": 1240
}'
```

Example answer (200):

```json
{
  "ok": true,
  "dueNowCents": 1240,
  "monthlyCents": 1240,
  "order": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "status": "charging",
    "emails": [
      "claire@maisonlune.fr"
    ]
  },
  "domains": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "status": "ordered",
      "mailboxes": 12,
      "own": true,
      "nameservers": [
        "…"
      ],
      "paidUntil": "…",
      "lastError": "…",
      "lastErrorMessage": "…",
      "bought": {
        "platform": "google",
        "yearCents": 1240,
        "renewsOn": "2026-11-24",
        "slotsLeft": 12
      },
      "nextTryAt": "2026-11-24T09:58:00.000Z"
    }
  ],
  "firstEmailsOn": "2026-11-24"
}
```

Errors: 400 bad_request, 401 unauthorized, 402 payment_required, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Add a domain you own

`POST /domains` · MCP tool `add_own_domain` · Changes data · full access key · Idempotency-Key header optional

As Settings › Advanced › “Your own domains”: Bibu makes new mailboxes on a domain you already own, signed with the sender's name. Nothing is bought, nothing charged. Choose a domain used only for sending, not your main one: Bibu takes over its management (its nameservers), so a website or email on it would stop working. The answer's nameservers are to set at its registrar in place of its current ones; once they are, Bibu makes the mailboxes, connects and warms them up. The account's email address must be confirmed first.

Parameters:
- `name` (body, string, required): The domain (example.com). At most 300 characters.
- `mailboxes` (body, integer, required): How many mailboxes Bibu makes on it, 1 to 5. From 1 to 5.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/domains" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "maisonstudio-mail.com",
  "mailboxes": 5
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "name": "D2C brands",
  "status": "ordered",
  "mailboxes": 12,
  "own": true,
  "nameservers": [
    "…"
  ],
  "paidUntil": "…",
  "lastError": "…",
  "lastErrorMessage": "…",
  "bought": {
    "platform": "google",
    "yearCents": 1240,
    "renewsOn": "2026-11-24",
    "slotsLeft": 12
  },
  "nextTryAt": "2026-11-24T09:58:00.000Z"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

## Campaigns

Campaigns: create from a brief, read, change, the emails, launch, pause, resume, stop, their prospects and analytics.

### List campaigns

`GET /campaigns` · MCP tool `list_campaigns` · Reads only · any key

Every campaign of the company, newest first, with its numbers.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "status": "preparing",
      "createdAt": "2026-11-24T09:58:00.000Z",
      "launchedAt": "2026-11-24T09:58:00.000Z",
      "people": 200,
      "stats": {
        "reached": 12,
        "sent": 12,
        "replies": 12,
        "interested": 12,
        "meetings": 12,
        "bounced": 12,
        "unsubscribed": 12
      }
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Create a campaign from a brief

`POST /campaigns` · MCP tool `create_campaign` · Changes data · full access key · Idempotency-Key header optional

Like “New campaign” in the app: what you sell (offer), who to contact (target) and who never (antiTarget), how many people (people). Name job titles in target: the campaign writes to them. Bibu prepares about 15 prospects for your review (status preparing, then ready), paid in credits: the campaign's research once and each person found (get_prices; a balance that can't pay it: campaign.err.credits). Nothing is sent before launch_campaign; Bibu finds the others after it, just ahead of the emails (get_campaign's people). Before the launch, update_buyer_group changes who it looks for; count_buyer_group counts a search for free. A few new campaigns a day per account. writing: template (the default) sends the campaign's emails to everyone, their variables filled for each person; bibu (the option) has Bibu write each person's own email, 8 credits more for each one sent.

Parameters:
- `offer` (body, string, required): What you sell, in a sentence or two. 10 to 4,000 characters.
- `website` (body, string, optional): At most 300 characters.
- `target` (body, string, required): Who to contact: job titles, kind and size of company, places. The job titles named here decide the campaign's own buyer group. 5 to 4,000 characters.
- `antiTarget` (body, string, optional): Who never to contact. At most 4,000 characters.
- `people` (body, integer, required): How many people to reach in all. From 50 to 20,000.
- `fromList` (body, boolean, optional)
- `signals` (body, boolean, optional): Look for recent events (signals). true: each person is found through something that just happened to them or to their company, which makes now a good moment to write. Five events exist: funding (the company just raised funds), hiring (it is hiring for a role), growth (it is hiring a lot), acquisition (it just bought a company), new_role (the person just started in the role). Bibu picks the events from the brief (a target such as "start-ups that just raised funds" gives funding); when the brief names none, it takes new_role within 30 days. get_campaign's targeting.signals says which it picked, and update_campaign's signals changes them. false or left out: none.
- `goal` (body, object, optional): What every email and answer asks for: call, demo, in_person, chat, signup, visit, written, other (`other` in the client's words; `link` for chat, signup and visit only: the WhatsApp or Telegram chat, the sign-up page, the page to visit. Sent with another kind, a link is refused: a booking link is the campaign's bookingLink, update_campaign, or the company's, update_company).
  - `goal.kind` (body, string, required): One of: call, demo, in_person, chat, signup, visit, written, other.
  - `goal.other` (body, string, optional): At most 300 characters.
  - `goal.link` (body, string, optional): At most 300 characters.
- `place` (body, object, optional)
  - `place.scope` (body, string, required): One of: home, french, uk_ireland, nordics, english, europe, developed, world, custom.
  - `place.home` (body, string, optional): At most 100 characters.
  - `place.countries` (body, array of string, optional): At most 50 items.
- `writing` (body, string, optional): Who writes each person's email. template (a new campaign's default): the campaign's emails, the same for everyone, their variables filled for each person ({{first_name}}, {{company}}…); Bibu drafts them once, with the campaign's research, and you change them with update_campaign_emails. bibu (the option): Bibu writes each person's own email from them, 8 credits more for each email it wrote that is sent (first emails and follow-ups), campaigns on recent events too. Optional: template when left out; update_campaign changes it later. One of: template, bibu.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "offer": "We help D2C brands turn first orders into repeat customers.",
  "target": "Heads of e-commerce at French D2C brands with 20 to 200 people",
  "people": 200
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "preparing"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Get a campaign

`GET /campaigns/{id}` · MCP tool `get_campaign` · Reads only · any key

Its brief, who Bibu looks for, its buyer groups with each one's search and reach (each one left on is one more campaign at the launch), the emails, the sending and replies settings, what blocks the launch, and its numbers. Three numbers of people, never to be mixed up: people.asked (the brief's number), people.matching (how many match the search: the pool, a group's reach) and people.ready or people.chosen (found so far: about 15 before the launch, people.beforeLaunch; the others after launch_campaign, just ahead of the emails).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "name": "D2C brands",
  "status": "preparing",
  "launching": true,
  "createdAt": "2026-11-24T09:58:00.000Z",
  "launchedAt": "2026-11-24T09:58:00.000Z",
  "brief": {
    "offer": "We help D2C brands turn first orders into repeat customers.",
    "website": "https://maisonlune.fr",
    "target": "Heads of e-commerce at French D2C brands with 20 to 200 people",
    "antiTarget": "Marketplaces and agencies",
    "people": 200,
    "fromList": true,
    "signals": true,
    "goal": {
      "kind": "call",
      "other": "…",
      "link": "https://maisonlune.fr"
    },
    "place": {
      "scope": "…",
      "home": "…",
      "countries": [
        "…"
      ]
    }
  },
  "progress": {
    "stage": "…",
    "wanted": 12,
    "found": 12,
    "withEmail": 12,
    "verified": 12,
    "excluded": 12,
    "error": "…"
  },
  "people": {
    "asked": 250,
    "matching": {
      "count": 285,
      "estimated": false
    },
    "beforeLaunch": 15,
    "ready": 15,
    "chosen": 0,
    "left": 235,
    "next": "launch",
    "why": "full",
    "leftOut": [
      {
        "reason": "2026-11-24",
        "people": 200
      }
    ]
  },
  "targeting": {
    "summary": "…",
    "titles": [
      "Head of E-commerce"
    ],
    "industries": [
      "…"
    ],
    "headcounts": [
      "…"
    ],
    "countries": [
      "…"
    ],
    "signals": {
      "kinds": [
        "funding",
        "hiring"
      ],
      "jobs": [
        "accountant"
      ],
      "withinDays": 30
    }
  },
  "buyerGroups": {
    "groups": [
      {
        "id": "g2",
        "name": "Marketing leaders",
        "pain": "Need more qualified demos without hiring",
        "fit": 86,
        "reach": {
          "count": 285,
          "estimated": true
        },
        "on": true,
        "own": true,
        "campaignId": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
        "search": {
          "titles": [
            "DSI",
            "RSSI",
            "Responsable informatique"
          ],
          "excludeTitles": [
            "Assistant",
            "Stagiaire"
          ],
          "seniorities": [
            "director",
            "c_suite"
          ],
          "headcounts": [
            "51-200",
            "201-500"
          ],
          "industries": [
            "Hospitals and Health Care"
          ],
          "countries": [
            "France"
          ],
          "locations": [],
          "keywords": ""
        },
        "stated": true,
        "edited": true
      }
    ],
    "editable": true,
    "peopleEach": 700,
    "from": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
  },
  "language": "fr",
  "languages": [
    "fr"
  ],
  "emails": [
    {
      "delayDays": 3,
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week."
    }
  ],
  "writing": "bibu",
  "writingIncluded": true,
  "sending": {
    "timezone": "Europe/Paris",
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "start": "09:00",
    "end": "18:00",
    "dailyPerMailbox": 12,
    "mailboxCount": 12,
    "startsAt": "2026-11-24T09:58:00.000Z",
    "finishesAt": "2026-11-24T09:58:00.000Z"
  },
  "replies": {
    "aiSort": true,
    "aiDraft": true,
    "aiSend": true
  },
  "booking": {
    "own": "…",
    "company": "Maison Lune"
  },
  "schedule": {
    "own": true,
    "schedule": {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "start": "09:00",
      "end": "18:00",
      "countries": {},
      "smartDays": true,
      "sundays": true
    }
  },
  "blockers": [
    {
      "kind": "preparing"
    }
  ],
  "stats": {
    "reached": 12,
    "sent": 12,
    "replies": 12,
    "interested": 12,
    "meetings": 12,
    "bounced": 12,
    "unsubscribed": 12
  },
  "sentSoFar": 12,
  "plannedEmails": 12,
  "findingAhead": true,
  "leftOut": {},
  "instructions": {
    "own": "…",
    "defaults": "…"
  },
  "improving": true,
  "briefChange": {
    "emails": "kept"
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Change a campaign

`PATCH /campaigns/{id}` · MCP tool `update_campaign` · Changes data · full access key · Idempotency-Key header optional

Only the fields given change, in this order: brief (a draft never launched only: the people found who still fit stay, Bibu searches or writes again only what the change needs; it changes the answers in words, and Bibu works out the search again: to set a search's filters yourself, update_buyer_group; the answer's briefChange.emails says whether the emails were kept or are written again), signals (the recent events of a campaign that looks for some, before its launch), sending (merged with the current plan), replies, followUpPace and instructions (any time before the campaign is over, while it sends too), improving, writing (any time before the campaign is over: whoever nothing went to yet gets their emails the new way; people in their sequence keep what they read, their next follow-ups the new way; bibu costs 8 credits more for each email Bibu wrote that is sent), bookingLink (the campaign's own booking link, any time). Emails you wrote or changed yourself (update_campaign_emails) stay word for word through a change of brief or of instructions; Bibu's own draft is written again where the change calls for it; rewriteEmails: true has Bibu rewrite yours too. A refused field stops there: error.field names it (brief, signals, sending, replies, followUpPace, instructions, improving, writing or bookingLink), the ones before it stay changed and the ones after it are not applied.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `brief` (body, object, optional)
  - `brief.offer` (body, string, required): What you sell, in a sentence or two. 10 to 4,000 characters.
  - `brief.website` (body, string, optional): At most 300 characters.
  - `brief.target` (body, string, required): Who to contact: job titles, kind and size of company, places. The job titles named here decide the campaign's own buyer group. 5 to 4,000 characters.
  - `brief.antiTarget` (body, string, optional): Who never to contact. At most 4,000 characters.
  - `brief.people` (body, integer, required): How many people to reach in all. From 50 to 20,000.
  - `brief.fromList` (body, boolean, optional)
  - `brief.signals` (body, boolean, optional): Look for recent events (signals). true: each person is found through something that just happened to them or to their company, which makes now a good moment to write. Five events exist: funding (the company just raised funds), hiring (it is hiring for a role), growth (it is hiring a lot), acquisition (it just bought a company), new_role (the person just started in the role). Bibu picks the events from the brief (a target such as "start-ups that just raised funds" gives funding); when the brief names none, it takes new_role within 30 days. get_campaign's targeting.signals says which it picked, and update_campaign's signals changes them. false or left out: none.
  - `brief.goal` (body, object, optional): What every email and answer asks for: call, demo, in_person, chat, signup, visit, written, other (`other` in the client's words; `link` for chat, signup and visit only: the WhatsApp or Telegram chat, the sign-up page, the page to visit. Sent with another kind, a link is refused: a booking link is the campaign's bookingLink, update_campaign, or the company's, update_company).
    - `brief.goal.kind` (body, string, required): One of: call, demo, in_person, chat, signup, visit, written, other.
    - `brief.goal.other` (body, string, optional): At most 300 characters.
    - `brief.goal.link` (body, string, optional): At most 300 characters.
  - `brief.place` (body, object, optional)
    - `brief.place.scope` (body, string, required): One of: home, french, uk_ireland, nordics, english, europe, developed, world, custom.
    - `brief.place.home` (body, string, optional): At most 100 characters.
    - `brief.place.countries` (body, array of string, optional): At most 50 items.
- `signals` (body, object, optional): The recent events this campaign looks for (get_campaign's targeting.signals), for a campaign that already looks for some (brief.signals) and before its launch: a launched campaign keeps its events. Other events or another window is a new search: the campaign prepares again (status preparing), its review's people are found again, the emails you wrote stay.
  - `signals.kinds` (body, array of string, required): The events to look for, one at least: funding (the company just raised funds), hiring (it is hiring for a role), growth (it is hiring a lot), acquisition (it just bought a company), new_role (the person just started in the role). At most 5 items.
  - `signals.jobs` (body, array of string, optional): For hiring and growth: words of the job titles the company hires for. Left out: as they are. At most 20 items.
  - `signals.withinDays` (body, one of several, optional): How recent the event must be, in days: 7, 30, 90. Left out: as it is.
- `sending` (body, object, optional)
  - `sending.timezone` (body, string, optional): IANA time zone of the sending hours, e.g. Europe/Paris.
  - `sending.days` (body, array of integer, optional): Sending days, 0 = Sunday.
  - `sending.start` (body, string, optional): When sending starts, HH:MM (24-hour clock).
  - `sending.end` (body, string, optional): When sending ends, HH:MM, after start.
  - `sending.dailyPerMailbox` (body, integer, optional): Emails per mailbox and day, at most. From 1 to 200.
- `replies` (body, object, optional)
  - `replies.aiSort` (body, boolean, required): Bibu sorts each reply (its stage).
  - `replies.aiDraft` (body, boolean, required): Bibu writes the answer.
  - `replies.aiSend` (body, boolean, required): Bibu sends its answer itself (needs aiSort and aiDraft).
- `followUpPace` (body, string, optional): The follow-ups' rhythm, a preset of Bibu's (the missing follow-ups are written by its AI): default: 2 follow-ups, after 3 and 4 days, 2 credits each; steady: 3 follow-ups, after 3, 4 and 6 days, 2 credits each. A new campaign has the default (2 follow-ups). One of: default, steady.
- `instructions` (body, string or null, optional): The campaign's own instructions for Bibu's AI writing; null: the company's defaults; "": none. At most 4,000 characters.
- `rewriteEmails` (body, boolean, optional): With brief or instructions. true: Bibu rewrites the emails even if you wrote them; by default your own emails are kept.
- `improving` (body, boolean, optional)
- `writing` (body, string, optional): Who writes each person's email. template (a new campaign's default): the campaign's emails, the same for everyone, their variables filled for each person ({{first_name}}, {{company}}…); Bibu drafts them once, with the campaign's research, and you change them with update_campaign_emails. bibu (the option): Bibu writes each person's own email from them, 8 credits more for each email it wrote that is sent (first emails and follow-ups), campaigns on recent events too. One of: template, bibu.
- `bookingLink` (body, string or null, optional): The campaign's own booking link (cal.com/you; https:// is added when missing): what {{booking_link}} becomes in its emails not sent yet, and what Bibu's answers offer. null or "": the company's again (get_company). A new link waits for the account's email address to be confirmed, like in the app (auth.err.verifyFirst). At most 500 characters.

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "sending": {
    "days": [
      1,
      2,
      3,
      4
    ],
    "start": "09:00",
    "end": "17:30",
    "dailyPerMailbox": 25
  }
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "name": "D2C brands",
  "status": "preparing",
  "launching": true,
  "createdAt": "2026-11-24T09:58:00.000Z",
  "launchedAt": "2026-11-24T09:58:00.000Z",
  "brief": {
    "offer": "We help D2C brands turn first orders into repeat customers.",
    "website": "https://maisonlune.fr",
    "target": "Heads of e-commerce at French D2C brands with 20 to 200 people",
    "antiTarget": "Marketplaces and agencies",
    "people": 200,
    "fromList": true,
    "signals": true,
    "goal": {
      "kind": "call",
      "other": "…",
      "link": "https://maisonlune.fr"
    },
    "place": {
      "scope": "…",
      "home": "…",
      "countries": [
        "…"
      ]
    }
  },
  "progress": {
    "stage": "…",
    "wanted": 12,
    "found": 12,
    "withEmail": 12,
    "verified": 12,
    "excluded": 12,
    "error": "…"
  },
  "people": {
    "asked": 250,
    "matching": {
      "count": 285,
      "estimated": false
    },
    "beforeLaunch": 15,
    "ready": 15,
    "chosen": 0,
    "left": 235,
    "next": "launch",
    "why": "full",
    "leftOut": [
      {
        "reason": "2026-11-24",
        "people": 200
      }
    ]
  },
  "targeting": {
    "summary": "…",
    "titles": [
      "Head of E-commerce"
    ],
    "industries": [
      "…"
    ],
    "headcounts": [
      "…"
    ],
    "countries": [
      "…"
    ],
    "signals": {
      "kinds": [
        "funding",
        "hiring"
      ],
      "jobs": [
        "accountant"
      ],
      "withinDays": 30
    }
  },
  "buyerGroups": {
    "groups": [
      {
        "id": "g2",
        "name": "Marketing leaders",
        "pain": "Need more qualified demos without hiring",
        "fit": 86,
        "reach": {
          "count": 285,
          "estimated": true
        },
        "on": true,
        "own": true,
        "campaignId": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
        "search": {
          "titles": [
            "DSI",
            "RSSI",
            "Responsable informatique"
          ],
          "excludeTitles": [
            "Assistant",
            "Stagiaire"
          ],
          "seniorities": [
            "director",
            "c_suite"
          ],
          "headcounts": [
            "51-200",
            "201-500"
          ],
          "industries": [
            "Hospitals and Health Care"
          ],
          "countries": [
            "France"
          ],
          "locations": [],
          "keywords": ""
        },
        "stated": true,
        "edited": true
      }
    ],
    "editable": true,
    "peopleEach": 700,
    "from": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
  },
  "language": "fr",
  "languages": [
    "fr"
  ],
  "emails": [
    {
      "delayDays": 3,
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week."
    }
  ],
  "writing": "bibu",
  "writingIncluded": true,
  "sending": {
    "timezone": "Europe/Paris",
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "start": "09:00",
    "end": "18:00",
    "dailyPerMailbox": 12,
    "mailboxCount": 12,
    "startsAt": "2026-11-24T09:58:00.000Z",
    "finishesAt": "2026-11-24T09:58:00.000Z"
  },
  "replies": {
    "aiSort": true,
    "aiDraft": true,
    "aiSend": true
  },
  "booking": {
    "own": "…",
    "company": "Maison Lune"
  },
  "schedule": {
    "own": true,
    "schedule": {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "start": "09:00",
      "end": "18:00",
      "countries": {},
      "smartDays": true,
      "sundays": true
    }
  },
  "blockers": [
    {
      "kind": "preparing"
    }
  ],
  "stats": {
    "reached": 12,
    "sent": 12,
    "replies": 12,
    "interested": 12,
    "meetings": 12,
    "bounced": 12,
    "unsubscribed": 12
  },
  "sentSoFar": 12,
  "plannedEmails": 12,
  "findingAhead": true,
  "leftOut": {},
  "instructions": {
    "own": "…",
    "defaults": "…"
  },
  "improving": true,
  "briefChange": {
    "emails": "kept"
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Delete a campaign, in any state

`DELETE /campaigns/{id}` · MCP tool `delete_campaign` · Changes data · full access key · Idempotency-Key header optional

A running campaign stops sending at once. Its people waiting are never contacted; the replies already received stay in the inbox; the people already emailed are never emailed again by Bibu. It is listed nowhere after; it can be put back from the website's Undo for one minute.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Get a campaign's emails

`GET /campaigns/{id}/emails` · MCP tool `get_campaign_emails` · Reads only · any key

The sequence as written (the first email, then the follow-ups), in the campaign's language, with its variables. Before the launch, for an account that hasn't paid: the first email alone, its follow-ups are written at the launch (a first email you changed goes out as you left it). Two things an email sent has and this template doesn't: the line Bibu adds under the signature, the company's name (get_company; the website's domain while the name is empty), so the person knows who writes; and {{opening_line}}, a line of Bibu's own draft meant for one person: with writing template it stays empty and the line that holds it is removed, with writing bibu Bibu writes each person's whole email. preview_campaign_email shows the email as one person gets it.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/emails" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "language": "fr",
  "emails": [
    {
      "delayDays": 3,
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week."
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Replace a campaign's emails

`PUT /campaigns/{id}/emails` · MCP tool `update_campaign_emails` · Changes data · full access key · Idempotency-Key header optional

The whole sequence, checked like in the app (no empty email, only variables Bibu can fill). Any time before the campaign is over, while it sends too: what was sent never changes, the people not emailed yet get the new ones. With writing template they are each person's emails, variables filled; with writing bibu, each person's own emails not sent yet are written again from them.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `emails` (body, array of object, required): At most 10 items.
  - `emails[].delayDays` (body, integer, required): Days after the previous email (0 for the first). From 0 to 60.
  - `emails[].subject` (body, string, required): The first email's subject; a follow-up's is ignored (it answers in the same thread). At most 300 characters.
  - `emails[].body` (body, string, required): Plain text, with {{first_name}}, {{company}}, {{booking_link}}… filled per person. {{opening_line}} (Bibu's own draft has it) is a line meant for one person: with writing template it stays empty and the line that holds it is removed; with writing bibu, Bibu writes each person's whole email. At most 10,000 characters.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/emails" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    {
      "delayDays": 3,
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week."
    }
  ]
}'
```

Example answer (200):

```json
{
  "language": "fr",
  "emails": [
    {
      "delayDays": 3,
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week."
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Preview the first email for a person

`GET /campaigns/{id}/preview` · MCP tool `preview_campaign_email` · Reads only · any key

The first email exactly as one real person of the campaign receives it, and the follow-ups they get without a reply. Without personId: one of its people, at random. It only reads: when that person's emails aren't settled yet (with writing bibu, their own, written for them), it shows the campaign's emails with their details and says written: false (Bibu settles theirs before they're sent). The body ends as the email sent does: the company's line under the signature and, where the law asks for it, the company's postal address (get_company).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `personId` (query, string (uuid), optional): A person of the campaign: the id list_campaign_people gives (their conversation's), or their person id.

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/preview" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "person": {
    "id": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
    "firstName": "Claire",
    "lastName": "Martin",
    "title": "Head of E-commerce",
    "company": "Maison Lune",
    "email": "claire@maisonlune.fr"
  },
  "subject": "An idea for Maison Lune",
  "body": "Hi Claire,\n\nMost of Maison Lune's first orders come from Instagram, I think. We help D2C brands turn them into repeat customers.\n\nWorth a short call next week?\n\nThomas\nMaison Studio",
  "followUps": [
    {
      "body": "Hi Claire, a quick follow-up on my last email.\n\nThomas",
      "delayDays": 3
    },
    {
      "body": "Last one from me, Claire: if repeat orders matter this year, my calendar is here.\n\nThomas",
      "delayDays": 5
    }
  ],
  "written": true
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Launch (approve) a campaign

`POST /campaigns/{id}/launch` · MCP tool `launch_campaign` · Spends money · full access key · Idempotency-Key header required

The big button: Bibu starts emailing real people, each action paid within the daily budget (in credits (1 credit = €0.001): the campaign's research 500, each person found 5 (100 from the extended database), their email found 30, each email sent 2 (follow-ups too); with the writing option, 8 more for each email Bibu wrote; get_prices gives every price; a campaign made before the credits keeps its price per email to its end). get_campaign_estimate says first what the campaign will cost and how many people the balance covers. It may start several campaigns: this one, and one more for each other buyer group left on (get_campaign's buyerGroups; switch one off before with set_buyer_group), the brief's number of people shared between them. The answer lists every campaign it started (campaigns, this one first): pause_campaign or stop_campaign stops each by its id. Each is active at once with the people already reviewed (chosen before the account paid: their addresses are found and checked then, and each one's emails written, before anything goes out), and Bibu finds the next ones in small batches just ahead of the sending (about a day of them at most); a campaign for another website than the company's website is refused (422, campaign.err.otherSite). Needs a card on file (402, billing.err.noCard: its sentence gives the page where the user saves one, get_billing's billingUrl; a key never saves a card), the credits for the research when the preparation did not pay it (402, credits.err.short) and nothing blocking (409/422 with the blocker's key: no mailbox ready, the sender's name, the law's postal address, which update_company sets…).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/launch" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "preparing",
  "campaigns": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "status": "preparing",
      "buyerGroup": "Marketing leaders"
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 402 payment_required, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Switch a buyer group on or off before the launch

`PUT /campaigns/{id}/buyer-groups/{groupId}` · MCP tool `set_buyer_group` · Changes data · full access key · Idempotency-Key header optional

Like the switches of “Who buys your offer” on the campaign's review. Each other group left on becomes a campaign of its own at launch_campaign, which emails its own people; off, it gets no campaign. Until the launch (409 after), at no cost: nothing is searched now. The campaign's own group stays on (422). The answer is the campaign's buyerGroups. To change who a group's campaign looks for: update_buyer_group.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `groupId` (path, string, required): A buyer group's id in this campaign (g1, g2…), as get_campaign's buyerGroups gives it.
- `on` (body, boolean, required): true: a campaign of its own at the launch; false: none.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/buyer-groups/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "on": false
}'
```

Example answer (200):

```json
{
  "groups": [
    {
      "id": "g2",
      "name": "Marketing leaders",
      "pain": "Need more qualified demos without hiring",
      "fit": 86,
      "reach": {
        "count": 285,
        "estimated": true
      },
      "on": true,
      "own": true,
      "campaignId": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
      "search": {
        "titles": [
          "DSI",
          "RSSI",
          "Responsable informatique"
        ],
        "excludeTitles": [
          "Assistant",
          "Stagiaire"
        ],
        "seniorities": [
          "director",
          "c_suite"
        ],
        "headcounts": [
          "51-200",
          "201-500"
        ],
        "industries": [
          "Hospitals and Health Care"
        ],
        "countries": [
          "France"
        ],
        "locations": [],
        "keywords": ""
      },
      "stated": true,
      "edited": true
    }
  ],
  "editable": true,
  "peopleEach": 700,
  "from": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Set a buyer group's search before the launch

`PATCH /campaigns/{id}/buyer-groups/{groupId}` · MCP tool `update_buyer_group` · Changes data · full access key · Idempotency-Key header optional

Who a group's campaign looks for, set by you: job titles, titles left out, levels, company sizes, industries, countries, places, keywords. Each filter given replaces the group's; one left out stays. The answer is the group with its reach counted again, for free (counted: false when the lead source can't count that search; never a paid search to find out): count_buyer_group counts a search first, without saving it, and list_search_values lists the values allowed. The group is then yours (edited): Bibu searches exactly that, and no longer corrects or widens it by itself; a search that finds nobody says so. The campaign's own group: the campaign searches it from now on; the review's people who no longer fit leave, and Bibu searches the missing ones or starts a new search (preparation: status preparing, then ready; a few a day per account). Another group: nothing is searched now, its campaign is made at launch_campaign. name and pain rename the group. Once the review is there (409 while the campaign prepares) and until the launch (409 after). It spends nothing.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `groupId` (path, string, required): A buyer group's id in this campaign (g1, g2…), as get_campaign's buyerGroups gives it.
- `search` (body, object, optional): The filters to set. Left out: the search stays Bibu's.
  - `search.titles` (body, array of string, optional): Job titles to search, as people write them on LinkedIn ("DSI", "Responsable informatique"): give the usual local titles and the English ones. []: any title (then give seniorities). At most 50 items.
  - `search.excludeTitles` (body, array of string, optional): Job titles to leave out ("Assistant", "Stagiaire"). []: none. At most 50 items.
  - `search.seniorities` (body, array of string, optional): Levels. []: any level. A lead source without a level filter reads them only when no title is given: the titles then say the level. At most 50 items.
  - `search.headcounts` (body, array of string, optional): Company sizes (employees). []: any size. At most 50 items.
  - `search.industries` (body, array of string, optional): Company industries, by the names LinkedIn gives them ("Hospitals and Health Care"): list_search_values lists them, any other name is refused. []: any industry. At most 50 items.
  - `search.countries` (body, array of string, optional): Countries, by name in English or French, or ISO code ("France", "BE"). Countries Bibu emails nobody in (list_search_values' closedCountries) are left out; 422 when only those are left. []: the whole world Bibu emails in. The campaign's own group: they become the campaign's “Where?”. At most 50 items.
  - `search.locations` (body, array of string, optional): Regions or cities inside the countries ("Île-de-France", "Lyon"), as the lead source writes them. []: the whole countries. At most 50 items.
  - `search.keywords` (body, string, optional): Words a profile must hold: the narrowest filter, one wrong word empties the search. "": none. At most 200 characters.
- `name` (body, string, optional): How the group is called, when its search no longer says its former name. The campaign follows its own group's new name when it carried the former one. At most 60 characters.
- `pain` (body, string, optional): Their problem the offer solves, in one line. At most 160 characters.

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/buyer-groups/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "search": {
    "titles": [
      "DSI",
      "RSSI",
      "Responsable informatique"
    ],
    "headcounts": [
      "51-200",
      "201-500",
      "501-1000"
    ]
  }
}'
```

Example answer (200):

```json
{
  "group": {
    "id": "g2",
    "name": "Marketing leaders",
    "pain": "Need more qualified demos without hiring",
    "fit": 86,
    "reach": {
      "count": 285,
      "estimated": true
    },
    "on": true,
    "own": true,
    "campaignId": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
    "search": {
      "titles": [
        "DSI",
        "RSSI",
        "Responsable informatique"
      ],
      "excludeTitles": [
        "Assistant",
        "Stagiaire"
      ],
      "seniorities": [
        "director",
        "c_suite"
      ],
      "headcounts": [
        "51-200",
        "201-500"
      ],
      "industries": [
        "Hospitals and Health Care"
      ],
      "countries": [
        "France"
      ],
      "locations": [],
      "keywords": ""
    },
    "stated": true,
    "edited": true
  },
  "counted": true,
  "preparation": "none",
  "leftOut": 12
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Count who a buyer group's search would match

`POST /campaigns/{id}/buyer-groups/{groupId}/count` · MCP tool `count_buyer_group` · Reads only · any key

The count to look at before update_buyer_group: how many people the group's search would match with these filters over it (none: the search as it is), by the lead source's free count. Nothing is saved, nobody is searched, nothing is spent: call it as often as you change a filter, and see the count move. counted: false when the source can't count that search for free (reach is then null; never a paid search to find out). The number is the people who match, not people found: before the launch Bibu finds about 15 of them for the review, the others after launch_campaign.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `groupId` (path, string, required): A buyer group's id in this campaign (g1, g2…), as get_campaign's buyerGroups gives it.
- `search` (body, object, optional): The filters to try over the group's search. Left out: the search as it is.
  - `search.titles` (body, array of string, optional): Job titles to search, as people write them on LinkedIn ("DSI", "Responsable informatique"): give the usual local titles and the English ones. []: any title (then give seniorities). At most 50 items.
  - `search.excludeTitles` (body, array of string, optional): Job titles to leave out ("Assistant", "Stagiaire"). []: none. At most 50 items.
  - `search.seniorities` (body, array of string, optional): Levels. []: any level. A lead source without a level filter reads them only when no title is given: the titles then say the level. At most 50 items.
  - `search.headcounts` (body, array of string, optional): Company sizes (employees). []: any size. At most 50 items.
  - `search.industries` (body, array of string, optional): Company industries, by the names LinkedIn gives them ("Hospitals and Health Care"): list_search_values lists them, any other name is refused. []: any industry. At most 50 items.
  - `search.countries` (body, array of string, optional): Countries, by name in English or French, or ISO code ("France", "BE"). Countries Bibu emails nobody in (list_search_values' closedCountries) are left out; 422 when only those are left. []: the whole world Bibu emails in. The campaign's own group: they become the campaign's “Where?”. At most 50 items.
  - `search.locations` (body, array of string, optional): Regions or cities inside the countries ("Île-de-France", "Lyon"), as the lead source writes them. []: the whole countries. At most 50 items.
  - `search.keywords` (body, string, optional): Words a profile must hold: the narrowest filter, one wrong word empties the search. "": none. At most 200 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/buyer-groups/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/count" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "search": {
    "titles": [
      "DSI",
      "RSSI",
      "Responsable informatique",
      "Directeur des systèmes d’information"
    ],
    "headcounts": [
      "51-200",
      "201-500",
      "501-1000"
    ],
    "industries": [
      "Hospitals and Health Care"
    ]
  }
}'
```

Example answer (200):

```json
{
  "search": {
    "titles": [
      "DSI",
      "RSSI",
      "Responsable informatique"
    ],
    "excludeTitles": [
      "Assistant",
      "Stagiaire"
    ],
    "seniorities": [
      "director",
      "c_suite"
    ],
    "headcounts": [
      "51-200",
      "201-500"
    ],
    "industries": [
      "Hospitals and Health Care"
    ],
    "countries": [
      "France"
    ],
    "locations": [],
    "keywords": ""
  },
  "reach": {
    "count": 285,
    "estimated": true
  },
  "counted": true,
  "saved": {
    "count": 285,
    "estimated": true
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### List the values a search takes

`GET /search-values` · MCP tool `list_search_values` · Reads only · any key

The closed lists update_buyer_group and count_buyer_group check: the levels (seniorities), the company sizes (headcounts), the company industries as LinkedIn names them (about 500: q keeps those whose name holds these words), and the countries Bibu emails nobody in (the law there asks for consent first). Job titles, places and keywords are free text.

Parameters:
- `q` (query, string, optional): Words an industry's name must hold ("health"), any case. Left out: every industry. At most 100 characters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/search-values" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "seniorities": [
    "owner",
    "founder",
    "c_suite",
    "partner",
    "vp",
    "head",
    "director",
    "manager",
    "senior",
    "entry"
  ],
  "headcounts": [
    "1-10",
    "11-50",
    "51-200",
    "201-500",
    "501-1000",
    "1001-5000",
    "5001-10000",
    "10001+"
  ],
  "industries": [
    "Hospitals and Health Care",
    "Mental Health Care",
    "Public Health"
  ],
  "closedCountries": [
    "Austria",
    "Germany",
    "Italy"
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Pause a campaign

`POST /campaigns/{id}/pause` · MCP tool `pause_campaign` · Changes data · full access key · Idempotency-Key header optional

Nothing more goes out until resume_campaign; replies keep arriving.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/pause" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "paused"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Resume (start) a paused campaign

`POST /campaigns/{id}/resume` · MCP tool `resume_campaign` · Spends money · full access key · Idempotency-Key header required

Sending goes on where it stopped: Bibu emails the campaign's people again (real people), each action paid within the daily budget (in credits (1 credit = €0.001): the campaign's research 500, each person found 5 (100 from the extended database), their email found 30, each email sent 2 (follow-ups too); with the writing option, 8 more for each email Bibu wrote; get_prices gives every price; a campaign made before the credits keeps its price per email to its end).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/resume" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "active"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Stop a campaign for good

`POST /campaigns/{id}/stop` · MCP tool `stop_campaign` · Changes data · full access key · Idempotency-Key header optional

Nothing more goes out, ever; replies still arrive in their conversations. Can't be undone.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/stop" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "stopped"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Prepare a failed campaign again

`POST /campaigns/{id}/retry` · MCP tool `retry_campaign` · Changes data · full access key · Idempotency-Key header optional

For a campaign whose preparation failed (status failed): Bibu finds the people and writes the emails again from its brief (status preparing, then ready). Nothing is sent.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/retry" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "status": "preparing"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### A campaign's daily cap

`GET /campaigns/{id}/budget` · MCP tool `get_campaign_budget` · Reads only · any key

Its share of the daily budget today (Bibu's, or your own cap, which stays), what it spent of it, the most it may get, and what Bibu did for it.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/budget" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "running": true,
  "capCents": 1240,
  "by": "bibu",
  "spentTodayCents": 1240,
  "priceCents": 1240,
  "maxCents": 1240,
  "dailyBudgetCents": 1240,
  "managed": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "…",
      "at": "2026-11-24T09:58:00.000Z"
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Set a campaign's own daily cap

`PUT /campaigns/{id}/budget` · MCP tool `set_campaign_budget` · Changes data · full access key · Idempotency-Key header optional

In euros a day, within the workspace's daily budget (kept between one of its people, get_campaign_budget's priceCents, and what the other campaigns' own caps leave); it stays whatever Bibu does. null: Bibu sets it again.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `dailyCap` (body, number or null, required): Euros a day; null: Bibu's share. From 0 to 100,000.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/budget" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "dailyCap": 20
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### What a campaign will cost

`GET /campaigns/{id}/estimate` · MCP tool `get_campaign_estimate` · Reads only · any key

As the Launch button's lines: what the whole campaign costs in credits (1 credit = €0.001), part by part, for the brief's number of people (its research while still to pay, then for each person their finding, their email found, each email sent, each written by Bibu with the writing option, and the event that brought them on a campaign on recent events), and what the balance covers: the research, then whole people. Nothing is spent. A campaign made before the credits keeps its price per email to its end: pricing per_email, no estimate, its first email's price (priceCents).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/estimate" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "pricing": "credits",
  "estimate": {
    "research": 12,
    "people": 200,
    "emailsFound": 12,
    "sent": 12,
    "written": 12,
    "events": 12,
    "perPerson": 12,
    "total": 41500
  },
  "euros": 12.4,
  "balance": 12,
  "covers": {
    "research": true,
    "people": 200
  },
  "priceCents": 1240
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Give a campaign its own sending schedule

`PUT /campaigns/{id}/schedule` · MCP tool `update_campaign_schedule` · Changes data · full access key · Idempotency-Key header optional

Each person's local days and hours, per country; null: it follows the company's again (get_schedule). Any time before it is finished.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `schedule` (body, object or null, required): When emails go out, in each person's own local time.
  - `schedule.days` (body, array of integer, required): 0 = Sunday.
  - `schedule.start` (body, string, required): HH:MM (24-hour clock).
  - `schedule.end` (body, string, required): HH:MM, after start.
  - `schedule.countries` (body, object, required): A country's own days and hours, by ISO code (e.g. US); the default row holds for the others.
  - `schedule.smartDays` (body, boolean, required): Each country's own weekend is respected.
  - `schedule.sundays` (body, boolean, required): With smartDays: Sunday too.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/schedule" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "schedule": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "start": "09:00",
    "end": "18:00",
    "countries": {},
    "smartDays": true,
    "sundays": true
  }
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### What a campaign sends next, and what stops it

`GET /campaigns/{id}/sending` · MCP tool `get_campaign_sending` · Reads only · any key

Before the launch: its blockers. Running: the next sending window, and what holds it (no card, no credits left, the budget spent, a mailbox in trouble, emails waiting for your check…), with the fix in Bibu.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/sending" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "status": "preparing",
  "blockers": [
    {
      "kind": "preparing"
    }
  ],
  "next": {
    "kind": "now"
  },
  "hold": {
    "kind": "pool_paused"
  },
  "mailboxCount": 12,
  "startsAt": "2026-11-24T09:58:00.000Z",
  "finishesAt": "2026-11-24T09:58:00.000Z"
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### A campaign's analytics

`GET /campaigns/{id}/analytics` · MCP tool `get_campaign_analytics` · Reads only · any key

Its numbers, each step of the journey (found, first email, follow-up, replied, hot leads, meetings) and its rates, replies by email of the sequence, and its people by country, company size and job title.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/analytics" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "stats": {
    "reached": 12,
    "sent": 12,
    "replies": 12,
    "interested": 12,
    "meetings": 12,
    "bounced": 12,
    "unsubscribed": 12
  },
  "steps": {
    "found": 12,
    "firstEmail": 12,
    "followUp": 12,
    "replied": 12,
    "hotLeads": 12,
    "meetings": 12
  },
  "waiting": {
    "firstEmail": 12,
    "inSequence": 12
  },
  "rates": {},
  "repliesAfter": [
    12
  ],
  "lastActionAt": "2026-11-24T09:58:00.000Z",
  "pool": {
    "emailable": 12,
    "noAddress": 12,
    "checking": 12,
    "removed": 12
  },
  "sentByStep": [
    12
  ],
  "segments": {}
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### List a campaign's prospects

`GET /campaigns/{id}/people` · MCP tool `list_campaign_people` · Reads only · any key

The prospects kept in the campaign so far, hot leads first, then those who replied, then the latest active; 25 a page. Before the launch: the review's prospects only (about 15); the others are found as the emails go out (get_campaign's people).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `q` (query, string, optional): Searches names, companies, addresses and titles. At most 200 characters.
- `page` (query, integer, optional): The page, from 1 (default 1). From 1 to 10,000.

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/people" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "firstName": "Claire",
      "lastName": "Martin",
      "title": "Head of E-commerce",
      "company": "Maison Lune",
      "companyDomain": "maisonlune.fr",
      "country": "France",
      "status": "queued",
      "stage": "new",
      "sent": 12,
      "signal": "…"
    }
  ],
  "total": 42,
  "page": 1,
  "pageSize": 25
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### List everyone a campaign's search finds, before its launch

`POST /campaigns/{id}/listed` · MCP tool `list_all_people` · Spends money · full access key · Idempotency-Key header required

Before the launch, Bibu finds about 15 people for the review. This lists everyone the campaign's search finds, 1,000 at most, at 1 credit a person: who they are (name, job, company, country), no fit check, no email address. Call it first without confirm: it answers how many people it would list (count), their price in credits, your balance and whether it covers them, and the people listed so far; nothing is searched or spent. Then call it with confirm: true (a new Idempotency-Key): the list starts in the background when the balance covers it (402, credits.err.short, otherwise), and each person is charged as they are listed; call it again without confirm to read them, a page of 100 at a time. A person listed is not in the campaign: launch_campaign finds the campaign's people as before, and one of them who was listed is charged as any person found. Only for a campaign ready to launch (409 while it is prepared, or once launched) whose search is of people (422 for a search by recent events).

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `confirm` (body, boolean, optional): true: start the list (charged as it goes). Left out or false: the count and the price only, nothing spent.
- `page` (body, integer, optional): The page, from 1 (default 1). From 1 to 10,000.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/listed" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "confirm": false,
  "page": 1
}'
```

Example answer (200):

```json
{
  "quote": {
    "count": 640,
    "counted": true,
    "credits": 640,
    "balance": 12,
    "covers": true,
    "listed": 12
  },
  "started": true,
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "firstName": "Claire",
      "lastName": "Martin",
      "title": "Head of E-commerce",
      "company": "Maison Lune",
      "companyDomain": "maisonlune.fr",
      "country": "France"
    }
  ],
  "total": 42,
  "page": 1,
  "pageSize": 25
}
```

Errors: 400 bad_request, 401 unauthorized, 402 payment_required, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### List a campaign's companies

`GET /campaigns/{id}/companies` · MCP tool `list_campaign_companies` · Reads only · any key

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `page` (query, integer, optional): The page, from 1 (default 1). From 1 to 10,000.

Example request:

```bash
curl "https://meetbibu.com/api/v1/campaigns/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/companies" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "name": "D2C brands",
      "domain": "maisonlune.fr",
      "country": "France",
      "size": "…",
      "industry": "…",
      "people": 200,
      "contacted": 12,
      "replied": 12,
      "hot": 12
    }
  ],
  "total": 42,
  "page": 1,
  "pageSize": 25
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### The company's analytics

`GET /analytics` · MCP tool `get_analytics` · Reads only · any key

Emails sent (first emails and follow-ups), delivered, bounced, hot leads, meetings and money spent over a period, every campaign or one, with a small series per day.

Parameters:
- `period` (query, string, optional): today, 7d (default), 30d or all. One of: today, 7d, 30d, all.
- `campaignId` (query, string (uuid), optional): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/analytics" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "period": "…",
  "from": "…",
  "to": "…",
  "campaignId": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
  "sent": 12,
  "firstEmails": 12,
  "followUps": 12,
  "bounced": 12,
  "delivered": 12,
  "interested": 12,
  "meetings": 12,
  "hotLeads": 12,
  "spentCents": 1240,
  "series": [
    {
      "from": "…",
      "to": "…",
      "sent": 12,
      "delivered": 12,
      "hotLeads": 12,
      "spentCents": 1240
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

## Prospects

Prospects: the list and its filters, one prospect's page, deal statuses, team notes, hot leads, your own contact list.

### List prospects

`GET /people` · MCP tool `list_people` · Reads only · any key

The people of the launched campaigns, like the Prospects page: sorted hottest first (or by latest activity, or by recent event), filtered by stage, event, campaign, deal status, and searched. 30 a page.

Parameters:
- `q` (query, string, optional): Searches names, companies, addresses and titles. At most 200 characters.
- `sort` (query, string, optional): One of: hottest, activity, events.
- `stage` (query, string, optional): waiting: an answer waits for you; hot: interested or meeting; noReply: emailed, never replied; notContacted: nothing sent to them yet; else a stage. One of: all, waiting, hot, noReply, notContacted, new, interested, meeting, not_interested, out_of_office, wrong_person, later.
- `event` (query, string, optional): A recent event kind, any, or all (default). One of: all, any, funding, hiring, growth, acquisition, new_role.
- `campaignId` (query, string (uuid), optional): A Bibu id (UUID).
- `deal` (query, string, optional): A deal status key, any (one set), none, or all (default). At most 100 characters.
- `page` (query, integer, optional): The page, from 1 (default 1). From 1 to 10,000.

Example request:

```bash
curl "https://meetbibu.com/api/v1/people" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "person": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "firstName": "Claire",
        "lastName": "Martin",
        "title": "Head of E-commerce",
        "company": "Maison Lune",
        "companyDomain": "maisonlune.fr"
      },
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "status": "queued",
      "stage": "new",
      "attention": "meeting",
      "stopped": true,
      "signal": {
        "kind": "funding",
        "date": "2026-11-24T09:58:00.000Z",
        "text": "Yes, happy to talk next week.",
        "url": "https://maisonlune.fr",
        "site": {
          "readAt": "2026-11-24T09:58:00.000Z",
          "job": {
            "title": "Head of E-commerce",
            "place": "…"
          },
          "raise": {
            "amount": "…",
            "title": "Head of E-commerce"
          }
        }
      },
      "score": {
        "fit": 12,
        "event": {},
        "reply": {},
        "total": 42,
        "cold": true
      },
      "activityAt": "2026-11-24T09:58:00.000Z",
      "deal": {
        "key": "…",
        "label": "Proposal sent"
      }
    }
  ],
  "total": 42
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Get a person

`GET /people/{id}` · MCP tool `get_person` · Reads only · any key

Who they are, their checked address (hidden until Bibu's first email to them has gone), why Bibu chose them, their score, their company, and one timeline of emails and decisions.

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).

Example request:

```bash
curl "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "person": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "firstName": "Claire",
    "lastName": "Martin",
    "title": "Head of E-commerce",
    "company": "Maison Lune",
    "headline": "…",
    "location": "2026-11-24",
    "country": "France",
    "profileUrl": "https://maisonlune.fr"
  },
  "email": {
    "address": "…",
    "hidden": true,
    "verdict": "deliverable",
    "checkedAt": "2026-11-24T09:58:00.000Z",
    "published": {
      "url": "https://maisonlune.fr",
      "seenAt": "2026-11-24T09:58:00.000Z"
    }
  },
  "campaign": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "D2C brands",
    "status": "preparing",
    "launched": true,
    "timezone": "Europe/Paris"
  },
  "status": "queued",
  "stage": "new",
  "stageBy": "ai",
  "replied": true,
  "why": {
    "criteria": [
      {
        "key": "…",
        "verdict": "…",
        "wanted": [
          "…"
        ],
        "found": "…"
      }
    ],
    "aiFit": 12,
    "signal": {
      "kind": "funding",
      "date": "2026-11-24T09:58:00.000Z",
      "text": "Yes, happy to talk next week.",
      "url": "https://maisonlune.fr",
      "site": {
        "readAt": "2026-11-24T09:58:00.000Z",
        "job": {
          "title": "Head of E-commerce",
          "place": "…"
        },
        "raise": {
          "amount": "…",
          "title": "Head of E-commerce"
        }
      }
    },
    "via": "search"
  },
  "score": {
    "fit": 12,
    "event": {},
    "reply": {},
    "total": 42,
    "cold": true
  },
  "company": {
    "name": "D2C brands",
    "domain": "maisonlune.fr",
    "facts": {}
  },
  "story": {
    "past": [
      {
        "kind": "…",
        "at": "2026-11-24T09:58:00.000Z"
      }
    ],
    "upcoming": [
      {
        "kind": "…",
        "at": "2026-11-24T09:58:00.000Z"
      }
    ]
  },
  "instructions": "Met her at the Paris retail show.",
  "stoppedAt": "2026-11-24T09:58:00.000Z",
  "remindOn": "2026-11-24",
  "deal": {
    "key": "…",
    "label": "Proposal sent"
  },
  "dealAt": "2026-11-24T09:58:00.000Z",
  "notes": 12,
  "can": {
    "stop": true,
    "putBack": true,
    "writeAgain": true,
    "stage": true,
    "deal": true
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Stop Bibu for a person

`POST /people/{id}/stop` · MCP tool `stop_person` · Changes data · full access key · Idempotency-Key header optional

Bibu writes nothing more to them on its own (no campaign email, no answer); their replies still arrive. For a prospect of a launched campaign: before the launch there is nothing to stop (409, person.err.notLaunched). To take a prospect out of a campaign before its launch: exclude_person with how: campaign.

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/stop" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Let Bibu write to a person again

`POST /people/{id}/resume` · MCP tool `resume_person` · Changes data · full access key · Idempotency-Key header optional

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/resume" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Set instructions for one person

`PUT /people/{id}/instructions` · MCP tool `set_person_instructions` · Changes data · full access key · Idempotency-Key header optional

Bibu's AI follows them in its answers to this person and in their emails not written yet; "" removes them.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `text` (body, string, required): At most 2,000 characters.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/instructions" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Yes, happy to talk next week."
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Exclude a person

`POST /people/{id}/exclude` · MCP tool `exclude_person` · Changes data · full access key · Idempotency-Key header optional

Out of the campaign, their sequence stopped, and an exclusion added. how: everywhere (default), their address for every campaign: no campaign emails them again; campaign, their address for this campaign only; company, their company (its domain, else its name) for every campaign. It works at any time, before the launch too: with how: campaign it is how one prospect leaves a review (their company's other prospects stay, and the search doesn't bring them back). It needs no address: a prospect chosen without one yet is excluded by who they are.

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).
- `how` (body, string, optional): everywhere (default), campaign or company. One of: everywhere, campaign, company.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/exclude" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "how": "everywhere"
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### List deal statuses

`GET /deal-statuses` · MCP tool `list_deal_statuses` · Reads only · any key

The built-in ones (meeting_held, proposal, won, lost, unqualified), named in the request's language, then the company's own, each with how many prospects have it.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/deal-statuses" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "key": "…",
      "label": "Proposal sent",
      "custom": true,
      "people": 200
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Add a deal status of your own

`POST /deal-statuses` · MCP tool `add_deal_status` · Changes data · full access key · Idempotency-Key header optional

At most 40 characters and 20 statuses; one that reads the same as an existing one is that one.

Parameters:
- `label` (body, string, required): At most 40 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/deal-statuses" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "label": "Pilot running"
}'
```

Example answer (200):

```json
{
  "key": "…"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Remove a deal status of your own

`DELETE /deal-statuses/{key}` · MCP tool `remove_deal_status` · Changes data · full access key · Idempotency-Key header optional

The people who had it have none.

Parameters:
- `key` (path, string, required): At most 100 characters.

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/deal-statuses/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Set a person's deal status

`PUT /people/{id}/deal` · MCP tool `set_deal_status` · Changes data · full access key · Idempotency-Key header optional

Where the deal stands after the reply (a key of list_deal_statuses), or null to clear it. Bibu's stage stays as it is.

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).
- `deal` (body, string or null, required): At most 100 characters.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/deal" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "deal": "won"
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### List the team's notes on a person

`GET /people/{id}/notes` · MCP tool `list_notes` · Reads only · any key

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).

Example request:

```bash
curl "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/notes" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "text": "Yes, happy to talk next week.",
      "author": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "Thomas Durand"
      },
      "at": "2026-11-24T09:58:00.000Z"
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Add a team note on a person

`POST /people/{id}/notes` · MCP tool `add_note` · Changes data · full access key · Idempotency-Key header optional

Signed by the account that made the API key. At most 2,000 characters.

Parameters:
- `id` (path, string (uuid), required): The person in a campaign: the id that list_people, list_campaign_people and list_conversations give (their conversation has the same).
- `text` (body, string, required): At most 2,000 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/people/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/notes" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Called her: she wants a quote by Friday."
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "text": "Yes, happy to talk next week.",
  "author": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "Thomas Durand"
  },
  "at": "2026-11-24T09:58:00.000Z"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Delete a team note

`DELETE /notes/{id}` · MCP tool `delete_note` · Changes data · full access key · Idempotency-Key header optional

Only its author's: a note written by the account that made the key.

Parameters:
- `id` (path, string (uuid), required): The note's id.

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/notes/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### List hot leads

`GET /hot-leads` · MCP tool `list_hot_leads` · Reads only · any key

Replies that move the deal forward (interested or meeting), oldest reply first. Page with since=next until next is null.

Parameters:
- `since` (query, string, optional): ISO 8601, exclusive: those whose latest reply came after it.
- `limit` (query, integer, optional): 1 to 100 (default 50). From 1 to 100.

Example request:

```bash
curl "https://meetbibu.com/api/v1/hot-leads" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "stage": "new",
      "repliedAt": "2026-11-24T09:58:00.000Z",
      "lead": {
        "firstName": "Claire",
        "lastName": "Martin",
        "email": "claire@maisonlune.fr",
        "title": "Head of E-commerce",
        "company": "Maison Lune",
        "companyDomain": "maisonlune.fr",
        "linkedinUrl": "https://www.linkedin.com/in/claire-martin",
        "country": "France"
      },
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "reply": {
        "subject": "Re: An idea for Maison Lune",
        "body": "Yes, happy to talk next week."
      },
      "conversationUrl": "https://meetbibu.com/replies?tab=all&c=6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90"
    }
  ],
  "next": null
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Your own contact list

`GET /contacts` · MCP tool `get_contacts` · Reads only · any key

The people you imported: how many, how many no campaign wrote to yet (a campaign with fromList takes them first), and the last ones added.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/contacts" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "total": 42,
  "fresh": 12,
  "recent": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "email": "claire@maisonlune.fr",
      "name": "D2C brands",
      "company": "Maison Lune",
      "listedAt": "2026-11-24T09:58:00.000Z",
      "used": true
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Import your own leads

`POST /contacts` · MCP tool `import_contacts` · Changes data · full access key · Idempotency-Key header optional

Adds people to your contact list, as contacts or as CSV text (any tool's export, or one address per line), 10,000 at most. Done when it answers: how many were added, already known, invalid, duplicates, or over the limit. A campaign whose brief says fromList writes to them first, with the same exclusions and address check.

Parameters:
- `contacts` (body, array of object, optional): The people, one object each (email required). At most 10,000 items.
  - `contacts[].email` (body, string, required): At most 320 characters.
  - `contacts[].firstName` (body, string, optional): At most 100 characters.
  - `contacts[].lastName` (body, string, optional): At most 100 characters.
  - `contacts[].title` (body, string, optional): At most 200 characters.
  - `contacts[].company` (body, string, optional): At most 200 characters.
  - `contacts[].linkedinUrl` (body, string, optional): At most 500 characters.
- `csv` (body, string, optional): Or the file's text, when contacts isn't given. At most 5,000,000 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/contacts" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": [
    {
      "email": "claire@maisonlune.fr"
    }
  ],
  "csv": "email,first_name,company\nclaire@maisonlune.fr,Claire,Maison Lune"
}'
```

Example answer (200):

```json
{
  "added": 12,
  "alreadyKnown": 12,
  "invalid": 12,
  "duplicates": 12,
  "tooMany": 12
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 429 rate_limited, 500 server_error.

## Replies

Conversations: the inbox, what changed, a thread, answering, the stage, taking over, Bibu's drafts.

### List conversations

`GET /conversations` · MCP tool `list_conversations` · Reads only · any key

The inbox: people who replied, newest activity first, 30 a page. view needs_you: what waits for you (the app's “Needs you”); view scheduled: the answers Bibu sends itself soon. Filters: stage (or hot), campaign, deal status.

Parameters:
- `view` (query, string, optional): all (default), needs_you or scheduled. One of: all, needs_you, scheduled.
- `stage` (query, string, optional): For view all: a stage, hot (interested or meeting), or all. One of: all, hot, new, interested, meeting, booked, not_interested, out_of_office, wrong_person, later.
- `campaignId` (query, string (uuid), optional): A Bibu id (UUID).
- `deal` (query, string, optional): For view all: a deal status key, any, none or all. At most 100 characters.
- `page` (query, integer, optional): The page, from 1 (default 1). From 1 to 10,000.

Example request:

```bash
curl "https://meetbibu.com/api/v1/conversations" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "person": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "firstName": "Claire",
        "lastName": "Martin",
        "title": "Head of E-commerce",
        "company": "Maison Lune",
        "email": "claire@maisonlune.fr",
        "emailHidden": true
      },
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "stage": "new",
      "unread": true,
      "lastMessage": {
        "snippet": "…",
        "at": "2026-11-24T09:58:00.000Z",
        "direction": "out",
        "byBibu": true
      },
      "hasDraft": true,
      "scheduledAt": "2026-11-24T09:58:00.000Z",
      "reason": "meeting",
      "since": "…"
    }
  ],
  "total": 42
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Count conversations

`GET /conversations/counts` · MCP tool `get_inbox_counts` · Reads only · any key

Unread conversations, conversations per stage (and hot), per deal status, and the answers Bibu sends itself soon.

Parameters:
- `campaignId` (query, string (uuid), optional): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/conversations/counts" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "unread": 12,
  "byStage": {},
  "scheduled": 12,
  "byDeal": {}
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### What changed in the inbox

`GET /conversations/changes` · MCP tool `list_inbox_changes` · Reads only · any key

Every message Bibu recorded after a point, oldest first: the emails sent, the replies, the answers (Bibu's and yours), auto-replies and bounces. Start with since (an ISO date), then pass the last item's cursor as after. Poll it, or take webhooks.

Parameters:
- `since` (query, string (date-time), optional): ISO 8601: what Bibu recorded after it.
- `after` (query, string, optional): A cursor from a previous answer (wins over since). At most 200 characters.
- `direction` (query, string, optional): in: what people sent; out: what went to them. One of: in, out.
- `campaignId` (query, string (uuid), optional): A Bibu id (UUID).
- `limit` (query, integer, optional): 1 to 200 (default 100). From 1 to 200.

Example request:

```bash
curl "https://meetbibu.com/api/v1/conversations/changes" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "cursor": null,
      "conversationId": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
      "campaign": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "name": "D2C brands"
      },
      "person": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "firstName": "Claire",
        "lastName": "Martin",
        "title": "Head of E-commerce",
        "company": "Maison Lune",
        "email": "claire@maisonlune.fr",
        "emailHidden": true
      },
      "stage": "new",
      "message": {
        "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
        "direction": "out",
        "kind": "sent",
        "by": "ai",
        "from": "…",
        "subject": "Re: An idea for Maison Lune",
        "body": "Yes, happy to talk next week.",
        "at": "2026-11-24T09:58:00.000Z",
        "recordedAt": "2026-11-24T09:58:00.000Z"
      }
    }
  ],
  "next": null
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Read a conversation

`GET /conversations/{id}` · MCP tool `get_conversation` · Reads only · any key

The whole thread, Bibu's draft, who answers now, and Bibu's question if one waits. Reading it through the API doesn't mark it read.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "person": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "firstName": "Claire",
    "lastName": "Martin",
    "title": "Head of E-commerce",
    "company": "Maison Lune",
    "email": "claire@maisonlune.fr",
    "emailHidden": true
  },
  "campaign": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "name": "D2C brands"
  },
  "stage": "new",
  "unread": true,
  "lastMessage": {
    "snippet": "…",
    "at": "2026-11-24T09:58:00.000Z",
    "direction": "out",
    "byBibu": true
  },
  "hasDraft": true,
  "scheduledAt": "2026-11-24T09:58:00.000Z",
  "thread": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "direction": "out",
      "kind": "sent",
      "from": "…",
      "subject": "Re: An idea for Maison Lune",
      "body": "Yes, happy to talk next week.",
      "at": "2026-11-24T09:58:00.000Z",
      "by": "ai",
      "original": true,
      "cc": [
        "…"
      ]
    }
  ],
  "draft": "…",
  "remindOn": "2026-11-24",
  "stageBy": "ai",
  "holder": {
    "by": "bibu",
    "until": "…",
    "bibuMay": true
  },
  "question": {
    "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
    "text": "Yes, happy to talk next week."
  },
  "cc": [
    "…"
  ],
  "from": "…"
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Answer in a conversation

`POST /conversations/{id}/reply` · MCP tool `send_reply` · Sends an email · full access key · Idempotency-Key header required

Sends your answer to the prospect from the mailbox that wrote to them, in the same thread, like the inbox's Send: Bibu's draft goes, the conversation leaves “Needs you”, and Bibu waits 3 hours of your silence before answering there again. Plain text, up to 20,000 characters. Only after a campaign email went to them or they wrote. It is an email sent (2 credits); Bibu's draft sent as it is is also an answer written (50 credits). To someone who never replied it is a follow-up, refused when the balance can't pay it. On a campaign made before the credits: to someone who never replied, a follow-up's price (€0.02), refused at a €0 balance or past the day's budget; an answer to someone who replied is free.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.
- `body` (body, string, required): Your answer, plain text. At most 20,000 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/reply" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "body": "Tuesday at 10:00 works for us: I'\''ll send you an invite."
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 402 payment_required, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Set a conversation's stage

`PUT /conversations/{id}/stage` · MCP tool `set_conversation_stage` · Changes data · full access key · Idempotency-Key header optional

Your choice wins over Bibu's sorting, and the conversation becomes yours. later needs remindOn (YYYY-MM-DD): Bibu writes again that day. not_interested: never emailed again.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.
- `stage` (body, string, required): How the person replied, as Bibu sorted it (or the user chose): new, interested, meeting (asked for one), booked (a meeting booked on the booking page: set by the booking), not_interested, out_of_office, wrong_person, later. A hot lead is interested, meeting or booked. One of: new, interested, meeting, booked, not_interested, out_of_office, wrong_person, later.
- `remindOn` (body, string, optional): A day: YYYY-MM-DD.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/stage" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "stage": "new"
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Take over a conversation

`POST /conversations/{id}/take-over` · MCP tool `take_over_conversation` · Changes data · full access key · Idempotency-Key header optional

The conversation is yours: Bibu writes nothing there on its own (a scheduled answer stays as your draft).

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/take-over" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Let Bibu carry on

`POST /conversations/{id}/carry-on` · MCP tool `let_bibu_carry_on` · Sends an email · full access key · Idempotency-Key header required

Bibu holds the conversation again, and answers at once a reply that waits (when the campaign lets it answer on its own). On a campaign paid in credits, Bibu's answer is an answer written and an email sent (52 credits).

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/carry-on" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Mark as handled

`POST /conversations/{id}/handled` · MCP tool `mark_conversation_handled` · Changes data · full access key · Idempotency-Key header optional

“Nothing to do”: out of “Needs you” without an answer; the stage stays.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/handled" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Change Bibu's draft

`PUT /conversations/{id}/draft` · MCP tool `update_draft` · Changes data · full access key · Idempotency-Key header optional

A scheduled draft still goes out at its time, as changed.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.
- `body` (body, string, required): At most 20,000 characters.

Example request:

```bash
curl -X PUT "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/draft" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Yes, happy to talk next week."
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 422 unprocessable, 429 rate_limited, 500 server_error.

### Don't send Bibu's draft

`DELETE /conversations/{id}/draft` · MCP tool `discard_draft` · Changes data · full access key · Idempotency-Key header optional

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/draft" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Ask Bibu for a new draft

`POST /conversations/{id}/redraft` · MCP tool `redraft_answer` · Changes data · full access key · Idempotency-Key header optional

Bibu's AI writes the answer again (it replaces the draft); a scheduled one stays scheduled at the same time.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/redraft" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Stop an answer Bibu would send itself

`POST /conversations/{id}/stop-scheduled` · MCP tool `stop_scheduled_answer` · Changes data · full access key · Idempotency-Key header optional

Bibu won't send it: it stays as your draft and the conversation waits for you.

Parameters:
- `id` (path, string (uuid), required): The conversation (the person in a campaign): the id that list_conversations and list_people give.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/conversations/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/stop-scheduled" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 409 conflict, 429 rate_limited, 500 server_error.

### Answer Bibu's question

`POST /questions/{id}/answer` · MCP tool `answer_bibu_question` · Sends an email · full access key · Idempotency-Key header required

Bibu asked you something it needs to answer a prospect (the conversation's question): your answer is kept as a fact, and Bibu answers the prospect with it. On a campaign paid in credits, Bibu's answer is an answer written and an email sent (52 credits).

Parameters:
- `id` (path, string (uuid), required): The question's id.
- `answer` (body, string, required): At most 1,000 characters.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/questions/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/answer" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "answer": "Yes, happy to talk next week."
}'
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 422 unprocessable, 429 rate_limited, 500 server_error.

### Download a received email as it arrived

`GET /messages/{id}/original` · MCP tool `get_message_original` · Reads only · any key

The .eml file (when the thread message says original: true): headers, DKIM signature and attachments included. Base64 in JSON; with Accept: message/rfc822, the file itself.

Parameters:
- `id` (path, string (uuid), required): The message's id (a thread message).

Example request:

```bash
curl "https://meetbibu.com/api/v1/messages/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/original" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "name": "D2C brands",
  "contentType": "…",
  "base64": "…"
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

## Exclusions

Who no campaign ever emails: addresses, domains, companies.

### List exclusions

`GET /exclusions` · MCP tool `list_exclusions` · Reads only · any key

Who your campaigns never email: addresses, domains and companies you added, for every campaign or for one (campaignId), people who unsubscribed (or said no) and addresses that bounced (always every campaign). Newest first, 50 a page.

Parameters:
- `q` (query, string, optional): Part of the value. At most 200 characters.
- `page` (query, integer, optional): The page, from 1 (default 1). From 1 to 10,000.
- `campaignId` (query, string (uuid), optional): Only this campaign's own exclusions (those for every campaign apply to it too).
- `scope` (query, string, optional): all (default): every exclusion; company: only those for every campaign. Ignored with campaignId. One of: all, company.

Example request:

```bash
curl "https://meetbibu.com/api/v1/exclusions" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "email",
      "value": "maisonlune.fr",
      "hidden": true,
      "reason": "manual",
      "createdAt": "2026-11-24T09:58:00.000Z",
      "campaignId": "6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90"
    }
  ],
  "total": 42
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Add exclusions

`POST /exclusions` · MCP tool `add_exclusions` · Changes data · full access key · Idempotency-Key header optional

Each entry an email address, a domain (with or without @) or a company name. Applied at once to every campaign, or to one (campaignId): the people they match leave it, those already written to get no other email. The other campaigns stay as they are. No campaign is prepared again or paused.

Parameters:
- `entries` (body, array of string, required): At most 10,000 items.
- `campaignId` (body, string (uuid), optional): For this campaign only; without it, for every campaign.

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/exclusions" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "entries": [
    "competitor.com",
    "jane@rival.io",
    "Acme Corp"
  ]
}'
```

Example answer (200):

```json
{
  "added": 12,
  "removed": {
    "people": 200,
    "campaigns": 12,
    "stopped": 12
  }
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Remove an exclusion

`DELETE /exclusions/{id}` · MCP tool `remove_exclusion` · Changes data · full access key · Idempotency-Key header optional

The people it took out of a campaign don't come back into it; a new campaign may find them again.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/exclusions/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

## Webhook endpoints

Where Bibu posts each hot lead or reply, signed.

### List webhooks

`GET /webhooks` · MCP tool `list_webhooks` · Reads only · any key

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/webhooks" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "url": "hooks.example.com/…",
      "events": "hot",
      "enabled": true,
      "createdAt": "2026-11-24T09:58:00.000Z",
      "last": {
        "at": "2026-11-24T09:58:00.000Z",
        "ok": true,
        "status": 200,
        "error": "…"
      },
      "failing": 12
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Add a webhook

`POST /webhooks` · MCP tool `add_webhook` · Changes data · full access key · Idempotency-Key header optional

An https URL that gets every hot lead (events hot) or every reply (events replies), as signed JSON POSTs (see the webhooks section). The answer holds its signing secret: also shown in API & MCP › Webhook.

Parameters:
- `url` (body, string, required): At most 2,000 characters.
- `events` (body, string, optional): One of: hot, replies. Default: "hot".

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/webhooks" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://hooks.example.com/bibu"
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "url": "hooks.example.com/…",
  "events": "hot",
  "enabled": true,
  "createdAt": "2026-11-24T09:58:00.000Z",
  "last": {
    "at": "2026-11-24T09:58:00.000Z",
    "ok": true,
    "status": 200,
    "error": "…"
  },
  "failing": 12,
  "secret": "whsec_…"
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 422 unprocessable, 429 rate_limited, 500 server_error.

### Get a webhook and its deliveries

`GET /webhooks/{id}` · MCP tool `get_webhook` · Reads only · any key

With its last 50 deliveries, newest first, and why each failed.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl "https://meetbibu.com/api/v1/webhooks/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "url": "hooks.example.com/…",
  "events": "hot",
  "enabled": true,
  "createdAt": "2026-11-24T09:58:00.000Z",
  "last": {
    "at": "2026-11-24T09:58:00.000Z",
    "ok": true,
    "status": 200,
    "error": "…"
  },
  "failing": 12,
  "deliveries": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "event": "lead.hot",
      "status": "pending",
      "attempts": 12,
      "nextAt": "2026-11-24T09:58:00.000Z",
      "lastStatus": 200,
      "lastError": "…",
      "lastDetail": "…",
      "who": "…",
      "createdAt": "2026-11-24T09:58:00.000Z",
      "updatedAt": "2026-11-24T09:58:00.000Z"
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 404 not_found, 429 rate_limited, 500 server_error.

### Turn a webhook on or off

`PATCH /webhooks/{id}` · MCP tool `update_webhook` · Changes data · full access key · Idempotency-Key header optional

Off, it gets nothing (what waited for it is dropped); on again, it catches up on the hot leads of the last 7 days it never got.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).
- `enabled` (body, boolean, required)

Example request:

```bash
curl -X PATCH "https://meetbibu.com/api/v1/webhooks/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'
```

Example answer (200):

```json
{
  "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
  "url": "hooks.example.com/…",
  "events": "hot",
  "enabled": true,
  "createdAt": "2026-11-24T09:58:00.000Z",
  "last": {
    "at": "2026-11-24T09:58:00.000Z",
    "ok": true,
    "status": 200,
    "error": "…"
  },
  "failing": 12
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Delete a webhook

`DELETE /webhooks/{id}` · MCP tool `delete_webhook` · Changes data · full access key · Idempotency-Key header optional

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X DELETE "https://meetbibu.com/api/v1/webhooks/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

### Send a test to a webhook

`POST /webhooks/{id}/test` · MCP tool `test_webhook` · Changes data · full access key · Idempotency-Key header optional

A made-up hot lead (type test), sent at once, signed like the real ones; the answer says how its URL answered. sent: false when nothing left Bibu (reason playground: a copy of Bibu where every outside service is simulated, such as a test machine): then status is null and ok only says the test was recorded.

Parameters:
- `id` (path, string (uuid), required): A Bibu id (UUID).

Example request:

```bash
curl -X POST "https://meetbibu.com/api/v1/webhooks/6f0c2a1e-4b7d-4c1a-9e3f-2d8b5a7c1e90/test" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "ok": true,
  "status": 200,
  "error": null,
  "detail": null,
  "sent": true,
  "reason": null
}
```

Errors: 400 bad_request, 401 unauthorized, 403 forbidden, 404 not_found, 429 rate_limited, 500 server_error.

## Billing

Each action paid in credits (in credits (1 credit = €0.001): the campaign's research 500, each person found 5 (100 from the extended database), their email found 30, each email sent 2 (follow-ups too); with the writing option, 8 more for each email Bibu wrote; get_prices gives every price): every price, the balance, the card, spending by day, campaign and action, the credits' activity.

### Balance, card and budget

`GET /billing` · MCP tool `get_billing` · Reads only · any key

Each action is paid in credits from a prepaid balance (in credits (1 credit = €0.001): the campaign's research 500, each person found 5 (100 from the extended database), their email found 30, each email sent 2 (follow-ups too); with the writing option, 8 more for each email Bibu wrote; get_prices gives every price; a campaign made before the credits keeps its price per email to its end). At 0 nothing more goes out until the user buys credits in Billing (from €20, never expiring), by a click or by the automatic top-up they turned on; a key never buys any. It answers the balance (in cents and in credits), what is below 0 (an own domain's month the card did not pay, or emails sent under the batches before 26 November 2026, which the next top-up covers first), the card on file, the automatic top-up (off unless the user turned it on), today's spend against the daily budget, and the card's charges (credits bought, mailboxes and domains).

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/billing" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "free": true,
  "card": {
    "brand": "…",
    "last4": "…",
    "expMonth": 12,
    "expYear": 12
  },
  "balanceCents": 1240,
  "balanceCredits": 20000,
  "owedCents": 1240,
  "owedCredits": 12400,
  "autoTopUp": {
    "on": true,
    "amountCents": 1240,
    "belowCents": 1240
  },
  "dailyBudgetCents": 1240,
  "spentTodayCents": 1240,
  "emailsToday": 12,
  "block": "budget",
  "billingUrl": "https://maisonlune.fr",
  "charges": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "top_up",
      "amountCents": 1240,
      "credits": 12400,
      "status": "…",
      "invoiceUrl": "https://maisonlune.fr",
      "createdAt": "2026-11-24T09:58:00.000Z"
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Spending by day and campaign

`GET /billing/spending` · MCP tool `get_spending` · Reads only · any key

What the account spent each day of the last `days` (UTC days, today included), and what each campaign came to over them. In credits, everything: emails sent and every action (credits, and actions: each action's units and credits). In cents, as before: the emails of campaigns paid per email (amountCents).

Parameters:
- `days` (query, integer, optional): 1 to 366 (default 30). From 1 to 366.

Example request:

```bash
curl "https://meetbibu.com/api/v1/billing/spending" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "from": "…",
  "to": "…",
  "emails": 12,
  "amountCents": 1240,
  "credits": 4100,
  "days": [
    {
      "date": "2026-11-24T09:58:00.000Z",
      "emails": 12,
      "amountCents": 1240,
      "credits": 12400
    }
  ],
  "campaigns": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "name": "D2C brands",
      "emails": 12,
      "priceCents": 1240,
      "amountCents": 1240,
      "credits": 12400
    }
  ],
  "otherCents": 1240,
  "actions": [
    {
      "action": "research",
      "units": 12,
      "credits": 12400
    }
  ]
}
```

Errors: 400 bad_request, 401 unauthorized, 429 rate_limited, 500 server_error.

### Credits activity

`GET /billing/credits` · MCP tool `list_credits` · Reads only · any key

Every amount Bibu gave or took on the balance, newest first, in cents and in credits: adjustments, own domains' months (mailboxes, negative), what a payment refunded or disputed took back (reversal, negative). Kinds kept from before the credits: free, referral, plan and plan_expired. Credits bought are card charges: get_billing.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/billing/credits" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "data": [
    {
      "id": "a3f1c2d4-8e9b-4f0a-b1c2-d3e4f5a6b7c8",
      "kind": "free",
      "amountCents": 1240,
      "credits": 12400,
      "label": "…",
      "createdAt": "2026-11-24T09:58:00.000Z"
    }
  ]
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.

### Every price

`GET /billing/prices` · MCP tool `get_prices` · Reads only · any key

What Bibu charges. Each action in credits (1 credit = €0.001): research (a campaign's, once), person_listed (a person listed before the launch: list_all_people), person_found, person_extended (a person from the extended database), email_found (only when found), event_person (a person on a recent event), news_person (a person on a fundraise or an acquisition), email_written (the writing option), email_translated, email_sent (follow-ups too), reply_sorted, answer_written (an answer Bibu wrote), ai_button, deliverability_test. Credits are bought in Billing from €20, any amount above, at the same rate, and never expire. Domains and mailboxes are paid on the card in euros, never from the credits (mailboxes, in cents, per year or month); your own mailbox connects free. Counting a search (count_buyer_group) is free. A campaign made before the credits keeps its price per email to its end. Sending from Bibu's own mailboxes: coming soon.

No parameters.

Example request:

```bash
curl "https://meetbibu.com/api/v1/billing/prices" \
  -H "Authorization: Bearer $BIBU_API_KEY"
```

Example answer (200):

```json
{
  "currency": "EUR",
  "credit": {
    "euros": 12.4,
    "perEuro": 12
  },
  "actions": [
    {
      "action": "research",
      "credits": 12400,
      "euros": 12.4,
      "per": "campaign"
    }
  ],
  "packs": {
    "minCents": 1240,
    "minCredits": 12400,
    "perEuro": 12,
    "expires": true,
    "discount": 12
  },
  "mailboxes": {
    "domainCom": {
      "priceCents": 1240,
      "per": "year"
    },
    "newMailbox": {
      "priceCents": 1240,
      "per": "year"
    },
    "prewarmedFirst": {
      "priceCents": 1240,
      "per": "year"
    },
    "prewarmedMonth": {
      "priceCents": 1240,
      "per": "year"
    },
    "ownMailbox": {
      "priceCents": 1240,
      "per": "year"
    }
  },
  "poolSending": "coming_soon"
}
```

Errors: 401 unauthorized, 429 rate_limited, 500 server_error.
