Salesforce has several ways to send many operations in one HTTP request, and they don't all save API calls. Composite, sObject Collections, composite graph and sObject Tree each count as a single call toward your API limits. Composite batch counts every subrequest. GraphQL counts every subquery.
For a SaaS team running a customer-facing Salesforce integration, the difference lands on the customer. Every call your product makes comes out of that customer's daily API allocation, shared with every other app and managed package in the org. Salesforce even tells customers to "consult with the vendor to verify that the product makes optimal use of the API," so an enterprise admin who sees your app at the top of their usage report will ask. Whichever endpoints you choose also decide how much maintenance the sync needs as customers grow.
Appnigma builds and maintains native Salesforce integrations for SaaS companies whose enterprise deals depend on them. Hand the work off done for you, with a named integration engineer and ongoing maintenance, or have your engineers build on Appnigma's integration infra, which monitors each customer's connection.
That gap is why teams add batching, watch API consumption stay flat, and conclude the limits are broken. They aren't. /composite/batch saves network round trips, not allocation.
Updated October 2026. Checked against Salesforce's REST API and GraphQL guides. It corrects the composite graph node limit (500 per payload, not per graph) and the Bulk API threshold (2,000 records, not 200), adds that composite graph counts as one call, and adds a request example and per-org allocation details.
How each composite resource counts against API limits
| Resource | Max per request | Counts as |
|---|---|---|
| /composite | 25 subrequests, up to 5 of them sObject Collections or queries | One call |
| /composite/sobjects (sObject Collections) | 200 records to create, update, upsert or delete | One call |
| /composite/graph | 500 nodes per payload, across up to 75 graphs | One call |
| /composite/tree (sObject Tree) | 200 records across all trees, five levels deep | One call |
| /composite/batch | 25 subrequests | One call per subrequest |
| GraphQL | 10 subqueries | One request per subquery |
The wording on each page is direct. For composite, "The entire series of requests counts as a single call toward your API limits," per Send Multiple Requests Using Composite. sObject Collections and Composite Graph use the same sentence. For Composite Batch, "Each subrequest counts against rate limits."
If cutting API consumption is the goal, /composite, sObject Collections, composite graph and sObject Tree are the tools. Batch isn't.
What one sync costs a customer org with each endpoint
Take a product that pushes 1,000 changed Contact records into one customer's org. Salesforce charges composite and sObject Collections as one call per request and composite batch as one call per subrequest, so the cost to that customer's daily allocation looks like this.
| Approach | Requests sent | Calls charged to the customer |
|---|---|---|
| One REST PATCH per record | 1,000 | 1,000 |
| Composite batch, 25 per request | 40 | 1,000 |
| sObject Collections, 200 per request | 5 | 5 |
| One composite request with 5 sObject Collections subrequests of 200 | 1 | 1 |
The last row works because composite allows up to 5 sObject Collections subrequests and charges one call for the whole request. Across 50 customers syncing hourly, the gap between the first and last rows is 1.2 million calls a day against 1,200. That's the difference between a customer's admin seeing your app at the top of their API usage report and never noticing it.
Why API calls matter more when your product syncs customer orgs
Each customer org has its own daily budget. Per Salesforce's API Request Limits and Allocations, Enterprise and Unlimited orgs get 100,000 calls per 24-hour period, plus a per-license amount and any purchased add-ons. A 15-seat Enterprise org gets 115,000. A Developer Edition org gets 15,000.
Three rules on that page shape how a multi-tenant sync should behave.
- The budget is org-wide. Limits "are not on a per-user basis," and calls from installed managed packages count against the same total. Your product competes with every other integration the customer runs.
- Long requests have a concurrency cap. Production orgs allow 25 requests of 20 seconds or longer at once, and the 26th gets REQUEST_LIMIT_EXCEEDED.
- You can read usage on every response. The Sforce-Limit-Info header, for example
api-usage=10018/100000, comes back on each REST call. The /limits resource needs the View Setup and Configuration permission, which an integration user often doesn't have, so the header is the safer per-tenant signal.
The budget math is unforgiving for smaller customers. A sync that spends 1,000 calls an hour uses 24,000 a day, which is 21% of a 15-seat Enterprise org's 115,000 before the customer's own tools make a single call. Track usage per customer org and slow your sync before a small customer runs out, rather than after their own automations start failing. Our guide to how a customer org's daily API allocation is calculated covers editions and add-ons.
A composite request example with reference IDs
Composite earns its single-call count when steps depend on each other. A later subrequest can use an ID created by an earlier one through a reference ID, so creating an Account and a Contact against it takes one call instead of two.
{
"allOrNone" : true,
"compositeRequest" : [
{ "method" : "POST", "url" : "/services/data/v68.0/sobjects/Account",
"referenceId" : "refAccount", "body" : { "Name" : "Acme" } },
{ "method" : "POST", "url" : "/services/data/v68.0/sobjects/Contact",
"referenceId" : "refContact", "body" : { "LastName" : "Rivera", "AccountId" : "@{refAccount.id}" } }
]
}POST it to /services/data/v68.0/composite. With allOrNone set to true, a failure in any subrequest rolls back the whole request. Without it, subrequests that don't depend on the failed one still run.
Two behaviors catch teams out, per the Composite Request Body reference. The top-level response is HTTP 200 either way, so check each subrequest's status code. And collateSubrequests defaults to true from API 49.0, which speeds processing but doesn't guarantee execution order. Set it to false when order matters.
Choosing composite, sObject Collections, composite graph or Bulk API 2.0
Salesforce draws the line for volume at 2,000 records. It recommends bulkified synchronous REST calls, such as composite, for jobs under 2,000 records, and calls anything larger "a good candidate for Bulk API 2.0," per its Bulk API limits page.
| Sync job | Reach for |
|---|---|
| Dependent writes, such as an Account then its Contacts | /composite with reference IDs |
| Up to 200 records of one shape | sObject Collections |
| Idempotent updates keyed on your product's IDs | sObject Collections upsert by external ID |
| Many independent record trees, partial progress acceptable | /composite/graph |
| Unrelated reads and writes, allocation irrelevant | /composite/batch |
| More than 2,000 records | Bulk API 2.0 for jobs over 2,000 records |
sObject Collections for records of the same shape
Up to 200 records per request, counted as one call. allOrNone defaults to false, so failures come back per record and the successes stay committed. Upsert uses /composite/sobjects/SobjectName/ExternalIdFieldName, accepts only external IDs, and keeps a sync idempotent when a retry resends records it already wrote. Store your product's record ID in an external ID field on the Salesforce side and a resend can't create duplicates.
Composite graph for many independent trees
Composite graph raises the subrequest ceiling from 25 to 500, and the whole request still counts as one call. The limits from Composite Graph Limits are below.
| Composite graph limit | Value |
|---|---|
| Nodes per payload | 500 in total, for example one graph of 500 or 50 graphs of 10 |
| Graphs per payload | 75 |
| Graph depth | 15 |
| Different nodes per payload | 15, where API version, HTTP method or object type makes a node different |
| Graph failures before processing halts | 14 |
Each graph is all or nothing, and one failed graph doesn't stop the others until more than 14 fail, at which point the rest return PROCESSING_HALTED. Salesforce says 50 graphs of 10 nodes are more efficient than one graph of 500. Graph nodes accept only sObject create, read, update, delete and external ID URLs, so there are no query nodes.
Composite vs composite batch
Composite batch takes up to 25 independent subrequests that can't pass data to each other, run serially, and aren't rolled back if one fails. Unlike composite, it charges one call per subrequest. The whole batch times out after 10 minutes. Use it to cut network round trips for unrelated work, such as reading /limits alongside a query, and never to save allocation.
Does the Salesforce GraphQL API reduce API calls?
No. Per the GraphQL query limitations, each query can hold up to 10 subqueries, and "Each subquery counts as one request for rate limiting." The GraphQL rate limit page says it uses the same limits as other Connect API requests, and it returns 503 when they're exceeded. A query with 10 subqueries costs 10 requests, while a composite request with 5 Query subrequests costs one.
GraphQL's value for an integration is payload shape, not call count. One query returns exact fields across related objects, five levels of child-to-parent relationships deep. Each subquery returns up to 2,000 records but only 10 by default, so a sync that forgets to paginate silently misses records. Mutations have been generally available since API 66.0. Our post on Connect API limits, which GraphQL shares covers the rest of that family.
Mistakes that waste API calls or lose data
- Using composite batch to save calls. It saves round trips only, and each of the 25 subrequests still counts.
- Assuming composite graph allows 500 nodes per graph across 75 graphs. The 500 is the total for the whole payload.
- Mixing too many node types in one graph payload. POST and PATCH on Account plus POST on Contact already use 3 of the 15.
- Trusting the top-level HTTP 200. Composite returns 200 even when subrequests fail. Read each subrequest's status.
- Nesting allOrNone the wrong way. With the outer composite flag true and an inner sObject Collections flag false, the Collections response can show success while nothing is created, per the allOrNone page.
- Relying on subrequest order with collation on. Collated subrequests run faster but in no guaranteed order.
- Polling for changes on a schedule. A sync that queries every few minutes burns calls whether or not anything changed. Change Data Capture instead of polling pushes changes to you.
- Sending 2,000-plus records through REST. Move that job to Bulk API 2.0, which Salesforce recommends above 2,000 records.
Frequently Asked Questions
Does a composite request count as one API call?
Yes, for up to 25 subrequests. Composite batch doesn't, because each subrequest counts.
What is the difference between composite and composite batch?
Composite subrequests share reference IDs, can roll back together, and count as one call. Batch subrequests are independent and each counts as a call.
Does composite graph count as one API call?
Yes, for up to 500 nodes per payload.
Does the Salesforce GraphQL API reduce API calls?
No. Each subquery counts as one request. GraphQL reduces over-fetching, not allocation use.
When should I use Bulk API 2.0 instead of composite?
Above 2,000 records, per Salesforce's guidance.
How can a SaaS product see a customer org's remaining API calls?
Read the Sforce-Limit-Info header on each REST response. The /limits resource needs the View Setup and Configuration permission.
Can Appnigma build our Salesforce integration?
Yes. Appnigma builds native Salesforce integrations for SaaS companies, done for you with ongoing maintenance, or on its integration infra so your engineers can monitor each customer's connections.
Related Articles
- Salesforce API rate limits and native integration advantages
- Salesforce Bulk API 2.0 guide
- Which integration pattern each sync job follows
- Authorize each customer's org with an External Client App
Sources
- Send multiple requests using Composite, REST API Developer Guide
- Composite request body, REST API Developer Guide
- Composite Batch, REST API Developer Guide
- sObject Collections, REST API Developer Guide
- Composite Graph and Composite Graph Limits, REST API Developer Guide
- allOrNone parameters in Composite and Collections requests, REST API Developer Guide
- API request limits and allocations, Salesforce Developer Limits Quick Reference
- Bulk API and Bulk API 2.0 limits and allocations, Salesforce Developer Limits Quick Reference
- Limit Info header, REST API Developer Guide
- GraphQL API query limitations and request limits, GraphQL API Developer Guide