> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pace API requests and polling

> Use Nixflex rate-limit headers to pace reads and polling. Keep HTTP request quotas separate from call concurrency, balance and knowledge limits.

**FIXED · account** Inbound and outbound share the account/API-key concurrency budget. Read max\_concurrent for the effective limit.

**NOT OFFERED → do this instead · number** No per-number concurrency reservation exists. Queue or pace each business within the shared account call budget.

**YOU CAN CHANGE · account** Pace submissions. Accepted work may wait for capacity.

**SCOPE · operation** Check the code and details to distinguish refusal, acceptance and unknown outcome before retrying.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#limits-errors)

Use response headers and a bounded polling policy to stay within the account’s current API request allowance.

HTTP quota: **Read headers** · Polling: **Bounded duration** · Call capacity: **Separate limit**

**The important part**

* **Call capacity is shared.** `max_concurrent` applies across the account’s numbers. A number cannot reserve slots. Pace outbound work per customer in your app when several customers share the account.

* Honour Retry-After for a safe read and stop at an application deadline.

* HTTP request quotas, call capacity and feature limits are different.

* A throttle does not grant permission to repeat an uncertain write.

[Business guide](https://docs.nixflex.com/guides/business/billing.md) · [API reference](https://docs.nixflex.com/api-reference/introduction.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Read the current allowance

Use the allowance returned for the authenticated account key. Do not hard-code a requests-per-minute figure from another account.

| Header | What the application should do |
| - | - |
| `RateLimit-Limit` | Record the current HTTP request allowance. |
| `RateLimit-Remaining` | Reduce or share polling as the remaining allowance falls. |
| `Retry-After` | On a throttled safe read, wait at least this many seconds. |

An authenticated request above its allowance returns 429 `rate_limit_exceeded`. Its details include `limit` and `retry_after_seconds`. Invalid credentials can be refused before these headers are added; missing headers are not evidence of an unlimited allowance.

## Bound a read-retry policy

Choose a maximum elapsed time and attempt count for the task. For example, an interactive usage read might allow three attempts within 30 seconds; these are application choices, not server limits.

1. Set a timeout on each read, limited by the remaining overall budget.
2. On a retryable read failure, use the returned wait guidance. Add a small random delay so workers do not all retry together.
3. If the required wait would exceed the remaining budget, stop and report that the read is unavailable. Do not shorten `Retry-After` to fit another attempt.
4. On success, validate the response and preserve null or unavailable fields. A malformed response is not an empty successful result.
5. Stop on authentication, permission or unchanged validation errors. Correct their cause before another request.

Cache stable catalogue results, share polling work between clients and stop polling terminal jobs. Keep each job's saved ID so a user can resume later instead of creating replacement work. The [Node read example](https://docs.nixflex.com/sdks/node.md) and [direct HTTP example](https://docs.nixflex.com/sdks/other-languages.md) show bounded individual requests.

## Keep business limits separate

| Limit | What it controls |
| - | - |
| API request allowance | HTTP requests for the authenticated key |
| `max_concurrent` | Organisation concurrent calls; not calls started per second |
| Balance and feature allowances | Whether the requested work can be admitted |
| Knowledge limits | Resource counts, job capacity and training allowances |

More HTTP capacity does not remove the other limits. Account signup has a separate limit and is not a connectivity test.

## Reconcile writes before another attempt

A throttle is not general permission to repeat a write. Preserve the original call UUID, Knowledge operation key or returned resource identity. A write may already have succeeded before a network response was lost; waiting does not make a replacement safe.

| Result | Next step |
| - | - |
| 429 on a safe read | Honour the wait and the application deadline. |
| Transient read failure without wait guidance | Use bounded backoff and retain an unavailable state when the budget expires. |
| Write result unknown | Reconcile the same operation before another deliberate action. |
| Call capacity reached | Wait for admitted work to resolve; do not increase HTTP polling to create capacity. |

* [Read the rate-limit headers](https://docs.nixflex.com/api-reference/rate-limits.md)
* [Handle API errors](https://docs.nixflex.com/guides/developer/errors.md)
* [Preserve operation identities](https://docs.nixflex.com/guides/developer/idempotency.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.