# 접속 가능한 서버 정보 요청

<mark style="color:blue;">`GET`</mark> `https://{pick-domain}/v1.0/pick/lobby/server/access`

#### Query Parameters

| Name                                         | Type  | Description |
| -------------------------------------------- | ----- | ----------- |
| planet\_id<mark style="color:red;">\*</mark> | int64 | planet id   |

#### Headers

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

{% tabs %}
{% tab title="200: OK " %}
```json
{
    "return": 0,
    "message": "success",
    "value": {
        "planet_id": 1,
        "host": "wss://dev.onbuff.com:21000/wss"
    }
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}
curl --location --request GET 'https://dev.onbuff.com:51101/v1.0/pick/lobby/server/access?planet\_id=1' \\

\--header 'Authorization: Bearer eyJhbGciOiJIU…….’
{% endtab %}

{% tab title="Response Value" %}
<table><thead><tr><th width="173.33333333333331">key</th><th width="180.93023255813955">data type</th><th>desc.</th></tr></thead><tbody><tr><td>planet_id</td><td>int64</td><td>planet id</td></tr><tr><td>host</td><td>string</td><td>Websocket 접속 가능 url</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>
{% endtab %}

{% tab title="Result Code" %}
| return | message | desc. |
| ------ | ------- | ----- |
| 0      | success | 성공    |
{% endtab %}
{% endtabs %}

