Get credit balance (API key)
curl --request GET \
--url https://api.trysnapit.com/api/v1/credits/balance \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.trysnapit.com/api/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trysnapit.com/api/v1/credits/balance"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"balance": 42,
"creditCostPerInvoice": 1
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized"
}Programmatic API
Get credit balance (API key)
Returns the workspace credit balance and the current credit cost per invoice upload.
GET
/
api
/
v1
/
credits
/
balance
Get credit balance (API key)
curl --request GET \
--url https://api.trysnapit.com/api/v1/credits/balance \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.trysnapit.com/api/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trysnapit.com/api/v1/credits/balance"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"balance": 42,
"creditCostPerInvoice": 1
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized"
}Authorizations
Bearer sk_live_… (include the Bearer prefix)

