# Xác thực

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Phương thức</td><td><a data-footnote-ref href="#user-content-fn-1"><mark style="color:green;"><strong>POST</strong></mark></a></td></tr><tr><td>Đường dẫn</td><td><mark style="color:orange;">{{host}}/Login</mark></td></tr></tbody></table>

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

## Body

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

## Mô tả tham số

<table><thead><tr><th width="130">Tên</th><th width="58" data-type="checkbox">(*)</th><th width="78">Kiểu</th><th>Diễn giải</th></tr></thead><tbody><tr><td>secret</td><td>true</td><td>string</td><td>Chuỗi khóa bí mật do Arito cung cấp để kết nối đến ứng dụng</td></tr><tr><td>language</td><td>true</td><td>string</td><td>Ngôn ngữ sử dụng trong các đầu hàm API (v hoặc e)</td></tr><tr><td>username</td><td>true</td><td>string</td><td>Tài khoản đăng nhập vào AritoID</td></tr><tr><td>password</td><td>true</td><td>string</td><td>Mã hóa MD5 của mật khẩu đăng nhập vào AritoID</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}

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

## Mô tả kết quả

<table><thead><tr><th width="159">Tên</th><th>Diễn giải</th></tr></thead><tbody><tr><td>code</td><td>Khi đăng nhập thành công code là <mark style="background-color:green;">200</mark>, Code khác ví dụ <mark style="background-color:red;">401, 501, 502....</mark> là đăng nhập thất bại kèm theo thông báo mô tả kết quả</td></tr><tr><td>msg</td><td>Mô tả kết quả đăng nhập</td></tr><tr><td>access_token</td><td>Token để sử dụng trong các API khác</td></tr><tr><td>token_type</td><td>Loại token để sử dụng trong các API khác</td></tr></tbody></table>

{% endtab %}
{% endtabs %}

[^1]:


---

# 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://arito-dev.gitbook.io/tai-lieu-ket-noi-arito-api-v2.0/danh-sach-api/xac-thuc.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.
