# Register

## Send register 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 | register                                                                |
| hwid     | string | Hardware-ID                                                             |
| email    | string | Email                                                                   |
| 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=register&aid=demo&apikey=demo&secret=demo&username=demo&password=demo&hwid=demo&license=demo&email=demo
```

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

### Successful Register

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

### Invalid license

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

### Email already used

```
{
"result":"email_used"
}
```

### Invalid or taken username

```
{
"result":"invalid_username"
}
```

###
