I'm trying to set-up Sonarr to automatically download torrents and it is asking me for an API key for The Priates Bay. How do I generate an API key? Thanks!
There is no such thing. TPB does not have a public API.
I'm not using Sonarr myself, but a quick search suggest that it expects a Jackett API key which seems to be an indexer for TPB.