# 회원조회

## /api/accounts/{idx}

<mark style="color:blue;">`GET`</mark> `http://localhost:8080/api/accounts/{idx}`

회원번호를 이용하여 번호에 해당하는 회원을 조회할 수 있습니다.

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| idx  | number | 조회할 유저의 번호  |

#### Headers

| Name           | Type   | Description   |
| -------------- | ------ | ------------- |
| Authentication | string | access\_token |

{% tabs %}
{% tab title="200 번호에 해당하는 회원의 정보를 반환합니다." %}

```
{
    "idx":1,
    "email":"email@email.com",
    "password":"{bcrypt}$2a$10$sBtAJa3br319Y0st3JuM9uEJc668ox4P1ArpIDcMQlcfqoswP4./O",
    "name":null,
    "picture":null,
    "_links":{
        "self":{
            "href":"http://localhost/api/accounts/1"
        }
    }
}
```

{% endtab %}

{% tab title="400 에러 메세지를 반환합니다." %}

```
{
    "message" : "Bad Request"
}
```

{% endtab %}

{% tab title="401 access\_token 에 오류가 발생하면 401 응답이 나타납니다." %}

```
-
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ksyj8256.gitbook.io/login-base-token-api/undefined-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
