As in the title. I have scoured the Postman documentation and went through different nooks and crannies in Postman desktop app but I am unable to make my mock api server private.
I have generated a Postman API Key and I am passing it with all the requests in mock api as x-api-key header but it doesn't change anything. I can still access the collection's endpoints by simply pasting the url in the browser.
When I was creating the mock api server, I choose public option to speed up the setup but now would like to make it private.
If the Mock has already be created as a
PublicServer, you can make itPrivateby editing the Mock from the Collection menu in the app.>option on the Collection nameMockstabPencilicon toEditthe Mock ServerOnce this has been changed to a
PrivateServer, you should be able to call it only using thex-api-keytoken in the header.More details can be found on the Postman Learning Center:
https://learning.getpostman.com/docs/postman/mock-servers/setting-up-mock/#editing-mock-servers