create_keychain
Issues Bootpay clientKey and secretKey API keychains for commerce or payment development, enabling Basic Auth for PG and Commerce API calls. Choose internal for commerce, core for payments, or both.
Instructions
개발에 필요한 clientKey/secretKey(API 키체인)를 발급합니다.
🔑 발급된 키는 Basic Auth 인증에 사용됩니다: Authorization: Basic Base64(clientKey:secretKey) → PG API와 Commerce API 모두 동일한 방식으로 인증합니다.
📌 clientKey는 용도에 따라 2종류가 있습니다:
커머스용 clientKey → targets에 "internal" 지정
internal-api의 ProjectKeyChain으로 발급
커머스 API(주문, 상품, 재고 등) 호출 시 사용
결제용 clientKey → targets에 "core" 지정
core-api의 AppKeyChain으로 발급
결제 API(결제 요청, 결제 조회, 취소 등) 호출 시 사용
⚡ 개발자가 "개발 진행을 위해 clientKey가 필요하다"고 하면:
커머스 개발 → targets: ["internal"]
결제 개발 → targets: ["core"]
둘 다 필요 → targets: ["internal", "core"] (동시 발급)
📋 발급 후 .env 설정: BOOTPAY_CLIENT_KEY=발급된_clientKey BOOTPAY_SECRET_KEY=발급된_secretKey
⚠️ 프로젝트가 선택되지 않았으면 먼저 browser_select_project로 프로젝트를 선택하세요. ⚠️ secret_key는 최초 1회만 반환됩니다. 반드시 안전한 곳에 저장하세요! (로그인 필요)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_keychain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 키체인 이름 (용도를 설명하는 이름 권장, 예: "커머스 개발용", "결제 연동 테스트용") | |
| targets | No | 발급 대상 (clientKey 종류 선택): - "internal" = 커머스용 clientKey (internal-api의 ProjectKeyChain 발급) - "core" = 결제용 clientKey (core-api의 AppKeyChain 발급) 둘 다 지정하면 동시에 발급됩니다. | |
| api_scopes | No | API 스코프 ID 목록 (list_api_scopes로 조회 가능). is_supervisor=true이면 무시됩니다. | |
| expires_at | No | 만료일 (ISO 8601 형식, null=무기한). 예: "2027-12-31T23:59:59+09:00" | |
| is_supervisor | No | supervisor 권한 여부 (true=모든 권한, false=선택한 스코프만) |