Maximise AI Docs
  • Introduction
    • Authentication
    • Rate Limit
  • Whitelabel APIs
    • Check Credit Usage
    • Add Domain
    • Update Domain
    • Archive Domain
    • All Domains
    • Add Webhook
    • Domain Visitor List
    • Domain Account List
Powered by GitBook
On this page
  1. Whitelabel APIs

Check Credit Usage

This API returns current credits usage information.

curl --location 'https://api.maximise.ai/v1/whitelabel-api/check-credits' \
--header 'Authorization: Bearer <token>'
const axios = require('axios');

axios.get('https://api.maximise.ai/v1/whitelabel-api/check-credits', {
    headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });
import requests

url = "https://api.maximise.ai/v1/whitelabel-api/check-credits"

payload = {}
headers = {
  'Authorization': 'Bearer <token>'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("https://api.maximise.ai/v1/whitelabel-api/check-credits")
  .method("GET", body)
  .addHeader("Authorization", "Bearer <token>")
  .build();
Response response = client.newCall(request).execute();
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.maximise.ai/v1/whitelabel-api/check-credits',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer <token>'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
require "uri"
require "net/http"

url = URI("https://api.maximise.ai/v1/whitelabel-api/check-credits")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <token>"

response = https.request(request)
puts response.read_body

Example response

Status Code: 200 OK

{
    "whitelabel_id": "RMieIJj0M7RIDmr7",
    "total_credits": 300,
    "credits_consumed": 0,
    "credits_remaining": 300
}
PreviousRate LimitNextAdd Domain

Last updated 7 months ago