Handle Inbound API rate limits

Read the retry signals in an HTTP 429 response and resume an interrupted read without restarting the whole job.

HTTP 429 means a request exceeded a rate limit. Pause requests from the affected job before making another call. When several workers share a connection or key, coordinate the pause so they do not all retry at once.

Read the retry signals

Capture the status, response headers, and error body from the failed request. For a read-only check, use --include to see the headers alongside the body. Use the base URL from API Access and load the API key from your secret manager.

curl --silent --show-error --fail-with-body --include \
  "${NIXA_API_BASE_URL}/entities" \
  -H "X-API-Key: ${NIXA_API_KEY}"

If a response is already available, inspect it before sending another request. For a 429 response, check the following signals when present.

  • Retry-After header. The Mainbase rate limiter sends a delay in seconds. Wait at least that long before retrying.
  • error.details.retryAfter. The public API rate-limit body can include the reset timestamp. If the header is unavailable, use this timestamp to determine when to try again.
  • RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset. These describe the counter reported in that response. The reset header is a delay in seconds. The public API can enforce more than one limit, so these headers alone do not describe every limit that can apply.

Resume the interrupted read

  1. For a GET, retry the same request after the delay. If no retry signal is usable, wait and use progressively longer pauses with a small random delay between attempts. Limit the number of retries.
  2. For a paginated record read, resume the failed page with the original filter and sort. Advance only after you have processed that page successfully.
  3. If you continue to receive 429, slow the job down and reduce how many requests it sends at once. If you report the problem, include the response time, the HTTP status, and the error.requestId if present. Keep the API key out of logs and support messages.

For a write whose result is unclear, check whether it saved before retrying.

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?