> For the complete documentation index, see [llms.txt](https://docs.salework.net/salework-tai-lieu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.salework.net/salework-tai-lieu/salework-zalo-open-api/contact/thong-tin-trang-thai-ket-ban.md).

# Thông tin trạng thái kết bạn

1. Body

<table><thead><tr><th>Name</th><th width="359">Type</th><th>Description</th></tr></thead><tbody><tr><td>service</td><td>contact</td><td></td></tr><tr><td>method</td><td>friendRequestStatus</td><td></td></tr><tr><td>data</td><td><pre class="language-json"><code class="lang-json"><strong>{
</strong>  "accountId": "262941598338491044",
<strong>  "toId": "6709205003906760985"
</strong>}
</code></pre></td><td></td></tr></tbody></table>

2. Response

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

```json
{
    "data": {
        "error_message": "Successful.",
        "data": {
            "addFriendPrivacy": 0, // Đánh dấu bạn thân hay không - 1/0
            "is_requesting": 0, // Đối phương đã gửi kết bạn hay chưa - 1/0
            "is_friend": 1, // Đã là bạn bè hay không - 1/0
            "is_requested": 0 // Người dùng đã gửi kết bạn hay chưa - 1/0
        },
        "error_code": 0
    },
    "status": "success"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "status": "error",
    "error": {
        "message": "Something wrong was happened.",
        "code": null,
        "prms": null
    }
}
```

{% endtab %}
{% endtabs %}
