# Player Account

## Link KOMO Account with Existing Game Account

<mark style="color:green;">`POST`</mark> `[endpoint]/api/server/account/linked/link`

#### Headers

| Name          | Type   | Description       |
| ------------- | ------ | ----------------- |
| Authorization | String | Base64 Basic Auth |

#### Request Body

| Name                                                 | Type   | Description               |
| ---------------------------------------------------- | ------ | ------------------------- |
| komo\_username<mark style="color:red;">\*</mark>     | String | KOMO Username             |
| provider\_user\_id<mark style="color:red;">\*</mark> | String | Account ID from Your Game |

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

```json
{
    "status": "success",
    "message": "Link Account Success",
    "data": {
        "komo_username": "kokomo",
        "provider": "komochess",
        "provider_user_id": "28654165468846165"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Link Already Exists" %}

```json
{
    "status": "error",
    "messages": "KOMO Account Already Have Linked Account"
}
```

{% endtab %}
{% endtabs %}
