> For the complete documentation index, see [llms.txt](https://clout-tv.gitbook.io/api-docs-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clout-tv.gitbook.io/api-docs-1/reference/user-api.md).

# user API

## Signup

<mark style="color:green;">`POST`</mark> `https://kakao.gg/user/signup`

Login

#### Request Body

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| email<mark style="color:red;">\*</mark>         | string | email       |
| password<mark style="color:red;">\*</mark>      | string | password    |
| checkPassword<mark style="color:red;">\*</mark> | string | password    |
| phoneNumber<mark style="color:red;">\*</mark>   | string | phoneNumber |

{% tabs %}
{% tab title="200: OK 로그인 성공" %}

```javascript
{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## login

<mark style="color:green;">`POST`</mark> `https://kakao.gg/user/login`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | AccessToken |

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| email<mark style="color:red;">\*</mark>    | String | email       |
| password<mark style="color:red;">\*</mark> | String | password    |

{% tabs %}
{% tab title="200: OK 확인 완료" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found ID가 존재하지 않거나 비밀번호가 일치하지 않습니다." %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## logout

<mark style="color:green;">`POST`</mark> `https://kakao.gg/user/logout`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | AccessToken |

{% tabs %}
{% tab title="200: OK 확인 완료" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found ID가 존재하지 않거나 비밀번호가 일치하지 않습니다." %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## mylist

<mark style="color:blue;">`GET`</mark> `https://kakao.gg/user/mylist`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | AccessToken |

#### Request Body

| Name                                      | Type   | Description |
| ----------------------------------------- | ------ | ----------- |
| title<mark style="color:red;">\*</mark>   | String | title       |
| content<mark style="color:red;">\*</mark> | String | content     |

{% tabs %}
{% tab title="200: OK 확인 완료" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found ID가 존재하지 않거나 비밀번호가 일치하지 않습니다." %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}
