Hi MI-ETQ-DEV,
Thanks for reaching out.
This API is working fine for me. refer to the screenshot attached below.
Could you please try to check the permissions in your token by parsing it. It should have permission "Sites.Read.All". This endpoint is not applicable for Delegated (personal Microsoft account).
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".