function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrea BiancoAndrea Bianco 

API: error trying using it

Hello!
I'm starting reading documentation and I want use the JSforce (a JavaScript library).
I'm using the trial for Enterprice Edition
For using the API I read that I have to create a new Connected App with OAuth enable and I have the security token.

When I trying to make a simple query, the system answers with this error:
{ [API_DISABLED_FOR_ORG: The REST API is not enabled for this Organization.]
  name: 'API_DISABLED_FOR_ORG',
  errorCode: 'API_DISABLED_FOR_ORG' }

How can be possible? API are not enabled in trial version?
JayOlayJayOlay
Hi Andrea -- Please ensure you are indeed on an Enterprise Edition (APIs are not enabled for orgs below this level), and that you have the "API Enabled" permission checked: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_concepts_security.htm
Andrea BiancoAndrea Bianco
Hi! Thanks for your answer, but how can I verify that API are enabled? There is an option in the settings?
JayOlayJayOlay
Hi Andrea -- It's a permission in the Setup > Profiles > Admin Permissions.