Know Your Limits
To get your API Quota information, use the following steps:
📑 Replace "YOUR_API_KEY" With your API Key.
Code Samples
curl -H "x-api-key: YOUR_API_KEY" \
"https://check-api.quillai.network/api/v1/auth/user/plan/usage"const fetchTokenData = async () => {
const response = await fetch('https://check-api.quillai.network/api/v1/auth/user/plan/usage', {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
};
fetchTokenData();
const axios = require('axios');
axios.get('https://check-api.quillai.network/api/v1/auth/user/plan/usage', {
headers: {
'x-api-key': 'YOUR_API_KEY'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
import requests
url = "https://check-api.quillai.network/api/v1/auth/user/plan/usage"
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var url = "https://check-api.quillai.network/api/v1/auth/user/plan/usage";
var response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}Sample Response
{
"success": true,
"data": {
"apiKeyId": "Mj9RAlfijV3vt3bAnj4182154sbjbmkksmQQ",
"userName": "johnDoe",
"email": "johndoe@gmail.com",
"usageStats": {
"plan": "Quillcheck-Enterprise",
"remainingRequests": 36000,
"totalRequests": 40000,
"period": "MONTH",
"rateLimit": "0.5 / Sec",
"error": null
}
}
}Last updated