Salesforce API

By Abhishek Kumar
8 min read
CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS.

Table of Contents

CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS.

API Overview

Salesforce is a cloud-based customer relationship management (CRM) platform that enables businesses to manage their sales, marketing, customer service, and other operations. It offers a comprehensive suite of features including contact management, lead generation, opportunity tracking, forecasting, and reporting. Salesforce's intuitive user interface and customizable dashboards provide users with a real-time view of their business performance. It also integrates with various third-party applications and services, allowing businesses to extend its functionality to meet their specific needs.

The Salesforce API provides developers with programmatic access to the Salesforce platform. It enables them to integrate Salesforce with other systems, create custom applications, and automate business processes. The API documentation provides detailed information on the available endpoints, data models, and supported operations. Salesforce offers REST APIs for accessing data and performing CRUD (create, read, update, delete) operations. It also supports webhooks for receiving real-time notifications of changes to Salesforce records. To ensure the stability and performance of the platform, Salesforce imposes rate limits on API calls. Developers must adhere to these limits to avoid service disruptions.

API Request Limits

Free

100 requests per day

Premium

1000 requests per day

Business

5000 requests per day

Enterprise

Custom limits

APIs

Account

Method: GET

Description: Retrieves a single account..

Endpoint: /services/data/v52.0/sobjects/Account/{id}

Parameters: authorization

Account

Method: POST

Description: Creates a new account..

Endpoint: /services/data/v52.0/sobjects/Account/

Parameters: authorization

Account

Method: GET

Description: Retrieves a list of recently created or updated accounts..

Endpoint: /services/data/v52.0/sobjects/Account/recent

Parameters: authorization

Account

Method: PATCH

Description: Updates an existing account..

Endpoint: /services/data/v52.0/sobjects/Account/{id}

Parameters: authorization

Account

Method: DELETE

Description: Deletes an existing account..

Endpoint: /services/data/v52.0/sobjects/Account/{id}

Parameters: authorization

ActivityHistory

Method: GET

Description: Retrieves the activity history events associated with a specific sObject..

Endpoint: /services/data/v52.0/sobjects/{objectType}/{id}/activityhistories

Parameters: authorization

ActivityHistory

Method: POST

Description: Creates an activity history event for a specific sObject..

Endpoint: /services/data/v52.0/sobjects/{objectType}/{id}/activityhistories

Parameters: authorization

Campaign

Method: GET

Description: Retrieves a single campaign..

Endpoint: /services/data/v52.0/sobjects/Campaign/{id}

Parameters: authorization

Campaign

Method: POST

Description: Creates a new campaign..

Endpoint: /services/data/v52.0/sobjects/Campaign/

Parameters: authorization

Campaign

Method: GET

Description: Retrieves a list of recently created or updated campaigns..

Endpoint: /services/data/v52.0/sobjects/Campaign/recent

Parameters: authorization

Campaign

Method: PATCH

Description: Updates an existing campaign..

Endpoint: /services/data/v52.0/sobjects/Campaign/{id}

Parameters: authorization

Campaign

Method: DELETE

Description: Deletes an existing campaign..

Endpoint: /services/data/v52.0/sobjects/Campaign/{id}

Parameters: authorization

CampaignMember

Method: GET

Description: Retrieves a single campaign member..

Endpoint: /services/data/v52.0/sobjects/CampaignMember/{id}

Parameters: authorization

CampaignMember

Method: POST

Description: Creates a new campaign member..

Endpoint: /services/data/v52.0/sobjects/CampaignMember/

Parameters: authorization

CampaignMember

Method: GET

Description: Retrieves a list of recently created or updated campaign members..

Endpoint: /services/data/v52.0/sobjects/CampaignMember/recent

Parameters: authorization

CampaignMember

Method: PATCH

Description: Updates an existing campaign member..

Endpoint: /services/data/v52.0/sobjects/CampaignMember/{id}

Parameters: authorization

CampaignMember

Method: DELETE

Description: Deletes an existing campaign member..

Endpoint: /services/data/v52.0/sobjects/CampaignMember/{id}

Parameters: authorization

Case

Method: GET

Description: Retrieves a single case..

Endpoint: /services/data/v52.0/sobjects/Case/{id}

Parameters: authorization

Case

Method: POST

Description: Creates a new case..

Endpoint: /services/data/v52.0/sobjects/Case/

Parameters: authorization

Case

Method: GET

Description: Retrieves a list of recently created or updated cases..

Endpoint: /services/data/v52.0/sobjects/Case/recent

Parameters: authorization

Case

Method: PATCH

Description: Updates an existing case..

Endpoint: /services/data/v52.0/sobjects/Case/{id}

Parameters: authorization

Case

Method: DELETE

Description: Deletes an existing case..

Endpoint: /services/data/v52.0/sobjects/Case/{id}

Parameters: authorization

CaseComment

Method: GET

Description: Retrieves a single case comment..

Endpoint: /services/data/v52.0/sobjects/CaseComment/{id}

Parameters: authorization

CaseComment

Method: POST

Description: Creates a new case comment..

Endpoint: /services/data/v52.0/sobjects/CaseComment/

Parameters: authorization

CaseComment

Method: GET

Description: Retrieves a list of recently created or updated case comments..

Endpoint: /services/data/v52.0/sobjects/CaseComment/recent

Parameters: authorization

CaseComment

Method: PATCH

Description: Updates an existing case comment..

Endpoint: /services/data/v52.0/sobjects/CaseComment/{id}

Parameters: authorization

CaseComment

Method: DELETE

Description: Deletes an existing case comment..

Endpoint: /services/data/v52.0/sobjects/CaseComment/{id}

Parameters: authorization

Contact

Method: GET

Description: Retrieves a single contact..

Endpoint: /services/data/v52.0/sobjects/Contact/{id}

Parameters: authorization

Contact

Method: POST

Description: Creates a new contact..

Endpoint: /services/data/v52.0/sobjects/Contact/

Parameters: authorization

Contact

Method: GET

Description: Retrieves a list of recently created or updated contacts..

Endpoint: /services/data/v52.0/sobjects/Contact/recent

Parameters: authorization

Contact

Method: PATCH

Description: Updates an existing contact..

Endpoint: /services/data/v52.0/sobjects/Contact/{id}

Parameters: authorization

Contact

Method: DELETE

Description: Deletes an existing contact..

Endpoint: /services/data/v52.0/sobjects/Contact/{id}

Parameters: authorization

ContactRequest

Method: GET

Description: Retrieves a single contact request..

Endpoint: /services/data/v52.0/sobjects/ContactRequest/{id}

Parameters: authorization

ContactRequest

Method: POST

Description: Creates a new contact request..

Endpoint: /services/data/v52.0/sobjects/ContactRequest/

Parameters: authorization

ContactRequest

Method: GET

Description: Retrieves a list of recently created or updated contact requests..

Endpoint: /services/data/v52.0/sobjects/ContactRequest/recent

Parameters: authorization

ContactRequest

Method: PATCH

Description: Updates an existing contact request..

Endpoint: /services/data/v52.0/sobjects/ContactRequest/{id}

Parameters: authorization

ContactRequest

Method: DELETE

Description: Deletes an existing contact request..

Endpoint: /services/data/v52.0/sobjects/ContactRequest/{id}

Parameters: authorization

ContentDocument

Method: GET

Description: Retrieves a single content document..

Endpoint: /services/data/v52.0/sobjects/ContentDocument/{id}

Parameters: authorization

ContentDocument

Method: POST

Description: Creates a new content document..

Endpoint: /services/data/v52.0/sobjects/ContentDocument/

Parameters: authorization

ContentDocument

Method: GET

Description: Retrieves a list of recently created or updated content documents..

Endpoint: /services/data/v52.0/sobjects/ContentDocument/recent

Parameters: authorization

ContentDocument

Method: PATCH

Description: Updates an existing content document..

Endpoint: /services/data/v52.0/sobjects/ContentDocument/{id}

Parameters: authorization

ContentDocument

Method: DELETE

Description: Deletes an existing content document..

Endpoint: /services/data/v52.0/sobjects/ContentDocument/{id}

Parameters: authorization

ContentVersion

Method: GET

Description: Retrieves a single content version..

Endpoint: /services/data/v52.0/sobjects/ContentVersion/{id}

Parameters: authorization

ContentVersion

Method: POST

Description: Creates a new content version..

Endpoint: /services/data/v52.0/sobjects/ContentVersion/

Parameters: authorization

ContentVersion

Method: GET

Description: Retrieves a list of recently created or updated content versions..

Endpoint: /services/data/v52.0/sobjects/ContentVersion/recent

Parameters: authorization

ContentVersion

Method: PATCH

Description: Updates an existing content version..

Endpoint: /services/data/v52.0/sobjects/ContentVersion/{id}

Parameters: authorization

ContentVersion

Method: DELETE

Description: Deletes an existing content version..

Endpoint: /services/data/v52.0/sobjects/ContentVersion/{id}

Parameters: authorization

Contract

Method: GET

Description: Retrieves a single contract..

Endpoint: /services/data/v52.0/sobjects/Contract/{id}

Parameters: authorization

Contract

Method: POST

Description: Creates a new contract..

Endpoint: /services/data/v52.0/sobjects/Contract/

Parameters: authorization

Contract

Method: GET

Description: Retrieves a list of recently created or updated contracts..

Endpoint: /services/data/v52.0/sobjects/Contract/recent

Parameters: authorization

Contract

Method: PATCH

Description: Updates an existing contract..

Endpoint: /services/data/v52.0/sobjects/Contract/{id}

Parameters: authorization

Contract

Method: DELETE

Description: Deletes an existing contract..

Endpoint: /services/data/v52.0/sobjects/Contract/{id}

Parameters: authorization

Dashboard

Method: GET

Description: Retrieves a single dashboard..

Endpoint: /services/data/v52.0/sobjects/Dashboard/{id}

Parameters: authorization

Dashboard

Method: GET

Description: Retrieves a list of recently created or updated dashboards..

Endpoint: /services/data/v52.0/sobjects/Dashboard/recent

Parameters: authorization

Dashboard

Method: PATCH

Description: Updates an existing dashboard..

Endpoint: /services/data/v52.0/sobjects/Dashboard/{id}

Parameters: authorization

Dashboard

Method: DELETE

Description: Deletes an existing dashboard..

Endpoint: /services/data/v52.0/sobjects/Dashboard/{id}

Parameters: authorization

Document

Method: GET

Description: Retrieves a single document..

Endpoint: /services/data/v52.0/sobjects/Document/{id}

Parameters: authorization

Document

Method: POST

Description: Creates a new document..

Endpoint: /services/data/v52.0/sobjects/Document/

Parameters: authorization

Document

Method: GET

Description: Retrieves a list of recently created or updated documents..

Endpoint: /services/data/v52.0/sobjects/Document/recent

Parameters: authorization

Document

Method: PATCH

Description: Updates an existing document..

Endpoint: /services/data/v52.0/sobjects/Document/{id}

Parameters: authorization

Document

Method: DELETE

Description: Deletes an existing document..

Endpoint: /services/data/v52.0/sobjects/Document/{id}

Parameters: authorization

EmailMessage

Method: GET

Description: Retrieves a single email message..

Endpoint: /services/data/v52.0/sobjects/EmailMessage/{id}

Parameters: authorization

EmailMessage

Method: POST

Description: Creates a new email message..

Endpoint: /services/data/v52.0/sobjects/EmailMessage/

Parameters: authorization

EmailMessage

Method: GET

Description: Retrieves a list of recently created or updated email messages..

Endpoint: /services/data/v52.0/sobjects/EmailMessage/recent

Parameters: authorization

EmailMessage

Method:

Description: .

Endpoint:

Parameters:

FAQ

How can I authenticate to the Salesforce API?

You can authenticate to the Salesforce API using OAuth 2.0, which requires you to obtain an access token from Salesforce.

What are the rate limits for Salesforce API requests?

Salesforce API requests are subject to rate limits to prevent excessive usage. The specific rate limits depend on the type of API request and your organization's settings.

Can I use a sandbox account for API development?

Yes, you can use a sandbox account for API development. Sandbox accounts provide a safe and isolated environment to test and develop your API integrations without affecting production data.

How do I create a developer account on Salesforce?

To create a developer account on Salesforce, you can visit the Salesforce Developer Registration page and follow the instructions provided.

What is the difference between REST API and SOAP API in Salesforce?

The REST API is a modern, lightweight web service interface that uses HTTP requests and JSON data formats, while the SOAP API is an older, XML-based web service interface.

Last Update: August 28, 2024