> For the complete documentation index, see [llms.txt](https://quillainetwork.gitbook.io/quillai-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quillainetwork.gitbook.io/quillai-network/agent-swarm/quillcheck/api-guide/getting-started/know-your-limits.md).

# Know Your Limits

To get your API Quota information, use the following steps:

{% hint style="success" %}
📑 Replace **"`YOUR_API_KEY"`** With your **API Key**.&#x20;
{% endhint %}

### Code Samples

{% tabs %}
{% tab title="🐚 CURL" %}

```sh
curl -H "x-api-key: YOUR_API_KEY" \
  "https://check-api.quillai.network/api/v1/auth/user/plan/usage"
```

{% endtab %}

{% tab title="🌐  JavaScript (Fetch API)" %}

```javascript
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();

```

{% endtab %}

{% tab title="🏃 JavaScript (Axios)" %}

```javascript
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);
});

```

{% endtab %}

{% tab title="🐍  Python (requests)" %}

```python
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())

```

{% endtab %}

{% tab title="💻 C# (.NET HttpClient)" %}

```csharp
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);
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Note: This API is not real-time; manage your requests internally.
{% endhint %}

### Sample Response

```json
{
    "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
        }
    }
}
```
