How to set up Matomo Wordpress REST API Authentication

I could not find any information about setting up Matomo Wordpress REST API authentication. The only text I found: “authentication is done through WordPress” https://developer.matomo.org/api-reference/wordpress/restapi-reference
How exactly it can be done?

Example of request and response I get now:

GET /index.php?rest_route=/matomo/v1/api/processed_report&period=date&date=year&filter_limit=10&apiModule=Actions&apiAction=getPageUrls

{
“code”: “matomo_no_access_exception”,
“message”: “You must be logged in to access this functionality.”,
“data”: null
}

Hi,

Matomo uses Wordpress for all authentication, so you need to refer to the Wordpress API docs:

Hi Lukas. Thank you, it helps a lot.

exactly, I am also facing the same issue.