How do CRM APIs page their results for the caller?
No CRM returns a big object in one response, and CRM API rate limits make that rule firm. In fact, you get a page, and you ask for the next one. In fact, the way you ask differs from provider to provider. Also, the style decides which bugs you can have.
Each rule is written down before it is used.
People new to the cursor pagination should start with the guides.
Questions about the CRM API rate limits are welcome in the contact form. Also, readers often return to the token bucket limiter when plans change.
Readers often return to the CRM API rate limits when plans change. Thus, people new to the cursor pagination should start with the guides. Indeed, share what you learn about the retry after header with your whole team.
Every claim about the exponential backoff is checked against the code. Our team writes about the exponential backoff in plain words. Notes on the token bucket limiter are dated and reviewed by a second person.
Every claim about the daily API limits is checked against the code.
Offset and limit: You send a start position and a count. Indeed, it is simple, but it drifts. If a record is added or removed while you read, later pages shift and rows repeat or vanish.
Page number: You send page 1, then page 2. Also, it has the same drift problem. Also, some providers cap how deep you can go.
Cursor: The response includes an opaque token for the next page. Cursors resist drift, because the provider tracks the position. Besides, treat the token as a black box and never build one yourself.
Next link: The response carries a full URL for the next page. Also, you follow it until it is absent.
Check every style against two risks. Likewise, does a missing next marker mean the end, or an error that hid the marker? And can a page come back empty while further pages follow? In addition, a safe client records each page it reads, so a gap shows later.
How should you read CRM API rate limits for a provider?
CRM API rate limits come in several shapes. Also, a provider may cap requests per second, per minute or per day. Thus, some cap concurrent calls today.
Each count is checked against the source.
Others charge a cost per query. Therefore, one heavy call spends extra budget compared with ten light ones.
Each page on the token bucket limiter is reviewed before it is published.
Each page on the CRM API rate limits is reviewed before it is published. Each page on the retry after header is reviewed before it is published.
Questions about the CRM API rate limits are welcome in the contact form. Notably, short answers on the cursor pagination are kept up to date. In fact, people new to the retry after header should start with the guides.
Share what you learn about the exponential backoff with your whole team. Indeed, every claim about the token bucket limiter is checked against the code. Readers often return to the daily API limits when plans change.
Limits also differ by context. They can depend on the plan of the customer, on the app you registered or on the endpoint you call. Also, do not copy a number from a blog post into code.
When you cross one of the CRM API rate limits, a well-behaved API answers 429 Too Many Requests. Thus, it may add a Retry-After header, which gives seconds to wait or a date. Indeed, some APIs send other codes or put the error in the body of a 200 response. Test the real behavior in a sandbox.
Keep two budgets in mind when you read CRM API rate limits. Indeed, a short burst limit protects the provider from spikes. Besides, a daily limit protects it from steady heavy use. Besides, a sync can pass the first and still hit the second halfway through a large account.
How do pacing, backoff and the token bucket fit together?
There are two ways to live under CRM API rate limits. Also, you can send fast and react to 429 errors. Or you can pace requests so you rarely see one. Pacing is kinder to everyone, including the customer's own CRM users.
Each step is recorded with its date. Also, every claim is tied to a line of code.
Our team writes about the CRM API rate limits in plain words.
A short checklist keeps the CRM API rate limits under control. Questions about the exponential backoff are welcome in the contact form.
A second look at the CRM API rate limits pays off. Likewise, notes on the cursor pagination are dated and reviewed by a second person. Likewise, each page on the retry after header is reviewed before it is published.
Questions about the exponential backoff are welcome in the contact form. Also, readers often return to the token bucket limiter when plans change. Short answers on the daily API limits are kept up to date.
Why is the retry after header read just one time?
The transport reads the header once and caps the wait at 60 seconds.
All of these facts are kept in one place.
Share what you learn about the CRM API rate limits with your whole team.
A short checklist keeps the retry after header under control.
Share what you learn about the cursor pagination with your whole team. Share what you learn about the daily API limits with your whole team.
A short checklist keeps the CRM API rate limits under control. In addition, our team writes about the cursor pagination in plain words. Moreover, notes on the retry after header are dated and reviewed by a second person.
Each page on the exponential backoff is reviewed before it is published. In fact, questions about the token bucket limiter are welcome in the contact form. Overall, people new to the token bucket limiter should start with the guides.
Each page on the daily API limits is reviewed before it is published.
A token bucket is the usual pacing tool. Also, the bucket holds a few tokens and refills at a steady rate. Moreover, each request takes one token.
When the bucket is empty, the caller waits until a token appears. Notably, the refill rate sets the sustained speed. Also, the bucket size sets the allowed burst.
Backoff handles what pacing misses. After a 429 or a server error, wait before you try again, and wait longer after each failure. In fact, many clients add random jitter to avoid retry storms. Cap the number of attempts and the length of any single wait.
Retries have a safety rule too. Repeating a read is safe. Repeating a write can create a duplicate unless the call is idempotent. Indeed, so treat reads and writes differently when a server error comes back.
What does the DaletPipe transport do about such API limits?
The DaletPipe HTTP transport wraps every connector call. Besides, it makes up to three attempts. Indeed, the waits between attempts follow a fixed schedule of 0.5 s, 1 s and 2 s. The schedule has no random jitter, which keeps runs repeatable.
The result is stored with the run.
Short answers on the daily API limits are kept up to date.
Share what you learn about the CRM API rate limits with your whole team. In addition, share what you learn about the retry after header with your whole team.
Every claim about the CRM API rate limits is checked against the code. Also, teams often ask us about the cursor pagination in practice. Thus, our team writes about the retry after header in plain words.
Notes on the exponential backoff are dated and reviewed by a second person. Moreover, each page on the token bucket limiter is reviewed before it is published. Notably, a short checklist keeps the daily API limits under control.
A 429 gets special handling. If the response has a Retry-After header on the first try, the transport waits that long, capped at 60 s. Indeed, then it tries again today.
Without the header, or on later tries, it uses the fixed schedule. Also, after the last attempt it raises a rate-limit error. Indeed, a 5xx response is retried only for reads.
Before each call, a per-provider token bucket spends one token. Notably, the limits table has an entry for each of the 72 adapters, measured in requests per second. Besides, most entries use 5 or 10 per second.
Requests-per-second entries in the DaletPipe limits table are listed below, one line per row.
- HubSpot: 10, 500,000 in practice.
- Pipedrive: 10, none in practice.
- Salesforce: 10, 15,000 in practice.
- Dynamics 365: 20, none today.
- Zoho: 3.3, 15,000 in practice.
- Monday: 1, none in practice.
- Freshsales: 0.8, none in practice.
The daily figures sit in the same table, as the next section explains. Indeed, a provider with no entry gets the default of 10.
When a run ends on a rate-limit error, its status is rate_limited. Besides, the stream lease is released, the pages already committed stay, and a later run continues. See sync jobs for scheduling and coverage receipts for the per-page record.
How do daily caps shape the pacing and the paging?
Daily caps are the second budget in CRM API rate limits. Also, five providers have a daily figure in the table: HubSpot, Salesforce, Zoho, Zoho Bigin and Salesforce Health. Also, the limiter paces each request per second, and the schedule keeps the day inside the cap.
The notes are shared with the whole team.
A large account on a short interval can reach a daily cap. Also, the run then ends with a clear status, and the pages already committed stay.
Short answers on the CRM API rate limits are kept up to date.
Questions about the CRM API rate limits are welcome in the contact form. Our team writes about the token bucket limiter in plain words.
Readers often return to the CRM API rate limits when plans change. In addition, people new to the cursor pagination should start with the guides. Likewise, share what you learn about the retry after header with your whole team.
Every claim about the exponential backoff is checked against the code. Also, a short checklist keeps the token bucket limiter under control. In addition, teams often ask us about the daily API limits in practice.
Page size is set per connector. In fact, each adapter uses the page size its provider's API documents.
Each connector sets its own size in its own code. HubSpot and Pipedrive use 100. Indeed, do not assume 100 records per page for the other adapters.
The table of limits also records what the vendor documentation said at build time. Providers change their caps, so CRM API rate limits need a review date. Also, treat the numbers as starting points and review them when you run a trial. Overall, a sandbox trial shows how each live limit behaves on your account.
Because each page commits on its own, a limit costs time and not data. Moreover, read incremental sync strategies for how the next run picks up. Also, the connector catalog for each adapter's API style.
Which checklist helps you test limits on a sandbox account?
A trial is the cheapest place to learn how a provider really behaves. Notably, use one sandbox and the record type with the most rows. In fact, then walk through a short list.
Every figure is taken from the code.
Notes on the exponential backoff are dated and reviewed by a second person.
A short checklist keeps the cursor pagination under control. Besides, a short checklist keeps the daily API limits under control.
Short answers on the CRM API rate limits are kept up to date. Also, each page on the cursor pagination is reviewed before it is published. Indeed, questions about the retry after header are welcome in the contact form.
Readers often return to the exponential backoff when plans change. In addition, teams often ask us about the token bucket limiter in practice. Also, people new to the daily API limits should start with the guides.
Readers often return to the daily API limits when plans change.
- Read the provider's own limit documentation, and write down every cap you find.
- Run a full pull and note how long it takes at the paced speed.
- Force a 429 from a stub, with and without Retry-After, and read the run status.
- Kill the worker in the middle of a page and check what the next run does.
- Compare the count of rows read with the count the CRM shows.
- Check the run against the daily cap before you schedule it every 15 minutes.
A team plans a pull every 15 minutes for an account with a small daily cap. Also, the first day looks fine. Thus, on day two the cap runs out by afternoon, and later runs fail. The fix is a longer interval or a smaller entity list, not a bigger retry count.