The error "API is not enabled for this Organization or Partner" appears when an API call is made to a Salesforce org that does not have API access enabled — either at the org edition level or at the user profile level. This article explains how to identify which restriction is causing the error and how to resolve it.
API access is enabled by default for Enterprise, Unlimited, Performance, and Developer editions. Group, Essentials, and Professional edition orgs do not have API enabled by default. Professional edition customers can purchase API access as an add-on.
To find your Salesforce edition, follow the steps in: How to Find Your Salesforce Edition
If your org is on an edition that does not support API, contact Salesforce to discuss upgrading your edition or purchasing the API add-on (for Professional).
If your org edition supports API, verify the API Enabled permission is enabled on the user's profile:
Alternatively, find the user in the All Users list and select their Profile directly.
Select the profile. Scroll down to Administrative Permissions. Enable API Enabled if it is not already checked.
If using the Enhanced User Profile Interface, select the profile, scroll down, and select System Permissions. Enable API Enabled if it is not already selected.
000385535

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.