Get remaining uploads
curl --request GET \
--url https://api.prd.realitydefender.xyz/api/files/uploads-remaining \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.prd.realitydefender.xyz/api/files/uploads-remaining"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.prd.realitydefender.xyz/api/files/uploads-remaining', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prd.realitydefender.xyz/api/files/uploads-remaining",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prd.realitydefender.xyz/api/files/uploads-remaining"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prd.realitydefender.xyz/api/files/uploads-remaining")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prd.realitydefender.xyz/api/files/uploads-remaining")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "ok",
"errno": 0,
"response": {
"remaining": {
"counts": 10,
"isWithOverUsage": false,
"initialBalance": 100
},
"usage": {
"totalVideoCount": 10,
"totalAudioCount": 10,
"totalImageCount": 10,
"totalTextScanCount": 10
},
"planNames": [
"Enterprise"
],
"billingPeriodEndDate": "2026-01-31T00:00:00.000Z"
}
}{
"statusCode": 123,
"path": "<string>",
"message": "<string>",
"code": "<string>",
"type": "<string>",
"name": "<string>",
"explanation": "<string>"
}RealScan
Get remaining uploads
Returns the organization’s remaining scan credits, whether it is in overage, its usage of charged scans per media type, its plan names and the end of the current billing period. Values are organization-wide, not per user.
Errors
400— the organization has no active plan, or billing information is unavailable.401— authentication failed.403— the caller has the viewer role.
GET
/
api
/
files
/
uploads-remaining
Get remaining uploads
curl --request GET \
--url https://api.prd.realitydefender.xyz/api/files/uploads-remaining \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.prd.realitydefender.xyz/api/files/uploads-remaining"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.prd.realitydefender.xyz/api/files/uploads-remaining', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prd.realitydefender.xyz/api/files/uploads-remaining",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prd.realitydefender.xyz/api/files/uploads-remaining"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prd.realitydefender.xyz/api/files/uploads-remaining")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prd.realitydefender.xyz/api/files/uploads-remaining")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "ok",
"errno": 0,
"response": {
"remaining": {
"counts": 10,
"isWithOverUsage": false,
"initialBalance": 100
},
"usage": {
"totalVideoCount": 10,
"totalAudioCount": 10,
"totalImageCount": 10,
"totalTextScanCount": 10
},
"planNames": [
"Enterprise"
],
"billingPeriodEndDate": "2026-01-31T00:00:00.000Z"
}
}{
"statusCode": 123,
"path": "<string>",
"message": "<string>",
"code": "<string>",
"type": "<string>",
"name": "<string>",
"explanation": "<string>"
}