OBLYTECH Logo
OBLYTECH Logo

REST API Throttling and Rate Limits

ServiceNow REST API rate limits restrict inbound requests per hour through rules for a user, a role, or all users. A throttled request returns 429 Too Many Requests with Retry-After. Check the enforced rule, pause the caller for the indicated interval, and review request counts before changing the limit.

Find the REST API rate limit ServiceNow applies

Start with the response from the affected call. When a request matches a rate limit rule, X-RateLimit-Limit gives the hourly allowance, X-RateLimit-Reset gives the UNIX timestamp of the next scheduled window reset, and X-RateLimit-Rule identifies the enforced rule by sys_id. Capture these values with the request time and integration identity.

For a denied call, Retry-After expresses the waiting period in seconds. Keep that distinction clear in client code: the reset header is a timestamp, while the retry header is a duration. Treating both as the same kind of value can produce a retry far too early or an unnecessarily long pause.

The configured rule determines the allowance; do not assume a universal request budget for an integration. Identify the API, version, resource, and account involved before comparing traffic with the configured threshold. For Table API requests, check the Table API endpoint format so the resource under investigation matches the call being made.

The configuration described here follows Brazil behavior; check the fields and behavior on your instance and release. Nodes maintain per-user counts and commit them to the database every 30 seconds, so enforcement can lag by up to 30 seconds. Allow for that delay when testing a new rule.

Configure the resource and user scope deliberately

Creating an inbound REST API rate limit requires rate_limit_admin. Navigate to All > System Web Services > REST > Rate Limit Rules, select New, and give the rule a distinct Name. Choose REST API, then Version and Resource. The available versions depend on the API, and the available resources depend on the version.

  1. For Table API, set Table to the table being targeted. For Import Set API, use Import set table.
  2. Enter Request limit per hour as the maximum hourly request count.
  3. Choose Apply to: Single user, Users with role, or All users.
  4. For Single user, select User. For Users with role, select Role.
  5. Review Active and select Submit. Newly created rules are active by default.

Plan the scope before choosing the number. A dedicated integration account is easier to investigate than an account shared by unrelated jobs. As an operational recommendation, inventory the callers using the account and estimate their combined demand before changing its allowance. Otherwise, a background synchronization may consume capacity expected by a time-sensitive workflow.

Keep identity setup separate from traffic control. Review ServiceNow authentication profile configuration when establishing which credentials a caller uses. Raising a rate limit does not address an account or authentication configuration problem.

Resolve overlapping rules before raising a threshold

For the same resource, a Single user rule takes precedence over Users with role and All users rules. A Users with role rule takes precedence over an All users rule. Where multiple role-based rules match a user’s roles, the rule with the lowest request allowance applies.

This matters when an administrator changes a broad rule but the caller still encounters the same ceiling. Inspect X-RateLimit-Rule from that caller’s response and locate the identified record. Then compare its scope with the user’s matching rules. Do not infer the active allowance from the name of a general policy.

For example, consider a proposed design with a broad allowance and a lower allowance for a particular role. A caller with that role follows the role-based rule unless a Single user rule takes precedence. Write the intended exception down before adding it, including the resource, account, owner, and reason. This makes later reviews easier.

Authorization is another separate check. Use API access policies and authentication scope to examine access requirements alongside throttling. Diagnose the returned response before deciding which control needs attention.

Handle 429 responses without creating a retry surge

When ServiceNow denies an inbound request because it exceeds the rule, the response is 429 Too Many Requests. Its error message is Rate limit exceeded. Build a distinct handling path for that response rather than letting the job immediately repeat the same call through a generic failure loop.

  1. Record the affected work item, request time, response status, and rate limit headers.
  2. Pause retries for at least the Retry-After interval supplied in the response.
  3. Keep pending work in a controlled queue and prevent parallel workers from immediately repeating it.
  4. Resume at a measured pace and check the next responses for the enforced rule and limit.
  5. Escalate repeated throttling with evidence of demand and backlog, rather than increasing retries.

The queue and pacing steps are client design recommendations. Coordinate them across workers using the same identity; a sleeping worker does little good if its peers continue sending requests. Consider adding variation to restart timing so several paused workers do not all resume together.

Separate a definite throttling response from an uncertain network outcome. Before replaying a write whose outcome is unclear, reconcile the target record or use a duplicate-prevention design appropriate to the integration. A retry policy should preserve business correctness as well as manage request volume.

Use counts and violations to explain the backlog

Monitoring inbound counts requires rate_limit_admin. Open All > System Web Services > REST > Rate Limit Rules and select the relevant rule. Rate Limit Counts shows the inbound request count limited by that rule; the list is cleared daily. Rate Limit Violations shows requests exceeding Request limit per hour; it is cleared biweekly.

Investigating violations also requires rate_limit_admin. Navigate to All > System Web Services > REST > Rate Limit Violations, select the rule to investigate, and review the violations by user. Violations arise when requests reach the maximum allowed count for that API in the hour.

Compare those records with the caller’s logs. Ask whether the pressure comes from scheduled demand, repeated failed attempts, overlapping jobs, or an unexpected account sharing arrangement. Retain relevant observations before records are cleared. A count without the job schedule may show that a ceiling was reached without explaining why. Include the start and end of the affected run, the number of pending work items, and the point when retries began. Those observations help distinguish a short burst from sustained demand that needs a different schedule.

As a planning exercise, separate normal demand from recovery demand. A job returning after an outage may have a backlog as well as new work arriving. Decide how quickly that backlog must drain and whether changing the schedule or reducing repeated requests can meet the requirement before increasing the allowance.

For help planning this work, see ServiceNow implementation.

Reset counts with the investigation evidence preserved

Resetting an inbound limit requires rate_limit_admin. Open the rule from All > System Web Services > REST > Rate Limit Rules and select the Reset Rate Limit Counts related link. This sets the rule’s count to zero and removes violations for the current hour. Counts and violations begin accumulating again as requests arrive.

Changing Request limit per hour also resets the count and deletes current-hour violations. Capture the evidence before either action. Record why the intervention was needed, who owns the caller, and what will change in its traffic pattern. A reset restores room for requests but does not remove the cause of excess demand.

After intervention, observe both the backlog and new requests. Check that processing resumes without another rapid climb to the limit. Agree on a review point with the integration owner so a temporary allowance does not become an unexplained permanent setting.

Questions about rate limit edge cases

Can a rule be paused without deleting its configuration?

Yes. Clear Active to stop enforcement, and activate the rule again to resume it. Record the reason and intended review time so the paused control is not forgotten.

Does All users mean one shared pool for the whole instance?

Counts are maintained per user. An All users rule defines the applicable user scope; interpret it alongside the per-user counting behavior rather than treating the label as a single pooled allowance.

How does guest catalog access fit this configuration?

The guest catalog rule form uses Service catalog, Version set to latest, Apply to set to Users with role, and Role set to public. Choose the intended catalog Resource rather than assuming one selection covers all catalog operations.

What should an integration handover include?

As a handover recommendation, record the account owner, resource, expected schedule, retry behavior, and escalation contact within your operating records. Include a representative throttling response so support staff can recognize the relevant headers.