- Which Salesforce API Should You Use?
- Prerequisites
- Step 1: Create an External Client App
- Step 2: Choose an OAuth Flow and Get an Access Token
- Step 3: Make Your First REST API Requests
- Step 4: Handle Responses, Errors and Pagination
- Step 5: Keep Data in Sync
- Salesforce API Limits in 2027
- Security Best Practices
- Common Mistakes to Avoid
- When to Build on the REST API and When to Use a Platform
- Salesforce Integration Without API Code: How Integrate.io Does It
- FAQs
- Related Guides
- Conclusion
Updated October 26, 2026
Salesforce REST API integration is the process of connecting an external application to a Salesforce org over HTTPS so it can read, create, update and delete records programmatically. The client authenticates through OAuth 2.0 using an External Client App, then calls resources under /services/data/v68.0/ with standard HTTP methods (GET, POST, PATCH, DELETE) and exchanges JSON. In 2027 that means three things have changed from older tutorials: new integrations register an External Client App rather than a Connected App, the OAuth username-password flow is retired on February 20, 2027, and the current API version is v68.0 (Winter '27).
Key Takeaways
- The Salesforce REST API exposes every standard and custom object as a resource under /services/data/vXX.X/sobjects/, with SOQL queries at /query and bulk-style operations through composite resources.
- Register an External Client App, not a Connected App. Creating Connected Apps has been restricted since Spring '26, and Salesforce plans to end support for legacy Connected Apps in Summer '27.
- Use the OAuth 2.0 Client Credentials flow for server-to-server integrations, JWT Bearer for certificate-based access, and Web Server with PKCE for apps that act on behalf of a signed-in user. The username-password flow stops working on February 20, 2027 and is already blocked in orgs created from Summer '26 onward.
- A query returns at most 2,000 records per response. Follow nextRecordsUrl until done is true or you will silently lose data.
- Daily API allocations are org-wide: 15,000 calls in Developer Edition, 100,000 plus 1,000 per Salesforce license in Enterprise Edition, and 100,000 plus 5,000 per license in Unlimited and Performance. Read the Sforce-Limit-Info header on every response.
- Teams that need Salesforce data in a warehouse, or warehouse data back in Salesforce, without maintaining API code can use Integrate.io's Salesforce connector, which authenticates through OAuth, reads through Bulk API 2.0 and SOQL, writes with upsert on external IDs and syncs on schedules as frequent as every 60 seconds.
In this guide
- Which Salesforce API should you use?
- Prerequisites
- Step 1: Create an External Client App
- Step 2: Choose an OAuth flow and get an access token
- Step 3: Make your first REST API requests (Postman and Python)
- Step 4: Handle responses, errors and pagination
- Step 5: Keep data in sync
- Salesforce API limits in 2027
- Security best practices
- Common mistakes to avoid
- When to build on the REST API and when to use a platform
- Salesforce integration without API code: how Integrate.io does it
- FAQs
Which Salesforce API Should You Use?
Salesforce publishes several data APIs. The REST API is the right default for record-level work from web, mobile and server applications, but it is not the right tool for every job. Pick by volume and pattern before you write a line of code.
| API | Best for | Protocol and format | Notes for 2027 |
|---|---|---|---|
| REST API | CRUD on records, SOQL queries, describe calls, most new integrations | HTTPS, JSON (XML optional) | Synchronous; 2,000 records per query response; composite resources batch up to 25 subrequests or 200 records in one call |
| SOAP API | Legacy enterprise systems with WSDL-based tooling | HTTPS, XML | Same objects and limits as REST; avoid for new work unless the other system only speaks SOAP |
| Bulk API 2.0 | Loading or extracting tens of thousands to millions of records | HTTPS, CSV jobs | Asynchronous; jobs are processed in batches by Salesforce; counts toward the same daily request allocation |
| Pub/Sub API | Event-driven integration: Change Data Capture and Platform Events | gRPC, Avro | Salesforce's current event API; the older Streaming API (CometD) still works but Pub/Sub is where new features land |
| GraphQL API | Fetching nested related data for UIs in one request | HTTPS, GraphQL | Reduces over-fetching; not every object is exposed yet |
| Composite resources (REST) | Reducing round trips: create a parent and children in one call | HTTPS, JSON |
/composite, /composite/batch, /composite/sobjects, /composite/graph; one call against your limit |
| Apex REST | Custom endpoints with business logic inside Salesforce | HTTPS, JSON | Exposed at /services/apexrest/; see our guide to Salesforce Apex integration |
A good rule: use the REST API for anything interactive or under a few thousand records per run, Bulk API 2.0 above that, and Pub/Sub when you need to react to changes rather than poll for them. Salesforce's own guidance on the dividing line between REST and Bulk is about 2,000 records per operation. If you are evaluating integration tools rather than building, our comparison of Salesforce middleware integration tools covers that route.
Prerequisites
- A Salesforce org with API access. Enterprise, Unlimited, Performance and Developer Editions include the API. Professional Edition needs the API add-on. For practice, sign up for a free Developer Edition org at developer.salesforce.com/signup.
- System Administrator or "Manage Connected Apps" permission in that org, because you will register an External Client App in Setup.
- An integration user. Create a dedicated user with a least-privilege profile or permission set. Client-credentials tokens run as this user, and API usage is attributed to it.
- Your org's My Domain URL (for example https://acme.my.salesforce.com). Token requests and API calls should go to this host, not the generic login host. Sandboxes use https://acme--dev.sandbox.my.salesforce.com.
- A client. Postman, cURL, or Python 3 with requests and simple-salesforce 1.12 or later.
- Basic HTTP and JSON knowledge. You should be comfortable reading status codes and request headers.
Step 1: Create an External Client App
An External Client App (ECA) is the OAuth client that represents your integration inside Salesforce. It replaces the Connected App for new integrations. Since Spring '26, Salesforce restricts creating new Connected Apps by default and recommends External Client Apps instead; existing Connected Apps keep working, but Salesforce has said it plans to end support for legacy Connected Apps in Summer '27, and the App Manager offers a migration option for eligible apps.
- In Salesforce, click the gear icon and open Setup.
- In the Quick Find box, enter External Client App Manager and open it.
- Click New External Client App. Enter a name (for example "Warehouse Sync"), an API name and a contact email. Leave the distribution state as Local unless you are packaging the app for other orgs.
- Expand API (Enable OAuth Settings) and select Enable OAuth.
- Enter a Callback URL. The field is required even for flows that never redirect; for a server-to-server integration a placeholder such as https://localhost/callback is fine. For Postman's browser-based flow use https://oauth.pstmn.io/v1/callback.
- Under Selected OAuth Scopes, add only what the integration needs. For data integration that is usually Manage user data via APIs (api), plus Perform requests at any time (refresh_token, offline_access) if you use a flow that issues refresh tokens. Do not add Full access (full).
- Under Flow Enablement, select Enable Client Credentials Flow (or the flow you chose in Step 2). Save.
- Open the app's Policies tab, edit OAuth Policies, and in Client Credentials Flow set Run As to your integration user. Every token issued through this flow executes with that user's permissions.
- Open Settings, expand OAuth Settings and click Consumer Key and Secret. Copy both into your secret manager. The Consumer Key is your OAuth client_id and the Consumer Secret is your client_secret.
Two more settings worth knowing: IP Relaxation under OAuth Policies controls whether API calls from this app must come from your org's trusted IP ranges, and Permitted Users can restrict the app to pre-authorized profiles or permission sets. For a production integration, keep IP restrictions enforced and allowlist the integration's egress addresses.
If your org already has a Connected App for this integration, you do not have to recreate it today. It still lives under Setup > Apps > App Manager, as in the screenshots below. What you do have to change is the OAuth flow: Connected Apps that rely on the username-password flow will stop receiving tokens on February 20, 2027, and External Client Apps do not support that flow at all.
Step 2: Choose an OAuth Flow and Get an Access Token
Every REST call carries an access token in the Authorization: Bearer header. How you obtain that token depends on who the integration acts for.
| OAuth 2.0 flow | Use it when | User interaction | Status in 2027 |
|---|---|---|---|
| Client Credentials | Server-to-server integrations, middleware, scheduled jobs | None; runs as the "Run As" integration user | Recommended for data integration |
| JWT Bearer | Server-to-server where you prefer a certificate to a shared secret, or need to act as specific pre-authorized users | None after one-time user pre-authorization | Supported; requires certificate management |
| Web Server (authorization code) with PKCE | Web apps where a person signs in to Salesforce and the app acts for them | Browser login and consent once; refresh tokens afterward | Supported; the standard for user-facing apps |
| Device flow | CLIs and devices without a browser | User enters a code on another device | Supported |
| Username-Password | Nothing new | None | Blocked in orgs created Summer '26 or later; retired for all orgs on February 20, 2027 |
For a data pipeline, use Client Credentials. Send a POST to your My Domain token endpoint with the key and secret from Step 1:
curl -X POST https://acme.my.salesforce.com/services/oauth2/token \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CONSUMER_KEY" \
-d "client_secret=YOUR_CONSUMER_SECRET"
A successful response looks like this:
{
"access_token": "00D5g000...",
"instance_url": "https://acme.my.salesforce.com",
"id": "https://login.salesforce.com/id/00D5g.../0055g...",
"token_type": "Bearer",
"issued_at": "1792800000000",
"signature": "..."
}
Use instance_url as the base for every subsequent call. Client-credentials tokens expire according to the app's session policy and the flow does not issue refresh tokens, so request a new token when you receive a 401 with INVALID_SESSION_ID. For a sandbox, point the token request at the sandbox My Domain (or test.salesforce.com if My Domain is not configured) and use the sandbox's own Consumer Key and Secret; External Client Apps and their credentials are per-org.
Step 3: Make Your First REST API Requests
All REST resources live under {instance_url}/services/data/{version}/. Salesforce ships three API versions a year, one per release: Spring '26 is v66.0, Summer '26 is v67.0 and Winter '27 is v68.0. A GET to /services/data/ with no version lists every version your org supports. Use the newest version your tooling has been tested against and keep it in configuration, not in code.
Using Postman
Salesforce maintains an official Salesforce Platform APIs collection in the Postman public workspace of the Salesforce Developers team. Fork it, set the collection variables (url to your My Domain, clientId and clientSecret from Step 1) and run the Client Credentials request under the Auth folder; the collection stores the returned token as a variable for the other requests. If you prefer to build requests by hand:
- Create a POST request to https://acme.my.salesforce.com/services/oauth2/token. In the Body tab choose x-www-form-urlencoded and add grant_type, client_id and client_secret. Send it and copy access_token from the response.
- Create a GET request to https://acme.my.salesforce.com/services/data/v68.0/query?q=SELECT+Id,Name+FROM+Account+LIMIT+5.
- On the Authorization tab choose Bearer Token and paste the access token.
- Send. A 200 response returns totalSize, done and a records array.
Using Python
The simple-salesforce library (version 1.12.10 as of July 2026) supports the Client Credentials flow directly. Install it and authenticate with the key, secret and your My Domain host:
pip install simple-salesforce requests
from simple_salesforce import Salesforce
sf = Salesforce(
consumer_key="YOUR_CONSUMER_KEY",
consumer_secret="YOUR_CONSUMER_SECRET",
domain="acme.my", # from https://acme.my.salesforce.com
)
# SOQL query
result = sf.query("SELECT Id, Name, Industry FROM Account WHERE Industry = 'Technology' LIMIT 5")
for account in result["records"]:
print(account["Id"], account["Name"])
# Create, update, upsert, delete
new_id = sf.Account.create({"Name": "Northwind Traders", "Industry": "Retail"})["id"]
sf.Account.update(new_id, {"Phone": "415-555-0100"})
sf.Account.upsert("External_Id__c/NW-001", {"Name": "Northwind Traders"})
sf.Account.delete(new_id)
For a certificate-based integration, the same library accepts username, consumer_key and privatekey_file for the JWT Bearer flow. Add domain="test" or your sandbox My Domain for a sandbox.
If you would rather see the raw HTTP, here are the same operations with requests:
import requests
base = "https://acme.my.salesforce.com/services/data/v68.0"
headers = {"Authorization": f"Bearer {access_token}", "Content-Type": "application/json"}
# Describe an object (fields, types, picklist values)
requests.get(f"{base}/sobjects/Account/describe", headers=headers)
# Query
requests.get(f"{base}/query", params={"q": "SELECT Id, Name FROM Contact LIMIT 200"}, headers=headers)
# Create: 201 Created with {"id": "...", "success": true}
requests.post(f"{base}/sobjects/Lead", json={"LastName": "Reyes", "Company": "Acme"}, headers=headers)
# Update: 204 No Content (REST uses PATCH, not PUT, for records)
requests.patch(f"{base}/sobjects/Lead/00Q5g000001abcd", json={"Status": "Working"}, headers=headers)
# Upsert by external ID: 201 if created, 204 if updated
requests.patch(f"{base}/sobjects/Account/External_Id__c/NW-001", json={"Name": "Northwind Traders"}, headers=headers)
# Delete: 204
requests.delete(f"{base}/sobjects/Lead/00Q5g000001abcd", headers=headers)
Three details save a lot of debugging. Updates use PATCH; a PUT to an sObject record returns 405. Upsert on an external ID field is the safest way to load from another system because it is idempotent: run it twice and you get the same records, not duplicates. And a POST that violates a validation rule still returns 400 with the rule's message, so log the body.
Composite resources: fewer round trips
Each REST call counts against your daily allocation, so batch where you can. The composite resources all count as one call:
- POST /composite/sobjects creates up to 200 records in one request; PATCH /composite/sobjects updates 200; PATCH /composite/sobjects/Account/External_Id__c upserts 200 by external ID; DELETE /composite/sobjects?ids=... deletes 200. Set "allOrNone": true to roll back the whole batch on any failure.
- POST /composite runs up to 25 subrequests in sequence and lets later subrequests reference earlier results (@{refAccount.id}), which is how you create an Account and its Contacts in one call.
- POST /composite/batch runs up to 25 independent subrequests.
- POST /composite/graph runs multiple composite graphs with up to 500 nodes in total.
POST /services/data/v68.0/composite/sobjects
{
"allOrNone": true,
"records": [
{"attributes": {"type": "Account"}, "Name": "Acme Robotics", "Industry": "Manufacturing"},
{"attributes": {"type": "Account"}, "Name": "Globex", "Industry": "Energy"}
]
}
Step 4: Handle Responses, Errors and Pagination
Status codes
| Status | Meaning | What to do |
|---|---|---|
| 200 OK | Query or GET succeeded | Parse the body; check done on queries |
| 201 Created | Record created | Store the returned id
|
| 204 No Content | Update, upsert of an existing record, or delete succeeded | Nothing to parse |
| 300 Multiple Choices | Upsert external ID matched more than one record | Fix the duplicate before retrying |
| 400 Bad Request | Malformed SOQL, bad field name, validation rule, required field missing | Read errorCode and fields; do not retry unchanged |
| 401 Unauthorized | Token expired or revoked (INVALID_SESSION_ID) | Request a new token and retry once |
| 403 Forbidden | Daily limit hit (REQUEST_LIMIT_EXCEEDED) or object access denied |
Back off until the rolling 24-hour window frees capacity, or fix permissions |
| 404 Not Found | Wrong resource, wrong ID, or record deleted | Verify the URI and version |
| 414 or 431 | URI or headers over 16,384 bytes | Shorten the SOQL or move to a POST-based composite call |
| 500 Internal Server Error | Salesforce-side error | Retry with exponential backoff |
Error responses are a JSON array, which surprises people on first contact:
[
{
"message": "Required fields are missing: [LastName]",
"errorCode": "REQUIRED_FIELD_MISSING",
"fields": ["LastName"]
}
]
Pagination
A query response contains at most 2,000 records. When there are more, done is false and nextRecordsUrl points to the next batch. Keep requesting that URL until done is true. You can lower the batch size with the Sforce-Query-Options: batchSize=500 header (200 minimum, 2,000 maximum), and Salesforce may return fewer records than requested when it decides that performs better. Integrations that stop at the first response are the single most common source of "missing records" tickets.
url = f"{base}/query?q=SELECT+Id,Name+FROM+Contact"
records = []
while url:
page = requests.get(url, headers=headers).json()
records.extend(page["records"])
url = f"{instance_url}{page['nextRecordsUrl']}" if not page["done"] else None
Reading your remaining allocation
Every REST response includes a Sforce-Limit-Info header such as api-usage=12345/115000. Log it. For a fuller picture, GET /services/data/v68.0/limits returns the daily API request allocation, Bulk API job limits, data storage and more in one call.
Step 5: Keep Data in Sync
A working request is the easy part. A reliable integration decides how changes move after the first load.
- Pick a direction per object. Salesforce to warehouse for reporting is one-way. Lead scores or product usage flowing back into Salesforce is a second, separate pipeline (this is what reverse ETL means). Bidirectional sync of the same field is possible but needs a conflict rule.
- Load incrementally. Filter on SystemModstamp > :last_run (it changes on system and user edits, unlike LastModifiedDate) and store the high-water mark after each run. For objects where that is awkward, GET /sobjects/Account/updated/?start=...&end=... and /deleted/ return IDs changed or deleted in a window of up to 30 days.
- Capture deletes. The /queryAll resource includes records in the Recycle Bin with IsDeleted = true, which a normal /query hides.
- Go event-driven when latency matters. Enable Change Data Capture for the objects you care about and subscribe through the Pub/Sub API; each change event carries the changed fields and a replay ID so you can resume after an outage. Our guide to change data capture in Salesforce walks through the setup.
- Switch to Bulk API 2.0 for big runs. Initial loads, backfills and nightly extracts of more than a few thousand records belong in a Bulk job, not a loop of REST calls. PK chunking splits very large objects into ranges so each query completes.
- Make writes idempotent. Upsert on an external ID so a re-run after a failure cannot create duplicates.
- Respect the schema. Call /describe on a schedule and alert when a field you map disappears or changes type; admins add and remove fields without telling integration owners.
Salesforce API Limits in 2027
The REST API shares one org-wide allocation of inbound calls per rolling 24 hours with the SOAP API, Bulk API, Bulk API 2.0 and most Connect REST APIs. The allocation is not per user. Salesforce's current figures:
| Edition | Calls per license per 24 hours | Total per 24 hours |
|---|---|---|
| Developer Edition | n/a | 15,000 |
| Enterprise Edition, Professional Edition with API access | 1,000 per Salesforce or Salesforce Platform license (200 for Lightning Platform One App and Partner Community, 10 for login-based community licenses) | 100,000 + (licenses x calls per license) + purchased add-ons |
| Unlimited and Performance Editions | 5,000 per Salesforce or Salesforce Platform license | 100,000 + (licenses x calls per license) + purchased add-ons |
| Full Sandbox (not template-based) | n/a | 5,000,000 |
So an Enterprise Edition org with 15 Salesforce licenses gets 115,000 calls a day, and a Developer Edition org that spends 14,500 calls by 5 a.m. has 500 left until the window rolls. Other limits that bite integrations:
- Concurrent long-running requests: 25 calls lasting 20 seconds or more at once in production orgs and sandboxes, 5 in Developer Edition and trial orgs. Exceed it and you get REQUEST_LIMIT_EXCEEDED until the count drops.
- Timeout: 10 minutes per REST or SOAP call, applied to an entire composite request rather than each subrequest. Query calls are governed by SOQL limits and return QUERY_TIMEOUT.
- URI and headers: 16,384 bytes combined.
- Soft limit: paid production orgs can occasionally exceed the daily allocation up to a hard cap. Salesforce says not to rely on it, and it does not apply to Developer Edition, trials or sandboxes.
To stay inside the allocation: read Sforce-Limit-Info, turn on API Usage Notifications in Setup to email an admin at a threshold, check System Overview for the last 24 hours, use composite resources and Bulk API 2.0 instead of per-record calls, and filter SOQL to changed records only. Managed packages installed in your org consume the same allocation. If a vendor's connector burns through calls, that is a vendor problem to raise before buying add-on blocks.
Security Best Practices
- Dedicated integration user with a permission set that grants only the objects and fields the pipeline touches. Set it as the Client Credentials "Run As" user. Never run integrations as an admin.
-
Minimum scopes.
apiplusrefresh_tokenif needed. Notfull. - Secrets in a vault, not in code, notebooks or CI logs. Rotate the Consumer Secret when staff change, and revoke tokens from the ECA's OAuth Usage page if a key leaks.
- Keep IP restrictions on. Leave IP Relaxation enforced and add your integration's egress addresses to Trusted IP Ranges or the integration user's Login IP Ranges.
- HTTPS only, TLS 1.2 or later. Salesforce rejects anything less.
- Audit. Login History shows every token issued; Event Monitoring (where licensed) records API calls, queries and exports per user. Review both for the integration user monthly.
- Treat exported data as regulated. If Salesforce holds health, payment or EU personal data, the system you copy it into inherits those obligations. Our guide to data security management covers controls for the downstream side.
Common Mistakes to Avoid
-
Still using the username-password flow. Any script with
grant_type=password, or asecurity_tokenin its config, stops working on February 20, 2027. Move it to Client Credentials or JWT Bearer now, while you can test the switch calmly. - Ignoring pagination. Reading only the first 2,000 records is silent data loss.
- Hardcoding an old API version. Old versions keep working for years, but new fields and objects may not appear in them and behavior changes between versions. Keep the version in configuration and move it forward on a schedule.
-
Polling instead of subscribing. Querying every minute "to be safe" burns the allocation. Use Change Data Capture and the Pub/Sub API, or an incremental filter on
SystemModstamp. -
Per-record calls for bulk work. 50,000 individual POSTs is 50,000 calls; the same load through
/composite/sobjectsis 250 calls, and through Bulk API 2.0 it is a handful. - Skipping the sandbox. Validation rules, triggers and flows behave differently from what the field list suggests. Test writes in a sandbox against a recent refresh.
- Over-scoping and shared admin logins. Both turn a leaked key into a full org compromise.
- No token refresh logic. Handle 401 by re-authenticating once, then failing loudly.
- Using PUT. Record updates are PATCH. PUT is only valid on a few resources such as blob uploads.
When to Build on the REST API and When to Use a Platform
Building directly against the REST API is the right call when the integration is part of your product (a customer-facing app that reads the user's own Salesforce data), when you need custom Apex endpoints, or when the data volume is small and the engineering team already owns the service. You get full control and no licensing cost beyond engineering time.
The cost shows up in year two. Someone has to own OAuth changes like the ones in this guide, API version upgrades, schema drift, retry logic, the pagination loop, Bulk API job management, monitoring and the on-call rotation when a nightly load fails at 3 a.m. For the most common Salesforce integration jobs, which are moving Salesforce objects into a warehouse, loading files and warehouse tables back into Salesforce, and keeping two systems in step, that maintenance is undifferentiated work. An integration platform handles it for a flat fee, and your team's Salesforce expertise goes into the data model instead of the plumbing. Our round-up of Salesforce ETL tools and the broader Salesforce data integration landscape cover the options.
Salesforce Integration Without API Code: How Integrate.io Does It
Integrate.io is a cloud data pipeline platform with a native Salesforce connector that works as both a source and a destination, so everything this guide describes by hand happens inside a visual pipeline. The connector does the OAuth handshake, Bulk API 2.0 jobs, SOQL, pagination, incremental bookmarks, upserts, retries and monitoring, and the same pipeline can connect Salesforce to any of 150+ other sources and destinations.
Authentication. You create a Salesforce connection, choose production or sandbox, sign in through the standard Salesforce login window and authorize the Integrate.io app. There are no keys to store and no flow migration to schedule when Salesforce changes its OAuth policy. Connections route through Integrate.io's secure proxy, so if your org enforces Login IP Ranges or Trusted IP Ranges you allowlist Integrate.io's published addresses once. The Salesforce source documentation covers the permission an admin may need to grant ("Approve Uninstalled Connected Apps", or "Use Any API Client" where API Access Control is on).
Reading from Salesforce. The ETL source reads standard and custom objects through Bulk API 2.0, with your choice of supported API version. You can extract a whole object or write a SOQL query, add a where clause, and run incremental loads so each run picks up only records changed since the last one. For very large objects, PK chunking splits the extraction into ID ranges so no single query times out, and query-all mode includes deleted records so your warehouse can mirror the Recycle Bin.
Writing to Salesforce. The Salesforce destination supports append, update, upsert, delete and hard delete. Upsert keys on either the Salesforce internal ID or an external ID field, loads in batches of up to 1,000 records, lets you set a maximum error count before the job stops, and writes separate files of failed and successful records so you can see exactly which rows Salesforce rejected and why. That is the same idempotent pattern recommended in Step 5, without writing the loop.
Continuous sync. The ELT and CDC Salesforce source supports an initial full sync followed by continuous incremental sync. For Account, Campaign, Case, Contact, Lead, Opportunity, Task, WorkOrder, Quote, ServiceContract and every custom object, changes stream through Salesforce's Streaming API rather than polling, which keeps your warehouse copy minutes behind Salesforce without spending the daily allocation on repeated queries. The ELT/CDC Salesforce documentation lists the supported objects. Our post on CDC in Salesforce covers attachments and other edge cases.
Beyond Sales Cloud. Integrate.io also connects Salesforce Marketing Cloud (REST and SOAP) and Pardot as sources, and writes into Salesforce Data Cloud through its Ingestion API, so marketing engagement, CRM records and Data Cloud profiles can be joined in one pipeline.
Transformations and destinations. Between source and destination you get 220+ low-code transformation steps for joins, filters, lookups, deduplication, date and string functions and validation, plus SQL and Python where you need them. Pipelines land data in Snowflake, BigQuery, Redshift, Databricks, SQL Server, PostgreSQL and more, and reverse ETL sends scored or enriched records back to Salesforce. Schedules run as often as every 60 seconds, and alerts go to email, Slack, Teams, PagerDuty or a webhook when a job fails or runs long.
Pricing and onboarding. The Core plan is $1,999 a month flat with unlimited pipelines, connectors and data volume, so a growing Salesforce org does not change the bill. There is a 14-day free trial with no card, 24/7 support, and a 30-day onboarding with a Solution Engineer who builds the first pipelines with you. Integrate.io completes an annual SOC 2 audit, signs HIPAA BAAs and is GDPR and CCPA compliant; data moves through ephemeral processing and is not stored on the platform (details on the security page).
Results. The Boston Red Sox replaced a manual Salesforce data process with Integrate.io pipelines and moved data 8x faster with 88% less latency. In the team's words:
"In the first eight months of using Integrate.io, we increased our inbound ticket inquiry conversions by 15%." Ben Nickerson, Senior Manager, CRM, Boston Red Sox
The Leukaemia Foundation cut data processing time by 90% after moving its Salesforce pipelines to the platform. See the Salesforce team solutions page for the full list of supported workflows, or book a demo to walk through yours.
FAQs
What is the Salesforce REST API?
The Salesforce REST API is an HTTPS interface that exposes Salesforce objects, records, metadata and queries as resources under /services/data/{version}/. Clients authenticate with OAuth 2.0 and use GET, POST, PATCH and DELETE with JSON payloads to read and change data. It is the default API for web, mobile and server integrations.
How do I authenticate to the Salesforce REST API in 2027?
Register an External Client App with OAuth enabled, then use the Client Credentials flow (server-to-server), the JWT Bearer flow (certificate-based) or the Web Server flow with PKCE (user-facing apps) to obtain an access token, and send it as Authorization: Bearer. The username-password flow is retired on February 20, 2027 and is already blocked in orgs created from Summer '26.
Can I still create a Connected App?
Not by default. Salesforce restricted creating new Connected Apps in Spring '26 and recommends External Client Apps. Existing Connected Apps continue to work, but Salesforce plans to end support for legacy Connected Apps in Summer '27, and App Manager offers a migration option for eligible apps.
What is the difference between the Salesforce REST API and SOAP API?
Both expose the same objects and share the same daily allocation. REST uses lightweight JSON over HTTPS and is simpler to call from modern languages and tools; SOAP uses XML envelopes defined by a WSDL and suits older enterprise middleware. Choose REST for new work unless the other system only supports SOAP.
What are the Salesforce API rate limits?
Allocations are per org per rolling 24 hours: 15,000 calls in Developer Edition; 100,000 plus 1,000 per Salesforce license in Enterprise Edition and Professional Edition with API access; 100,000 plus 5,000 per license in Unlimited and Performance Editions; 5,000,000 in a Full Sandbox. Separately, only 25 requests lasting 20 seconds or more may run at once (5 in Developer Edition), and each call times out at 10 minutes. The Sforce-Limit-Info response header and the /limits resource show current usage.
How many records does a REST API query return?
Up to 2,000 per response. If more match, the response has done: false and a nextRecordsUrl; request it repeatedly until done is true. You can set a smaller batch with the Sforce-Query-Options: batchSize header (200 to 2,000).
When should I use Bulk API 2.0 instead of the REST API?
For loads and extracts in the tens of thousands of records or more, such as initial migrations, backfills and nightly full extracts. Bulk API 2.0 runs asynchronously as jobs on CSV data and uses far fewer calls than looping through REST. For a few thousand records or interactive work, REST or its composite resources are simpler.
How do I get data from Salesforce using the REST API?
- Create an External Client App and copy its Consumer Key and Secret.
- POST to /services/oauth2/token with grant_type=client_credentials to get an access token.
- Send a GET to /services/data/v68.0/query?q=SELECT+Id,Name+FROM+Account with Authorization: Bearer <token>, or fetch one record at /sobjects/Account/{Id}.
- Parse the JSON and follow nextRecordsUrl until done is true.
Can I integrate Salesforce with a data warehouse using the REST API?
Yes. Extract records with SOQL through /query or /queryAll, page through the results and load them into Snowflake, BigQuery, Redshift or Databricks. For recurring, high-volume or many-object syncs, a pipeline platform such as Integrate.io handles the Bulk API jobs, incremental loads, schema changes and retries without custom code.
How often should I sync Salesforce data?
As often as stale data would cause a business problem, and no more often than the allocation allows. Customer-facing applications usually need near-real-time sync through Change Data Capture or a 60-second pipeline schedule; analytics pipelines typically run hourly or nightly with incremental filters on SystemModstamp.
Which Salesforce API should I use for real-time updates?
The Pub/Sub API with Change Data Capture events. It pushes a change event with the modified fields and a replay ID whenever a record changes, so you react to changes instead of polling. The older Streaming API still works through CometD but Pub/Sub is where Salesforce is investing.
What is Salesforce API integration?
Salesforce API integration is connecting Salesforce to external systems through its APIs (REST, SOAP, Bulk, Pub/Sub, GraphQL or Apex REST) so data and events move automatically between them. It covers everything from a web form that creates Leads to a warehouse that mirrors every object nightly and pushes enriched records back.
Related Guides
- What is Salesforce SQL (SOQL)?
- How to integrate Salesforce Apex with other applications
- Mastering Salesforce Apex: a developer's guide
- Salesforce Chatter API vs. Connect API
- Introduction to Salesforce Connect
- 4 ways to improve Salesforce Change Data Capture
- Salesforce PK chunking explained
- CSV to Salesforce: a guide for data teams
- Files to Salesforce: reliable, scalable integration
- Pushing data from a data warehouse to Salesforce
- Salesforce Data Loader: all you need to know
- Integrate.io vs. Salesforce Data Loader
- 5 ways to integrate Salesforce with other platforms
- Best ETL tools for Salesforce data integration
- Top 15 Salesforce connectors for ETL use cases
- Salesforce data migration best practices
- Integrate.io and Heroku Connect
- Best API integration tools
- What is ETL?
Conclusion
Salesforce REST API integration in 2027 comes down to five steps: register an External Client App, pick a supported OAuth flow and get a token, call versioned resources under /services/data/v68.0/, handle status codes and pagination properly, and design the sync so it loads incrementally, writes idempotently and stays inside the org's daily allocation. Get those right and the API is dependable for years.
If the integration you need is Salesforce to a warehouse, files or a warehouse back to Salesforce, or a continuous mirror of your objects, Integrate.io already implements every step above behind a visual pipeline builder. Schedule a demo with a Salesforce integration expert or start the 14-day trial and connect your org in an afternoon.

