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:
| Effect | Key | Idempotency-Key | Quote |
|---|---|---|---|
| EffectRead | KeyAny key | Idempotency-Keyno | Quoteno |
| EffectWrite | KeyFull access key | Idempotency-Keyoptional | Quoteno |
| EffectUses the plan | KeyFull access key | Idempotency-Keyrequired | Quoteyes |
| EffectCharges the card | KeyFull access key | Idempotency-Keyrequired | Quoteyes |
| EffectSends email | KeyFull access key | Idempotency-Keyrequired | Quoteno |
| EffectSends data out | KeyFull access key | Idempotency-Keyoptional | Quoteno |
| EffectRemoves | KeyFull access key | Idempotency-Keyoptional | Quoteno |
- 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:
422idempotency_mismatch. - While the first call still runs:
409idempotency_in_progress. Wait a few seconds, then retry with the same key. - Through the MCP, the tools that require the key take the
idempotency_keyargument. 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:
{
"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):
{
"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 -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 -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.