How to Enable QAN permissions for service accounts in PMM

I have created a service account on pmm server using UI.

Generated a token for this service account, and now want to use the API using token to fetch queres.

curl -H “Authorization: Bearer token_xxxxxx” “https://pmm-prod.xyz.com/v1/queries/summary
{“code”:7,“error”:“Access denied.”,“message”:“Access denied.”}

Any help or suggestions will help me a lot.

Hi,

There is no endpoint exist like “v1/queries/summary”.
You can find the available endpoints here: https://pmm-prod.xyz.com/swagger

Thanks,

Tibi