I am writing a service tool where I need to invoke a web request to Experience Editor page from command line. I need to authorize the request with Sitecore user.

How can I do this?

I found some examples for Sitecore Commerce, Sitecore Command Line Interface, and API controllers.




Is there something similar possible with Sitecore Experience Editor pages? Or not similar but still possible to use from command line?

  • Can you please describe one of the scenarios on what you need from Experience Editor during mentioned request?
    – Alexander
    Apr 8, 2022 at 22:39
  • I think that there is a lot of context around Experience Editor operation that will be hard to replicate without actually starting the EE shell. However I can't think of anything that EE does that can't be done using the "normal" APIs so if you can articulate the problem you are trying to solve then we may be able to suggest a more reliable way of solving your problem without having to go through EE to get there. Apr 12, 2022 at 13:05
  • The goal is to warm up first request to specific pages in EE mode - if there is a simple way to do it with just a short PS script.
    – asia.boron
    Apr 14, 2022 at 8:59

1 Answer 1


Login is possible with single POST request

  • URL: /sitecore/api/ssc/auth/login
  • Body: { "username": "admin", "password": "b", "domain": "sitecore" }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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