To use any of Coinhive's APIs, you need to provide to your credentials with every request. You will find a public site key and a private secret key in your account settings.
The site key has to be specified for all client side operations in the browser (i.e. the JavaScript Miner and the Captcha). The secret key can be used for communication from your server to ours through the HTTP API.