Get Hooks is Broken

Hi,

I am trying to get Hooks using this:

https://docs.github.com/en/rest/reference/webhooks#list-repository-webhooks

but does not work.
I got this message:

{

    "message": "Not Found",

    "documentation_url": "https://docs.github.com/rest/reference/repos#list-repository-webhooks"

}

The example uses this link and has the same wrong output:

https://api.github.com/repos/octocat/hello-world/hooks

The same message happen when I try to create a hook.
What is wrong? Any tip?
Thanks.