curl --request GET \
--url https://api.copyleaks.com/v3/scans/credits \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN'
from copyleaks.copyleaks import Copyleaks
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
balance = Copyleaks.credits_balance(auth_token)
print(balance)
{
"Amount": 100
}
Admin
Get Credit Balance
Get your current credit balance.
GET
/
v3
/
scans
/
credits
curl --request GET \
--url https://api.copyleaks.com/v3/scans/credits \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN'
from copyleaks.copyleaks import Copyleaks
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
balance = Copyleaks.credits_balance(auth_token)
print(balance)
{
"Amount": 100
}
curl --request GET \
--url https://api.copyleaks.com/v3/scans/credits \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN'
from copyleaks.copyleaks import Copyleaks
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
balance = Copyleaks.credits_balance(auth_token)
print(balance)
{
"Amount": 100
}
Authentication Required. You need to login with a user and API key in order to access this method. Add this HTTP header to your request:Authorization: Bearer <Your-Login-Token>
Request
Headers
Authorization: Bearer YOUR_LOGIN_TOKEN
Responses
- 200
- 401
200 OK - The command was executed.
{
"Amount": 100
}
401 Unauthorized - Authorization has been denied for this request.

