Rate limits
The limit
You may send 600 requests a minute to /api/external, counted over a sliding minute per partner: all your tokens and all your clubs share it. A request with a refused token does not count.
Over the limit
Over the limit, a request is answered 429 with code rate_limited and a Retry-After header in seconds. Wait that long, then retry. Retrying a create with the same Idempotency-Key is safe.
Staying under it
- Use
availability/daysfor a calendar, and ask a day's slots only for the day a player opens. - Do not poll bookings for changes: Milo sends webhooks when a club cancels or moves one.
- Spread scheduled jobs over the minute.
Need more? Mail hallo@bookwithmilo.com.