3

According to Salesforce documentation using the Knowledge API we can "allow both authorized and guest users to retrieve the user’s visible data categories and their associated articles.", however I've been unsuccessful in doing so.

I've tried making a GET request to https://mydomain--dev.my.salesforce.com/services/data/v45.0/support/knowledgeArticles as detailed here but this returns a 401 error.

  • shoulnt' it be guest site url or community site url instead of your internal my domain? https://guestSite.my.salesforce.com/services/data/v45.0/support/knowledgeArticles – Pranay Jaiswal Aug 9 at 11:27
  • Can you formulate this into an answer. This is why I needed – Deployment Failure Aug 9 at 18:53
3
+50

Internal Users if they want to access rest endpoint then the endpoint would be

https://mydomain.my.salesforce.com/services/data/v45.0/support/knowledgeArticles

Whereas if it's for community or guest force.com site, it would be different, as MYDOMAIN is always authenticated. That explains 401 error code.

https://guestSite.my.salesforce.com/services/data/v45.0/support/knowledgeArticles

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.