Salesforce Consumer Key & Secret: Step-by-Step Setup Guide

How to Get Consumer Key and Consumer Secret for Automating Salesforce?

June 9, 2026

/Iffat Ara Khanam/

Salesforce, developed in 1999, is now a global leader in enterprise cloud computing. It assists companies of all sizes and industries worldwide to work more efficiently.

The Consumer Key and Consumer Secret are used in Salesforce as part of the OAuth authentication process to enable safe access to Salesforce APIs. The Consumer Key is a one-of-a-kind identification generated by Salesforce when you create a connected app. It is used to identify the application attempting to connect to the Salesforce APIs. The Consumer Secret is a private key that is generated in conjunction with the Consumer Key. It serves as a secret key for the application attempting to access the Salesforce APIs.

In the OAuth process, the Consumer Key and Consumer Secret are used together to securely authenticate and authorize an application to access the Salesforce APIs. This contributes to the security and privacy of sensitive data stored in Salesforce.

Salesforce testing is vital for organizations to ensure that they can continue to operate their critical operations. Opkey is the ideal testing solution for Salesforce that reduces the risk of application downtime.

To Retrieve the Consumer Key and Secret in Opkey, Follow These Steps:

To set up a Salesforce Opkey OAuth2 connection, you must first register your Auth0 tenant in their Administer section.

Log into Salesforce. Click on Settings > Setup in the upper right, next to your account name.

1. Register a New App

Navigate to Platform Tools > Apps. Under App Manager, click New Connected App:

2. Complete the New Connected App form

3. Get your Consumer Key and Consumer Secret

Once your app is registered, the page will display your Consumer Key and Consumer Secret:

4. Copy your Consumer Key and Consumer Secret

This will help Opkey connect to Salesforce APIs for automation.

Get Consumer Key and Consumer Secret for Automating Salesforce API