# Authentication

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Method</strong></td><td><mark style="color:green;"><strong>POST</strong></mark></td></tr><tr><td><strong>Link</strong></td><td><mark style="color:orange;"><strong>{{host}}/Login</strong></mark></td></tr></tbody></table>

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

```
{
    "secret": "",
    "language": "v",
    "username": "",
    "password": ""
}
```

### Parameter description

<table><thead><tr><th width="123">Name</th><th width="58" data-type="checkbox">(*)</th><th width="104">Datatype</th><th>Descripsion</th></tr></thead><tbody><tr><td>secret</td><td>true</td><td>string</td><td>The secret key string provided by Arito for connecting to the application</td></tr><tr><td>language</td><td>true</td><td>string</td><td>The language used in API function headers (v or e)</td></tr><tr><td>username</td><td>true</td><td>string</td><td>The login account for AritoID</td></tr><tr><td>password</td><td>true</td><td>string</td><td>The MD5 hash of the password used for logging into AritoID</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}

```
{
    "code": 200,
    "msg": "Success",
    "access_token": "eyJhbGciOiJIUz....",
    "expires_in": 60000,
    "token_type": "Bearer",
    "data": null
}
```

### Describe the results

<table><thead><tr><th width="159">Name</th><th>Descripsion</th></tr></thead><tbody><tr><td>code</td><td>When the login is successful, the status code is 200. For other codes, such as 401, 501, 502, it indicates a failed login, accompanied by a descriptive message explaining the result</td></tr><tr><td>msg</td><td>Description of login results</td></tr><tr><td>access_token</td><td>Token for use in other APIs</td></tr><tr><td>token_type</td><td>Token type for use in other APIs</td></tr></tbody></table>
{% endtab %}
{% endtabs %}
