I have an organization on GitHub with some private repositories and I want to use the GitHub API to access the repositories releases. How do I get the API key for it?
I have already created a personal access token on my account, but I cannot access the repository with it.
I would suggest you to add a deploy key to do that:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys#deploy-keys