Usually I use https://login.salesforce.com/services/oauth2/token as my Login Endpoint connecting via REST Api. Now a friend of mine created a Sandbox and I was wondering what the aquivalent URL is here, since using the one above I get an authorization error.


as usual, istead of login for production use test for sandbox.

Understanding OAuth Endpoints article confirms it.

If you’re verifying authentication on a sandbox organization, use “test.salesforce.com” instead of “login.salesforce.com” in all the OAuth endpoints listed above.


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.