Skip to main content The new Salesforce certifications experience is live! Visit Trailhead Academy to explore your new certifications homepage.
I had created a connected app and using REST API to access account details, I am getting an error while accessing the API.

 

[

 

       {

 

           "message": "API is not enabled for this Organization or Partner",

 

           "errorCode": "API_DISABLED_FOR_ORG"

 

       }

 

 ]

 

I am using Professional Edition 30 days edition. how to enable access for the same.
24 answers
Loading
  1. Nov 16, 2021, 11:45 PM

    @Bishwambhar Sen thanks for the help here - your comment helped. I created a connected app with a Developer Account (API enabled) + a 30-day free trial account to test the OAuth flow (API not enabled). The OAuth flow worked well but the GET Contacts call I was running always returned the API_DISABLED_FOR_ORG error code as well. I did not understand why at first - in my mind, the free 30-day account didn't need the API enabled. I then replaced the 30-day free trial account by another Developer Account, and didn't get the issue any more. 

     

    So from my understanding, all Salesforce accounts going through the OAuth flow via my app would need to have API Enabled?   

    Is there a way to avoid that? Surely we shouldn't need to ask users to turn on the API, the UX is horrible for such a simple integration

0/9000