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
Pete WardenPete Warden 

How can I enable the REST API?

I'm getting ready to release some PHP example code for the REST API, and I think I'm close but I'm hitting a problem. I've made it through the OAuth dance, but I'm receiving this error response when I actually try to make an API call:

[{"message":"The REST API is currently in pilot, and is not enabled for your organization.","errorCode":"API_DISABLED_FOR_ORG"}]

 

From the previous thread I understand that this is a separate permission from the main API one that's enabled by default for Developer Edition accounts. How can I turn that permission on?

 

Here's the code as it stands:

http://github.com/petewarden/salesforce_restphp_example/blob/master/index.php

 

And here's a live demo:

https://www.openheatmap.com/labs/salesforce_restphp_example/index.php

Pete WardenPete Warden

Thanks for the reply Simon. I'd already registered for the webinar, but I went through the process at https://www.developerforce.com/events/rest_developer_preview/registration.php again. Unfortunately I'm still receiving the same error message, even after waiting 20 minutes for any changes to trickle through.

 

Any thoughts on other things I can try to help track down what's wrong?

newbie102newbie102

I have the same issue :-(

 

Although I have more than one dev account, I am pretty sure that the account through which I registered for the webinar is

the same one I am using to try out the REST explorer.

 

In the webinar it was mentioned that "if it does not work (i.e not enabled), please email <cannot remember>"

 

Anyone know whom I can email ?

 

Thanks

 

alextalext

Hi Pete,

 

Our Dev Evangelist team is checking the process.

 

In the mean time I have enabled your Org.

 

Cheers,

 

--alex

danaledanale

Hey guys,

 

If you've signed up for the Dev Preview but your org wasn't enabled, please email me directly at dle@salesforce.com with your Developer Edition username.

 

Thanks!

Dana

Pete WardenPete Warden

Thanks everyone, I'm now up and running and have released my short guide to getting started with REST version of the API in PHP:

 

http://petewarden.typepad.com/searchbrowser/2010/10/how-to-use-the-new-salesforce-rest-api-from-php.html

abdul.basitabdul.basit

I am trying to use REST API in my Rails application. But I amgettinh the error mentioned below.

 

Databasedotcom::SalesForceError: The REST API is not enabled for this Organization.

 

My Organization id is : 00D90000000bGNb

 

Regards,

Basit Shaikh

rmwrmw

I too am having this issue.  Is it my developer account that needs to be enabled or the account for the user?  I've gone to http://developer.force.com/REST and don't see anything about registration.  Since it's over a year later, I'm assuming that's no longer necessary.  Thanks.

camapdencamapden

Me too,

have you resolve this problem??.

 

Anto RodrigoAnto Rodrigo
Hai
I have faced the same problem now. Can anyone know the procedure to enable the REST API in sales force ??
Prajeesh CPrajeesh C
I am also facing the same problem... in https://localhost/admin/config/salesforce/authorize I am getting a warning :The REST API is not enabled for this Organization." Anyone fixed this issue ?
Anto Rodrigo 7Anto Rodrigo 7
Hai any sales force developers there??
kana vkana v
I am getting this error , "The REST API is not enabled for this Organization " while trying to authorize from my drupal website. Any help in this regard is highly appreciated.
​ 
logesh waran 10logesh waran 10

This may help you to solve the problem.

https://developer.salesforce.com/forums?id=906F0000000ArVTIA0