bymundi API

Idempotency and retries

Make writes safe to retry with Idempotency-Key.

Networks fail after a request arrives and before its answer does. To retry a write without doing it twice, send an Idempotency-Key header with a value unique to that request — a UUID:

curl -X POST https://api.bymundi.com/v1/trips \
  -H "Authorization: Bearer $BYMUNDI_KEY" \
  -H "Idempotency-Key: 2f1c6c1e-3b1a-4c1e-9d3f-5a7e0b9c2d11" \
  -H "Content-Type: application/json" \
  -d '{"title":"Kyoto in spring"}'

Rules

A retry loop

Retry on network errors, 429, 500 and 503, with exponential backoff (1 s, 2 s, 4 s…) and the same Idempotency-Key. On 429, wait at least Retry-After seconds. Do not retry other 4xx answers: they will not change.

Over MCP, tools that are safe to repeat say so with idempotentHint.