How to call document function but guest mode?

I have read the documentation on the Frappe Framework website (REST API) regarding the REST API.

According to the documentation, I can make a call to the following API endpoint:

GET /api/resource/:doctype?filters=[["field1", "=", "value1"], ["field2", ">", "value2"]].

However, it is necessary to be authenticated before accessing this API. My question is, how can I access the same API endpoint without authentication?