How to tell if instance specific Salesforce URL is from Sandbox or Production, if I have the URL and Session Id only?
How to tell if instance specific Salesforce URL is from Sandbox or Production, if
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you know the instance & sessionId, then you can call the REST api’s discovery service at
{instance}/services/data/v25.0passing the sessionId in a Authorization header, e.g. using curl this would beThis returns you the discovery data, including the users Identity Id, e.g.
If the host is
login.salesforce.comits production, if itstest.salesforce.comits sandbox.