# Get remaining credits

## Get remaining credits

<mark style="color:blue;">`GET`</mark> `https://api.acychecker.com/api/v1/licenses/credits`

This endpoint allows you to get the remaining monthly credits for the specified license.&#x20;

#### Headers

| Name                                           | Type   | Description                                                                  |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| API-KEY<mark style="color:red;">\*</mark>      | string | The API key linked to the license you want to get the remaining credits from |
| Content-Type<mark style="color:red;">\*</mark> | string | Must be "application/json"                                                   |
| Source<mark style="color:red;">\*</mark>       | string | The name of your app, "my app" for example.                                  |

{% tabs %}
{% tab title="200 When you provided a correct API key." %}

```
{
    "message": "",
    "credits_used_batch": 335,
    "remaining_credits_batch": 665
    "credits_used_simple": 11,
    "remaining_credits_simple": 39
}
```

{% endtab %}

{% tab title="401 When the API key provided doesn't exist, or if the license is expired." %}

```
{
    "message": "Invalid API-KEY"
}

OR

{
    "message": "License expired"
}
```

{% endtab %}

{% tab title="429 When you've sent a lot of requests to our API in a short amount of time." %}

```
{
    "message": "Too many requests"
}
```

{% endtab %}
{% endtabs %}
