BibuDocs
frFrançaisenEnglish
Get started
Menu

Guides

Start in 2 minutesAuthentication and scopesIdempotency and quotesErrorsEvents and webhooksChangelog

Reference

Account7People7Signals7Emails3Mailboxes and domains5Campaigns and sending12Replies and events8Webhooks4

For agents

OpenAPIllms.txt

frFrançaisenEnglish
Get started

Guides

Start in 2 minutesAuthentication and scopesIdempotency and quotesErrorsEvents and webhooksChangelog

Reference

Account7People7Signals7Emails3Mailboxes and domains5Campaigns and sending12Replies and events8Webhooks4

For agents

OpenAPIllms.txt

Idempotency and quotes

With an idempotency key, a retried call is never done twice. With a quote, you know first what a call takes or costs.

The Idempotency-Key header

Send a new UUID for each new action. Whether it is required depends on the operation’s effect:

EffectKeyIdempotency-KeyQuote
EffectReadKeyAny keyIdempotency-KeynoQuoteno
EffectWriteKeyFull access keyIdempotency-KeyoptionalQuoteno
EffectUses the planKeyFull access keyIdempotency-KeyrequiredQuoteyes
EffectCharges the cardKeyFull access keyIdempotency-KeyrequiredQuoteyes
EffectSends emailKeyFull access keyIdempotency-KeyrequiredQuoteno
EffectSends data outKeyFull access keyIdempotency-KeyoptionalQuoteno
EffectRemovesKeyFull access keyIdempotency-KeyoptionalQuoteno
  • For 24 hours, the same key gets the first answer again, with Idempotent-Replayed: true. An error too, except a 500.
  • The same key with another request: 422 idempotency_mismatch.
  • While the first call still runs: 409 idempotency_in_progress. Wait a few seconds, then retry with the same key.
  • Through the MCP, the tools that require the key take the idempotency_key argument. Without it, Bibu makes a key for that call only, so a retry is not protected.

Quotes

An operation that uses the plan’s month (uses_plan) or charges the card (spends_money) takes quote_only: true: Bibu does nothing and answers quote. For uses_plan, what the call would take from the month:

200 · JSON
{
  "quote": {
    "count": "people",
    "units": 25,
    "used": 120,
    "limit": 1350,
    "left": 1230,
    "left_after": 1205,
    "enough": true,
    "resets_at": "2026-12-01T09:00:00Z"
  }
}

enough says whether what is left covers it; when false, the call would answer 402. The quote of change_plan (next: what waits for the next period):

change_plan · 200 · JSON
{
  "quote": {
    "starts": true,
    "plan": {
      "domains": 2,
      "period": "month",
      "people": true,
      "contacts": true,
      "signals": true,
      "cold_signals": true
    },
    "next": {
      "domains": 2,
      "period": "month",
      "people": true,
      "contacts": true,
      "signals": true,
      "cold_signals": true
    },
    "lines": [
      {
        "what": "addresses",
        "domains": 2,
        "period": "month",
        "from": "claire@maisonlune.fr",
        "to": "claire@maisonlune.fr",
        "cents": 8400,
        "people": 12,
        "contacts": 1350,
        "signals": 1350,
        "cold_signals": 12
      }
    ],
    "total_cents": 8400,
    "credit_cents": 0,
    "charged_now_cents": 8400,
    "next_charge": {
      "at": "2026-12-01T09:00:00Z",
      "cents": 15150
    }
  }
}

A quote, then the change

curl
curl -X POST "https://meetbibu.com/api/v2/plan" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domains": 2, "period": "month", "contacts": true, "quote_only": true }'
curl
curl -X POST "https://meetbibu.com/api/v2/plan" \
  -H "Authorization: Bearer $BIBU_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "domains": 2, "period": "month", "contacts": true }'

What is taken

An answer that uses the month gives counted (what it took) and left (what is left). When the plan doesn’t allow it, Bibu does nothing and answers 402: no plan, an unpaid plan, no option, or the month’s count used. key says which.

The person chooses the plan on meetbibu.com, or your agent with change_plan (full access, on the saved card). get_prices gives the prices, get_plan what the month used and has left, list_invoices every payment.