1. Login to your Braintree Dashboard. Then go to Settings -> API.
2. Click on Generate New API Key to generate Key.
3. The previous step will generate Merchant Id, Public Key, Private Key. for Tokenization Key click on the marked location.
That's it.
For Production, Key follow the same instructions.