How to generate an API key pair?

You can generate API key pair in your Kraken account:

Setting > API > Generate new key > set permissions