SfSkills Domains Docs GitHub

Home / integration / api-governance-and-rate-limits

api-governance-and-rate-limits

Monitor and govern Salesforce API consumption: per-user limits, org allocation, lightning-rest limits, and backoff. NOT for designing new endpoints — use security/api-security-and-rate-limiting.

Open the skill folder on GitHub


API Governance and Rate Limits

Salesforce orgs have a 24-hour API allocation (varies by license). Hitting it halts all integrations. This skill builds a governance dashboard (API usage by consumer), a throttling pattern for heavy consumers, and an escalation runbook when usage trends toward limits.

Adoption Signals

Orgs with 10+ integrations or periodic '24-hour limit exceeded' incidents.

  1. Pull /services/data/v60.0/limits/ daily; record DailyApiRequests.Max and Remaining.
  2. Attribute usage via EventLogFile ApiTotalUsage events — per user/consumer-key.
  3. Identify top 3 consumers; review whether Bulk API 2.0 or Composite API could replace per-row calls.
  4. Implement throttling on heaviest consumer (token bucket in the middleware layer, not in Salesforce).
  5. Set 70% / 85% alerts; escalate at 85%.

Key Considerations

Worked Examples (see references/examples.md)

Common Gotchas (see references/gotchas.md)

Top LLM Anti-Patterns (full list in references/llm-anti-patterns.md)

Official Sources Used

Package files