How do administrators monitor daily API consumption metrics to prevent unexpected organization rate-limiting blocks?
Answer
Basics: Each org has a total API request allowance over a rolling 24-hour period. When it is hit, further API calls fail. Integrations share this pool, so one runaway integration can block all of them.
How it works:
- Limits resource:
GET /services/data/vXX.0/limitsreturnsDailyApiRequestswithMaxandRemaining, plus other limits (bulk, streaming, platform events). - Response header: every API response includes
Sforce-Limit-Info: api-usage=used/total. - Setup > System Overview shows API requests used in the last 24 hours.
- Setup > API Usage Notifications emails admins at thresholds you define.
- Apex:
System.OrgLimits.getAll()returns org-level limit values;Limitsclass covers per-transaction limits. - Event Monitoring (API Total Usage) shows which user or app consumed calls.
Advanced / deep dive: The base allocation depends on edition and licenses (for example, Enterprise commonly 100,000 plus per-license additions; verify current numbers). Calls made from Apex within the org do not count; calls into Salesforce APIs from outside do. Bulk API counts batches, not records, which is why bulk is cheaper. Reduce consumption with Composite and sObject Collections, event-driven subscriptions instead of polling, caching, and If-Modified-Since/SystemModstamp delta queries. Also watch concurrent API request limits (25 requests running over 20 seconds) and limits on platform event and streaming allocations. Dashboards on Limits data fed into external monitoring give trend alerts.