cURL
curl --request POST \ --url https://api.headlesscommerce.io/v1/admin/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "type": "secret" } '
{ "id": "<string>", "name": "<string>", "type": "secret", "mode": "live", "key_hint": "<string>", "is_active": true, "last_used_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "key": "<string>" }
응답에 원본 키가 1회만 반환됩니다. 이후에는 마스킹된 값만 조회 가능.
API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx
키 식별용 이름
secret
publishable
Created
live
test
마스킹된 키 (sk_live_...abc)
원본 키 (1회 반환)