bitpay api in template for config