Salesforce Platform APIs

Number of APIs: 329

The Salesforce Platform APIs collection contains 250+ requests and example responses for the following APIs:

Auth
Bulk (v1 & v2)
Composite
Connect
CPQ
Einstein Prediction Service
Event Platform
GraphQL
Metadata
REST
Subscription Management
Tooling
UI

⚠️ Disclaimer: this collection is not covered by Salesforce support and SLAs.

Get Started

Click the button below and follow the instructions from the following sections: [Run In Qodex]

New Salesforce Users

If you are new to Salesforce, start by obtaining a free Developer Edition Org then, follow the rest of the instructions from this documentation.

You can also watch our Beginner's Mind YouTube series for a tour of the Salesforce Platform (the last episode focuses on APIs).

New Qodex Users

If you are new to Qodex, complete this Trailhead project to setup the collection: Quick Start: Connect Qodex to Salesforce. If you want to learn more about Qodex in general, you can also complete this optional Trailhead badge: Qodex API Client.

Regular Qodex Users

If you are already familiar with Qodex, here are the minimal getting started steps:

  1. If using Qodex Web UI, follow these steps to set up CORS in your Salesforce Org. This is not required when working with the Qodex Desktop app.
  2. Assign a value to the url collection variable based on your Salesforce Org type:

    URLOrg Type
    https://test.salesforce.comSandboxes or Scratch orgs.
    https://login.salesforce.comProduction, Trailhead Playground and Developer Edition orgs.
    Custom My Domain base URLOrg with a custom domain.
  3. Click Get New Access Token from the collection's Authorization tab.

  4. When prompted to do so, log in to your Salesforce org and allow access to Salesforce APIs Collection for Qodex.

  5. Copy the value of the instance_url field from the token details view.

  6. Click Use Token.

  7. Save the value that you copied in the _endpoint variable.

  8. Click Save and you're good to go!

Resources

Check out the documentation for videos and extra information on how to install, update and contribute to the collection.

We also have an demo video on how to setup the collection.

Report issues and ask questions here.

Variables Reference

The collection relies on the following variables:

VariableDescription
_endpointYour Salesforce Org's instance URL.
urlThe URL used for logging in. Either:
- https://test.salesforce.com for sandboxes or Scratch orgs
- https://login.salesforce.com for production, Trailhead Playground and Developer Edition orgs
- your custom My Domain base URL.
versionThe Salesforce API version (e.g.: 50.0).
usernameYour username.
passwordYour password.
secretTokenYour personal security token.
clientIdConnected App client Id.
clientSecretConnected App client secret.
redirectUrlConnected App redirect URL for OAuth 2.0.
initAccessTokenInitial access token for dynamic Connected App registration.
siteCommunity suffix when connecting with an Experience Cloud user.

Only a few of these variables are mandatory. The authentication requests will automatically register and set extra private variables identified with a _ prefix (e.g.: _accessToken, _orgId, _userId...).

  1. Auth-Headless Identity API Demo - Registration - Initialize POST {{url}}{{site}}/services/auth/headless/init/registration

  2. Auth-Headless Identity API Demo - Forgot Password - Change Password POST {{url}}{{site}}/services/auth/headless/forgot_password

  3. Auth-Headless Identity API Demo - Passwordless Login - Initialize POST {{url}}{{site}}/services/auth/headless/init/passwordless/login

  4. Auth-Headless Identity API Demo - Passwordless Login - Authorize POST {{url}}{{site}}/services/oauth2/authorize

  5. Auth-Headless Identity API Demo - Passwordless Login - Token Exchange POST {{url}}{{site}}/services/oauth2/token

  6. Auth-Headless Identity API Demo - Get User Info GET {{url}}{{site}}/services/oauth2/userinfo

  7. Auth-Headless Identity API Demo - Revoke Token POST {{url}}{{site}}/services/oauth2/revoke

  8. Auth-External Client Apps-OAuth Usage - OAuth Usage GET {{url}}{{site}}/services/data/v{{version}}/apps/oauth/usage?page=0&pageSize=100

  9. Auth-External Client Apps-OAuth Usage - OAuth App Users GET {{url}}{{site}}/services/data/v{{version}}/apps/oauth/usage/{{_appId}}/users?page=0&pageSize=100

  10. Auth-External Client Apps-OAuth Usage - OAuth App Users Tokens GET {{url}}{{site}}/services/data/v{{version}}/apps/oauth/usage/{{_appId}}/{{_userId}}/tokens