Reply
Contributor
Pete Warden
Posts: 4

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

Moderator
SimonF
Posts: 7,679

Re: How can I enable the REST API?

Contributor
Pete Warden
Posts: 4

Re: How can I enable the REST API?

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?

Contributor
newbie102
Posts: 8

Re: How can I enable the REST API?

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

 

Regular Contributor
alext
Posts: 40

Re: How can I enable the REST API?

Hi Pete,

 

Our Dev Evangelist team is checking the process.

 

In the mean time I have enabled your Org.

 

Cheers,

 

--alex

Administrator
danale
Posts: 96

Re: How can I enable the REST API?

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

Contributor
Pete Warden
Posts: 4

Re: How can I enable the REST API?

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....

Newbie
abdul.basit
Posts: 1

Re: How can I enable the REST API?

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

rmw
Visitor
rmw
Posts: 3

Re: How can I enable the REST API?

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.