GET /v3/businesses/credits

Get your current credit balance. Each credit allow the scan of up to 250 words.

Request

Request Example

curl -XGET -H 'Authorization: Bearer YOUR-LOGIN-TOKEN' 'https://api.copyleaks.com/v3/businesses/credits'
GET https://api.copyleaks.com/v3/businesses/credits

Authorization: Bearer YOUR-LOGIN-TOKEN;
import requests

headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN',
}

response = requests.get('https://api.copyleaks.com/v3/businesses/credits', headers=headers)
using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.copyleaks.com/v3/businesses/credits"))
    {
        request.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR-LOGIN-TOKEN"); 

        var response = await httpClient.SendAsync(request);
    }
}
var request = require('request');

var headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN'
};

var options = {
    url: 'https://api.copyleaks.com/v3/businesses/credits',
    headers: headers
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'Authorization' => 'Bearer YOUR-LOGIN-TOKEN'
);
$response = Requests::get('https://api.copyleaks.com/v3/businesses/credits', $headers);

Responses

Status Code Description Example
200

The command was executed.

{
  "Amount": 100
}
401

Authorization has been denied for this request