# Extend Subscription

## Send redeem data

<mark style="color:green;">`POST`</mark> `https://api.auth.gg/v1/`

This endpoint allows you to license any language that can make web requests

#### Query Parameters

| Name     | Type   | Description                                                             |
| -------- | ------ | ----------------------------------------------------------------------- |
| type     | string | extend                                                                  |
| license  | string | License                                                                 |
| password | string | Password                                                                |
| username | string | Username                                                                |
| aid      | string | AID is found in profile settings                                        |
| secret   | string | Secret is found in applications tab                                     |
| apikey   | string | API Key is found in profile settings, only available to premium members |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

### Raw POST Example

```
POST /v1 HTTP/1.1
Host: api.auth.gg
Content-Type: application/x-www-form-urlencoded
Content-Length: 123

type=extend&aid=demo&apikey=demo&secret=demo&username=demo&password=demo&license=demo
```

{% hint style="info" %}
All responses are encoded in JSON
{% endhint %}

### Successfully extended user subscription

```
{
"result":"success"
}
```

### License already used or not existing

```
{
"result":"invalid_license"
}
```

### Invalid login

```
{
"result":"invalid_details"
}
```
