Get balance document credits
get/v1/plan/apiCreditsCountReturns the number of remaining API credits after usage. This credits can be used to determine if you have enough balance left to send API requests.
Code snippet
curl -X GET 'https://api.boldsign.com/v1/plan/apiCreditsCount' \ -H 'accept: application/json' \ -H 'X-API-KEY: {your-api-key}'
ApiClient apiClient = new ApiClient("https://api.boldsign.com", "API-KEY"); PlanClient planCredit = new PlanClient(apiClient); var billingViewModel = planCredit.GetApiCreditsCount();
import requests url = "https://api.boldsign.com/v1/plan/apiCreditsCount" payload={} headers = { 'accept': 'application/json', 'X-API-KEY': '{your API key}' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
const axios = require('axios'); const response = await axios.get('https://api.boldsign.com/v1/plan/apiCreditsCount', { headers: { 'accept': 'application/json', 'Authorization': 'Bearer <authtoken>' } });
Example response
200 Success
{ "BalanceCredits": 100 }