> 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/mypage-api.md).

# myPage API

## 개인 정보 변경

<mark style="color:purple;">`PATCH`</mark> `https://kakao.gg/mypage/edit`

#### Headers

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

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| image       | String | image       |
| nickname    | String | nickname    |
| phoneNumber | String | phoneNumber |

{% tabs %}
{% tab title="200: OK 조회 완료" %}

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## 개인 정보 조회

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

특정 게시글 조회

#### Headers

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

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| image       | String | image       |
| nickname    | String | nickname    |
| phoneNumber | String | phoneNumber |

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

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

{% endtab %}

{% tab title="500: Internal Server Error " %}

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

{% endtab %}
{% endtabs %}

## 비밀번호 변경

<mark style="color:purple;">`PATCH`</mark> `https://kakao.gg/mypage/changePassword`

#### Headers

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

#### Request Body

| Name                                              | Type   | Description     |
| ------------------------------------------------- | ------ | --------------- |
| currentPassword<mark style="color:red;">\*</mark> | String | currentPassword |
| checkPassword<mark style="color:red;">\*</mark>   | String | checkPassword   |
| newPassword<mark style="color:red;">\*</mark>     | String | newPassword     |

{% tabs %}
{% tab title="201: Created 변경 완료" %}

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

{% endtab %}

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

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

{% endtab %}

{% tab title="404: Not Found 잘못된 비밀번호를 입력하였습니다." %}

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

{% endtab %}
{% endtabs %}

## 비밀번호 조회

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

비밀번호 조회

#### Headers

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

#### Request Body

| Name                                              | Type   | Description     |
| ------------------------------------------------- | ------ | --------------- |
| currentPassword<mark style="color:red;">\*</mark> | String | currentPassword |
| checkPassword<mark style="color:red;">\*</mark>   | String | checkPassword   |
| newPassword<mark style="color:red;">\*</mark>     | String | newPassword     |

{% tabs %}
{% tab title="201: Created 조회 완료" %}

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

{% endtab %}

{% tab title="401: Unauthorized 유저 인증 필요" %}

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## 회원 탈퇴

<mark style="color:red;">`DELETE`</mark> `https://kakao.gg/mypage/leave`

회원 탈퇴

#### Headers

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

{% tabs %}
{% tab title="201: Created 탈퇴 완료" %}

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

{% endtab %}

{% tab title="401: Unauthorized 유저 인증 필요" %}

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}
