# PINK API Key 생성

이 Endpoint는 PINK API Key의 자동 생성에 사용됩니다. 이를 호출하려면 "Admin" Key를 사용해야 합니다. 새 Key를 생성할 때 특정 범위와 제한을 정의할 수 있습니다. 이 Endpoint를 호출하면 API Key, API Secret Key, JWT Bearer Token의 세 가지 값이 반환됩니다. 이러한 값에 대한 자세한 내용은 인증 섹션에서 확인할 수 있습니다. API Secret과 JWT는 다시 검색할 수 없으므로 안전하게 기록하는 것이 중요합니다.

PINK API Key를 생성하려면 다음 요청 본문을 제공해야 합니다:

keyName 매개변수는 필수입니다. 권한을 지정할 때는 Admin Key를 만들지 않는 한 모든 속성 및 하위 속성을 포함해야 합니다. Admin Key의 경우 Endpoint 속성 및 해당 하위 속성을 생략할 수 있습니다. Endpoint 속성을 포함하면 Admin 속성을 포함할 수 없습니다.

다음은 Admin Key를 생성하기 위한 간소화된 요청 본문의 예입니다:

<figure><img src="/files/PVk9twUZnW62q75xNhCd" alt=""><figcaption></figcaption></figure>

이 요청 본문은 키 이름을 "My admin key"로 지정하고 "admin"을 "true"로 설정하여 관리자 액세스 권한을 부여할 권한을 설정합니다.


---

# 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://koneksi.gitbook.io/koneksi-docs/pink-api/undefined-1/pink-api-key.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.
