How do I get the Instance URL with just a valid OAuth Access Token?

I don't have any other information, for example, I don't have the client_id or client_secret.

If I make an assumption that the Instance URL is https://na16.salesforce.com, I'm able to use the REST API with the valid OAuth Access Token.

  • I'd love to find this out as well.
    – bumpkin
    Nov 2, 2015 at 19:45
  • Have you solved this problem..? Jul 24, 2017 at 8:49

1 Answer 1


You need valid client_id and client_secret in order to request a valid token to perform API requests. You can obtain these alphanumeric strings by creating a custom app in your org (this may help: https://developer.salesforce.com/forums/?id=906F0000000AfcgIAC )

When you've got your client_id and client_secret, follow the instructions I wrote on a different question, it should work for you then: Sending data from PHP to Salesforce using CURL

  • The OP literally says he doesn't have a client ID or secret.
    – Frans
    Apr 11, 2021 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.