# Licenses

## Licenses

<mark style="color:blue;">`GET`</mark> `https://developers.auth.gg/LICENSES`

This endpoint allows you to manage your licenses

#### Query Parameters

| Name          | Type   | Description                                             |
| ------------- | ------ | ------------------------------------------------------- |
| type          | string | Determines which method                                 |
| authorization | string | Token to track down which application is being managed. |
| days          | string | Days of licenses if applicable                          |
| level         | string | Level of licenses if applicable                         |
| amount        | string | Amount of licenses if applicable                        |
| license       | string | License to manage if applicable                         |

{% tabs %}
{% tab title="200 Scroll down for accurate examples and responses" %}

```
```

{% endtab %}
{% endtabs %}

| Types    | Description                           |
| -------- | ------------------------------------- |
| fetch    | Retrieves specific license data       |
| fetchall | Retrieves all licenses                |
| delete   | Deletes specific license              |
| use      | Uses specific license                 |
| unuse    | Unuses specific license               |
| generate | Generates licenses                    |
| count    | Responds with total count of licenses |

### Fetch License information

```
https://developers.auth.gg/LICENSES/?type=fetch&authorization=12345678&license=3833333
```

### Fetch all Licenses

```
https://developers.auth.gg/LICENSES/?type=fetchall&authorization=12345678
```

### Delete License

```
https://developers.auth.gg/LICENSES/?type=delete&license=KJMDLKNOD8&authorization=12345678
```

### Use License

```
https://developers.auth.gg/LICENSES/?type=use&license=O5DL7BNXYP&authorization=12345678
```

### Unuse License

```
https://developers.auth.gg/LICENSES/?type=unuse&license=O5DL7BNXYP&authorization=12345678
```

### Generate License

```
https://developers.auth.gg/LICENSES/?type=generate&days=1&amount=4&level=1&authorization=12345678
```

If you would like to generate licenses with your own prefix, length, or format add the following parameters

| Parameter | Description                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| format    | You can choose the format you want based on the dashboard, there is a number next to the format you want to generate, this will be the format you want to use. |
| prefix    | If you have chosen a format that needs a prefix make sure you add the parameter aswell or you will get an unexpected error.                                    |
| length    | If you have chosen a format that requires a length make sure you add the parameter aswell or you will get an unexpected error.                                 |

![Format numbers located on the left](/files/-MHrkNaseM-aSKlwvIix)

### Count Licenses

```
https://developers.auth.gg/LICENSES/?type=count&authorization=12345678
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://setup.auth.gg/admin/licenses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
