# Change Password

## Change Password

<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 | changepw                                                                |
| newpassword | string | New Password                                                            |
| password    | string | Current 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=changepw&aid=demo&apikey=demo&secret=demo&username=demo&password=demo&newpassword=demo
```

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

### Successfully changed password

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

### Invalid credentials

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