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
shufflepointshufflepoint 

Using oauth token on a deveopment server

When I use the OAuth token for a REST call from a development server, I am getting an HTTP 403 'Forbidden' response. It works fine on the production server where the token was obtained. Is there some way to get this to work?

SuperfellSuperfell

What does the body of the http response say? do you have the "sessions locked to originating IP' feature turned on?

shufflepointshufflepoint

The body was

 

<?xml version="1.0" encoding="UTF-8"?>
<Errors>
<Error>
<errorCode>API_DISABLED_FOR_ORG</errorCode>
<message>The REST API is not enabled for this Organization.</message>
</Error>
</Errors>


which let me to see that I was not in fact using the same key.  Thanks for pointing me in the right direction.