API Rate Limits for Marketing Automation: Scope and Signal
An API rate limit is a throttle a service can base on metrics such as the number of operations, the amount of data or the relative cost of operations, and RFC 6585 does not define how the server identifies the user or counts requests. Of the 105 APIs in our table, 81% have a checked row stating a rate limit.
This guide argues that you can't build an agent's throttle from one number copied off a tutorial, because the number tells you nothing about who it is counted against, what it is counted in, or how a hit gets reported. The IETF's RateLimit headers draft says client-side rate limiting code has historically relied on out-of-band documentation, such as API docs explaining that limits are per-user or per-endpoint, to learn how a server partitions its quota1. That documentation can go quiet. LinkedIn's daily limit varies by endpoint and its standard limits "are not published in documentation", by its page on Microsoft Learn2. So what we lean on is each platform's own page, read for its wording and its gaps and set beside our table of checked rows, and the build that comes out of it is a budget and a backoff meant to hold where the page says nothing.
What the standards leave to each platform
Start with the one status code. RFC 6585 defines 429 as the user having "sent too many requests in a given amount of time", says the response should include details explaining the condition, and says it may include a Retry-After header indicating how long to wait3. Should and may. Both words leave the explaining to the server's goodwill.
Sending the code at all is optional. Servers "are not required to use the 429 status code", in RFC 6585's own words, and it adds that dropping connections or taking other steps may be more appropriate when limiting resource usage4. The same RFC lets an origin server base its limiting on counts of requests per resource, across the entire server, or among a set of servers5. A throttled agent can therefore meet a Too Many Requests status, a dropped connection or something else.
The client side is just as thin. RFC 9110 has the client examine each response and decide what to do next from the status codes and content received6. Being a user agent "does not imply that there is a human user" directly interacting with the software at the time of a request, RFC 9110 also says7. A scheduled agent is that client, so its retry logic starts from the status and the body of whatever came back.
Then the headers. An Internet-Draft from the IETF's HTTPAPI working group defines RateLimit-Policy and RateLimit header fields so that servers can advertise their quota policies and current service limits8. Servers "are not required to return RateLimit header fields in every response", under the same draft9. A client that receives them, the IETF draft adds, must not assume future responses will contain the same RateLimit fields, or any10. Depending on the implementation, X-RateLimit-Remaining refers to different values, among them seconds or milliseconds remaining to the window expiration, seconds since UTC as a UNIX timestamp, or a datetime, the draft also notes11. The same draft says different implementers use different headers with the same meaning, such as X-RateLimit-Limit and X-Rate-Limit-Limit, and likewise X-RateLimit-Remaining and X-Rate-Limit-Remaining, and X-RateLimit-Reset and X-Rate-Limit-Reset12. One parser with one spelling and one meaning will not carry across implementations.
Scope is left open the same way. Without a partition key, the IETF draft's FAQ says, a server can effectively have only one scope, "which is impractical for most services", or it needs to communicate the scopes out-of-band13. Many APIs, by the httpapi draft's FAQ, rely on API keys, user identity or client identity to allocate quota14. Out-of-band, for a builder, means the platform's own documentation. The key, the unit, the header and the wait are whatever that page says they are, when it says anything.
How often our table finds a limit stated
Our table holds 2,215 checked rows drawn from 476 pages about 105 APIs. Of those APIs, 85 have at least one checked row stating a rate limit, and 15 have pages that, as our collector read them, state nothing for it. Each field is counted on its own, one row per API, so the same API can turn up under several fields.
Three more fields get the same treatment. An access requirement is stated in at least one checked row for 94 APIs. An automation rule is stated for 39 APIs, and the pages read for another 42 state nothing for one. What those rules say is covered in our guide to API automation policies. A version change is stated for 66 APIs and left unstated on every page read for 30. A stated limit can still be a thin one, and the gap sits in a different place at each company below.
LinkedIn's rate limit for any endpoint an app has access to can be looked up in the Developer Portal, under the app's Analytics tab, by its documentation on Microsoft Learn15. For a LinkedIn endpoint missing from that Analytics page, the same documentation says to "make 1 test call to that endpoint and refresh the Analytics page"16. The lookup costs a call. Slack does not share precise burst limits externally, its rate-limit page says, because the numbers are subject to change and Slack does not want an app built around a specific burst capacity that later has to change17. On the same page, Slack also reserves the right to rate limit other functionality to prevent abuse, spam, denial-of-service attacks or other security issues18.
Customer.io's Track API "has no fixed rate limit", and its docs say requests are accepted as fast as they are sent and are not rejected or dropped because of volume19. The general guideline is about 3000 requests per 3 seconds, an average of 1000 requests per second, by the same docs20. Traffic that regularly goes above the guideline may bring contact from Customer.io about the integration or about a plan that better suits the volume21. A guideline still gives the agent's budget a number to hold to.
Then the limits that are stated and movable. Pinterest's rate-limit reference says "All rate limits are subject to change without notice"22. To protect platform stability, Shopify may temporarily reduce API rate limits, by its rate-limit page23. Default quota on the YouTube Data API "is subject to change", in Google's getting-started page24. Atlassian's rate-limiting page gives March 2, 2026 as the start of enforcement for the new points-based API rate limits and tiered quota rate limits for Jira and Confluence Cloud apps25. A figure copied off any of these pages wants the date it was read next to it.
Hammering an endpoint to find an unstated ceiling runs into the platform's own wording at Atlassian and Stripe. Atlassian tells developers not to perform rate limit testing against Atlassian cloud tenants, as this may impact customers26. In a sandbox, Stripe generally discourages load testing, because API limits are lower there and the load test is likely to hit limits it would not hit in production27.
Who the limit is counted against
Scope is the key your counter is filed under, so read it before the number. Graph API requests fall under Platform Rate Limits, while Marketing API and Instagram Platform requests fall under Business Use Case rate limits, by Meta's Graph API rate-limiting page28. Meta says the app's call-count limit is "not a per User limit" but a limit on calls made by the app29. On the Marketing API, the limit applies to the ad account across the same Business Use Case, so all endpoints with the Ads Management business use case share the total quota within that ad account, the same page says30. So one Meta app carries two counters, one under the app and one under ad account plus use case.
Auth type moves the key at HubSpot and Klaviyo. For legacy public apps, and for OAuth apps on developer platform versions 2025.2 and 2026.03 distributed through its marketplace, HubSpot limits each account that installs the app to 110 requests every 10 seconds, excluding the CRM Search API, by its usage-details page31. Privately distributed HubSpot apps get a burst limit that "applies individually per app" and a daily limit shared across all apps within the same HubSpot account, the same page says32. At Klaviyo, OAuth apps get their own quota per installed app instance, "per account per app", while private key integrations share the same rate limit quota per account, by its developer docs33. The auth type, the subject of api authentication methods compared, therefore decides whether the bucket belongs to the app, the account or both.
Slack evaluates an app's Web API requests "per method, per workspace", with rate limit windows per minute, by its rate-limit docs34. Once a Slack method is limited for a workspace, the same docs go on, calls to other methods on behalf of that workspace are not restricted, and neither are calls to the same method for the app's other workspaces35. There are two daily counts at LinkedIn, an Application limit on the total number of calls the application can make and a Member limit on the total a single member per application can make, by its documentation on Microsoft Learn36. A LinkedIn call has two counters to check before it goes out.
OpenAI's rate limits are defined "at the organization level and at the project level", and not at user level, by its rate-limits guide37. For private apps, the default at Intercom is 10,000 API calls per minute per workspace, shared by all private apps in the workspace, with 25,000 a minute per workspace across all apps, by its rate-limiting reference38. Public apps default to 10,000 calls a minute for each app and 25,000 a minute per workspace, in the same reference39. Rate limits at Stripe are in general measured in API requests per second, per Stripe account, with a global limit on total API usage per account and additional limits of their own on some endpoints, by its docs40.
The line to change is the bucket key. Build it from what the page names, something like platform:scope_id:method, and settle it before deciding what to count.
What the limit is counted in
The bucket has a key. Now it needs a unit, and one request is the wrong unit at Meta. Generally speaking, a read call on Meta's Marketing API equals 1 point and a write call equals 3 points, and Meta throws a throttling error once the maximum score is reached, by its Marketing API rate-limiting page41. A counter that adds one per call misses the weight Meta puts on writes.
YouTube's Data API charges by type of operation. A write operation that creates, updates or deletes a resource usually costs 50 units on the YouTube Data API, by Google's getting-started page42. A read that retrieves a list of resources usually costs 1 unit in YouTube's API, by that same Google page43. All YouTube Data API requests, invalid ones included, incur a quota cost of at least one point, Google's quota-cost page says44. Projects that enable YouTube's Data API have a default quota allocation of 100 search.list calls, 100 videos.insert calls and 10,000 units per day combined for all other endpoints, in Google's quota-cost page45. When a YouTube method such as search.list returns multiple pages of results, each request for an additional page incurs the estimated quota cost, that page adds46. Put the debit inside the pagination loop and charge it before the response comes back, since an invalid request costs quota too.
Jira Cloud enforces "three independent rate limiting systems that work simultaneously", and Atlassian's rate-limiting page says an app or integration must handle all three47. In Jira Cloud's points-based system, each request starts with a base cost of 1 point and gains points for each object involved, while write requests are charged only the base cost, the same Atlassian page states48. Writes are the heavy call at Meta and the flat one at Jira, so the cost function gets written per platform.
OpenAI's rate limits use metrics such as requests per minute, requests per day, tokens per minute and tokens per day, by its rate-limits guide49. OpenAI's guide says rate limits can be hit across any of those options, "depending on what occurs first"50. At Anthropic, Messages API rate limits are measured in requests per minute, input tokens per minute and output tokens per minute for each model class, by its rate-limits page51. Either one needs a token meter beside the request meter, and the call waits on whichever is emptier.
Stacked windows come next. Brevo states limits as RPS, the maximum requests allowed per second, and RPH, the maximum allowed per hour, and where an endpoint has both "you must respect both simultaneously", by its API-limits page52. At Klaviyo, its developer docs note, a single call can count against several rate limits at once53. Shopify enforces most of its rate limits with a leaky bucket algorithm, by its usage docs54. A leaky bucket is at least a shape the client can copy.
Change the debit. Swap the flat one-per-call charge for bucket.take(cost(platform, call)), write cost from each platform's page, and give a call one bucket for every unit and window it is counted in.
Where the plan or access tier sets the number
Meta's Graph API rate-limiting page says standard_access "enables lower rate limiting" and that an app can apply for Advanced Access to the Ads Management Standard Access feature to get a higher rate limit55. An app's calls within one hour are 300 plus 40 times the number of active ads with Standard Access to Meta's Ads Management Standard Access feature, and 100000 plus 40 times that number with Advanced Access, the same page says56.
An app in Meta's Marketing API development tier has a maximum score of 60, a decay rate of 300 seconds and a 300-second block at the maximum, by Meta's page for that API57. With Full access to the Marketing API, a Meta app's maximum score is 9000 and the block lasts 60 seconds, the same page says58. A constant copied from the Full access maximum score fails first on a development-tier app, whose maximum score is far lower.
The plan is the next field in the install record. Privately distributed HubSpot apps get 100 requests per 10 seconds per app on Free and Starter and 190 on Professional and Enterprise, with daily account caps of 250,000 on Free and Starter, 625,000 on Professional and 1,000,000 on Enterprise, by its usage-details page59. For each purchased API limit increase, HubSpot's table lists 250 requests per 10 seconds per app and 1,000,000 daily calls per account on top of the base subscription for privately distributed apps, and HubSpot caps purchases at two60. The API limit increase add-on, the same page adds, does not increase the limits of legacy public apps, or of OAuth apps on the latest developer platform versions distributed via HubSpot's marketplace61.
General rate limits on Brevo are available to all account types, Free through Enterprise, by its API-limits page62. Advanced rate limits are available to Professional and Enterprise accounts and extended rate limits, the maximum, to Enterprise accounts, on the same page6364. At OpenAI, by its guide, an organization's usage tier upgrades automatically as its total credit purchases reach each threshold, and higher tiers generally provide higher rate limits across models65. Limits at Anthropic are defined by usage tier, and organizations are placed on a tier automatically, based on usage history and account standing, by its rate-limits documentation66. That tier belongs to the organization, so look it up there.
A Jira Cloud app by default shares a single 65,000 point hourly quota across all tenants, which Atlassian calls the default tier for all apps67. Slack's rate-limit docs say "All Slack plans receive the same rate limit tier for each method"68.
Keep the ceiling out of the source file. Load it per install from config, something like limits[platform][install_id], and store the access tier, the plan, the add-on count and the date read beside the number.
How each platform reports a limit hit
The parser reads a throttled response, and it wants a branch per platform. Error code 4 means the app whose token made the request has reached its rate limit, by Meta's rate-limiting page for the Graph API69. Code 613 on Meta's Marketing API is shared with other rate limits, so the Marketing API page says to identify the concurrent-request throttle by the error subcode 484101870. A branch on the top-level code alone misfiles that throttle.
Responses that Meta rate limits using its Business Use Case logic include an X-Business-Use-Case-Usage header (for v3.3 and older Ads API calls) with a JSON-formatted string describing current application rate limit usage, Meta's Graph API page adds71. Inside that usage header, estimated_time_to_regain_access is the time, in minutes, until calls are no longer throttled, by the same page72. Convert before sleeping, since the field counts minutes.
For HubSpot the parser starts in the body. The message and policyName in a HubSpot 429 response indicate which limit was hit, daily or secondly, and the daily limit resets at midnight based on the account's time zone setting, by its usage page73. The header carrying HubSpot's daily limit is not included in the response to API requests authorized using OAuth74. None of the rate limit headers that the usage page lists come back in responses from HubSpot's search API endpoints75. Read policyName first and treat every HubSpot header as optional.
Two header sets at Klaviyo, one per status. Klaviyo's docs list RateLimit-Limit for the requests allowed per time period, RateLimit-Remaining for the approximate number remaining within a window, and RateLimit-Reset for seconds left before the current window resets76. When a call hits an HTTP 429, the same docs add, those three are replaced with a Retry-After header that returns an int, the seconds before requests can start again77. Code that looks for RateLimit-Reset on a rate-limited response finds nothing.
Exceeding a rate limit on any of Slack's HTTP-based APIs, incoming webhooks included, returns an HTTP 429 error and a Retry-After header containing the number of seconds until a retry, by Slack's documentation78. When a workspace generates more than 30,000 events, Slack sends an informative event called app_rate_limited "describing the workspace and timestamp when rate limiting began"79. That signal is an event, so it lands in the event handler and never reaches the branch that handles rate-limited responses.
Stripe and Jira Cloud attach a reason. Rate-limited requests to Stripe return a 429 status code and include a Stripe-Rate-Limited-Reason header that explains why the request was rate-limited80. Without these headers, a Stripe 429 "wasn't the result of a rate limit" and might be a lock timeout, by the same docs81. On a Jira Cloud 429, by Atlassian's documentation, the reason jira-quota-global-based or jira-quota-tenant-based marks the hourly points-based quota exceeded, jira-burst-based the per-second burst limit and jira-per-issue-on-write the per-issue write limit82. The Jira branch can pick its bucket by that string.
Have parse_limit(platform, response) return a reason, a wait in seconds or None, and the bucket to debit, reading the body before any header. The branch most likely to fail first is the one that assumes a header came back.
Throttles that fire under the published number
A bucket held under the per-minute figure can still be rate-limited. Anthropic's rate-limits documentation warns that a rate of 60 requests per minute might be enforced as 1 request per second, so short bursts of requests can exceed the limit and trigger rate limit errors83. After a sharp increase in usage, Anthropic adds, requests can return a 429 error even while under the ITPM and OTPM rate limits, and a burst of requests within a few seconds can also count as a sharp increase84. A ramp-limit response from the Messages API has error.details.error_code set to ramp_limit_exceeded, and the same documentation says to use that code to tell the response apart from a rate limit85. At OpenAI, a slow_down error can occur even when traffic is within its requests-per-minute and tokens-per-minute limits, and reflects how quickly traffic increased, by the company's guide86. So the bucket wants a slow start as well as a ceiling.
Then the spend cap, where waiting does nothing. A spend-cap response from Anthropic has the error type rate_limit_error, the same as for a rate limit, and no retry-after header, and retrying, including the SDK's automatic retries, fails until access resumes87. At OpenAI, a hard spend limit enforces a monthly organization or project cap, and affected API requests return a 429 error, by its rate-limits guide88. The same guide tells developers not to retry quota, billing or other errors that require them to take action89. No sleep clears a cap, so that branch stops the run.
A tight retry loop is the first thing to delete. Unsuccessful requests contribute to OpenAI's per-minute limit, so continuously resending a request won't work, the same guide notes90. Once the limit has been reached, Meta's Graph API documentation says to stop making API calls, since continuing increases the call count and the time before calls will be successful again91.
Some ceilings sit on the thing being edited. Meta's rate-limiting page for the Marketing API sets a default of one edit per object every 30 seconds and says individual endpoints can be configured with a different limit92. Each ad set's budget, on that Meta page, is only allowed to change 4 times per hour, and exceeding the limit blocks the budget change for that ad set for an hour93. Slack apps, its rate-limit page states, may in general post no more than one message per second per channel, whether via chat.postMessage, an incoming webhook or one of the other ways to send messages into Slack94. The Meta key gains an object ID and the Slack key a channel ID.
Intercom's rate-limiting reference says "Not every 429 response includes these headers" and asks that code also handle a 429 without them95. On Anthropic's retry-after header, its documentation reads "Not every 429 carries it", and the spend-cap 429 never does96.
Add a retryable field to what parse_limit returns. Set it false for spend-cap, quota and billing errors, and keep a fallback wait for a throttled response that arrives without those headers.
A backoff and budget template for agents
The template is a bucket that gates every call before it goes out, plus a retry path for the calls that come back throttled anyway. Stripe's docs name a client-side token bucket rate-limiting algorithm as a "common technique for controlling API usage"97. An application with multiple workstreams that access the same throttled service needs to integrate all of them into its rate limiting strategy, by Microsoft's Rate Limiting pattern98. So the scheduled job, the backfill and the webhook handler all call bucket.take() against one bucket per key and unit, kept in a store every worker can reach. A bucket in one process's memory fails first.
Refill sets the pace. As an example of a threshold a client sets for itself, the IETF's RateLimit draft gives "capping the maximum number of request per second"99. Though not required, Microsoft's pattern page adds, it is "often recommended to send smaller numbers of records more frequently" to improve throughput100. Set refill_every = window / steps and hand the allowance out in slices.
The wait comes next. A retry should be attempted only after the seconds in the Retry-After header on a 429 response have expired, by Klaviyo's docs, which add "Immediate retries will always receive a 429 error"101. Treat the Retry-After value as a minimum, OpenAI's guide says, waiting at least that long and adding a small random delay so multiple clients don't retry at the same time102. Stripe's docs say to follow an exponential backoff schedule to reduce request volume when necessary, and to add randomness to it "to avoid a thundering herd effect"103. Meta's Marketing API guidance says to implement exponential backoff when receiving throttling errors, gradually increasing the time between retries, and says HTTP headers can also be examined for the reset time estimation104. In code, the wait is the larger of the Retry-After value and the exponential backoff term, plus a small random delay, so the exponential term covers a throttling response that arrives without the header.
Retries get a bucket of their own. Amazon limits retries locally with a token bucket, which lets all calls retry as long as there are tokens and then retry at a fixed rate when the tokens are exhausted, by its Builders' Library article105. APIs with side effects, the same article holds as a general view, "aren't safe to retry unless they provide idempotency"106. A Jira Cloud call should be retried only if the API is idempotent and the response includes a Retry-After header, by Atlassian's documentation107. Tag each call idempotent=True or False where it is made and have the retry path refuse anything untagged.
A Jira Cloud quota error stops everything. For the Jira Cloud reasons jira-quota-global-based and jira-quota-tenant-based, Atlassian's instruction is "Pause all API requests until the window resets"108. The template handles that like a retryable false response, clearing the queue, recording the reason and exiting the run. LinkedIn's alerts are not sent in real time, and its documentation expects a delay of approximately 1-2 hours after the threshold is reached109. The agent's own counter is the earlier warning.
The Rate Limiting pattern "can reduce the number of throttling errors", Microsoft's page says, and the application still needs to handle any that occur110. The template holds no ceilings of its own and gives a dropped connection only a timeout. It breaks when each worker gets its own bucket, when an untagged call is retried, or when a retryable false response is slept on. Nothing here carries a re-run date, so read each slip of code as a sketch from a page's wording.
Of the 105 APIs in our table, 85 have a rate limit written down on a page our collector read, and 15 have pages that, as read, give none. Written down is not the same as complete: Slack does not share its precise burst limits externally, by its rate-limit page17. The headers are no firmer, since the IETF's RateLimit draft does not require servers to return RateLimit header fields in every response9. So the key, the unit, the ceiling and the parser get written per platform from its own page, and the budget and the backoff have to hold where that page goes quiet.