> For the complete documentation index, see [llms.txt](https://baeminchan-project.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baeminchan-project.gitbook.io/project/undefined/undefined-2.md).

# 사이트 회원 로그인

## &#x20;회원 로그인

<mark style="color:green;">`POST`</mark> `https://api.elegantsiblings.xyz/members/login/`

This endpoint allows you to get free cakes.

#### Request Body

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| username | string |             |
| password | string |             |

{% tabs %}
{% tab title="200  user 정보, token" %}

```javascript
{
    "user": {
        "pk": 1,
        "username": "chajeehyung",
        "first_name": "",
        "last_name": "",
        "email": "",
        "img_profile": null
    },
    "token": "5fbb5244f25101f0666c977ff6998321782d30f3"
}
```

{% endtab %}

{% tab title="400 username, password를 입력하지 않았을 " %}

```
{
    "username": [
        "이 필드는 필수 항목입니다."
    ]
}
```

{% endtab %}

{% tab title="401 Could not find a cake matching this query." %}

```javascript
{
    "detail": "아이디 또는 비밀번호가 올바르지 않습니다"
}
```

{% endtab %}
{% endtabs %}
