# 공개키 목록 조회

## VaspEntityId 에 해당하는 VASP 의 공개키 목록을 반환합니다.

<mark style="color:blue;">`GET`</mark> `/v1/code/Vasp/{VaspEntityId}/pubkey`

이 API 를 사용하여 특정 VASP 의 Public Key 를 조회할 수 있습니다. 'VASP 목록 조회' 의 결과는 일부 캐싱 된 데이터를 포함 할 수 있지만, 이 API 는 현재 데이터를 가져옵니다.

가령, 422 INVALID\_RECEIVER\_PUBLIC\_KEY 에러가 반환되었을 때, 이 API 를 호출하여 Public Key 가 변경되었는지 확인할 수 있습니다.

**Path Parameters**

* VaspEntityId: 공개키 목록을 얻고자 하는 VASP 의 VaspEntityId 를 입력합니다.

**Response Body**

*200 OK*

*RESPONSE SCHEMA: application/json*

* pubkeys(Required): VASP 앞으로 등록된 pubkey 객체의 배열. 각 객체는 pubkey 와 expiresAt 필드로 구성됩니다.
  * pubkey: base64 인코딩된 pubkey.
  * expiresAt: pubkey 의 만료 시각. ISO 8601 형식의 UTC 시각을 사용합니다.

```
{
  "pubkeys": [
    {
      "pubkey": "base64 encoded ascii",
      "expiresAt": "2022-06-31T23:59:59Z"
    }
  ]
}
```


---

# 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://codevasp.gitbook.io/code-api-docs-ko/code-api/pub-key-search.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.
