Invoking an API - necessary permissions

I have a user assigned to the Activity Monitoring role. In the AE portal, this user can check the status of the Agents. However, when the API ‘Get list agents for monitoring’ is called with this same user, it returns the error 401 Unauthorized, with the message: “Unauthorized: Invalid or Stale Authentication Token.”

If I create a Role similar to Activity Monitoring, what other permissions are necessary to be able to call this API?

Hi Fabio.

It seems the issue is with the token. Was the token generated for the same user?

Regards.