메인 콘텐츠로 건너뛰기
GET
/
license_keys
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const licenseKey of client.licenseKeys.list()) {
  console.log(licenseKey.id);
}
{
  "items": [
    {
      "brand_id": "<string>",
      "business_id": "<string>",
      "created_at": "2024-01-01T00:00:00.000Z",
      "customer_id": "cus_123",
      "id": "lic_123",
      "instances_count": 123,
      "key": "<string>",
      "product_id": "<string>",
      "activations_limit": 5,
      "expires_at": "2024-12-31T23:59:59.000Z",
      "payment_id": "<string>",
      "subscription_id": "<string>"
    }
  ]
}
사용 중단된 API: 라이선스 키는 이제 Entitlements 시스템을 통해 관리됩니다. 발급된 라이선스 키를 나열하려면 List Grants를 사용하세요 (필터는 integration_type=license_key로 설정). 각 권한 부여에는 자신의 license_key 세부 정보가 포함되어 있습니다. 이 엔드포인트는 향후 릴리스에서 제거될 예정입니다.

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

쿼리 매개변수

page_size
integer<int32>

Page size default is 10 max is 100

필수 범위: x >= 0
page_number
integer<int32>

Page number default is 0

필수 범위: x >= 0
customer_id
string

Filter by customer ID

status
enum<string>

Filter by license key status

사용 가능한 옵션:
active,
expired,
disabled
product_id
string

Filter by product ID

created_at_gte
string<date-time>

Filter license keys created on or after this timestamp

created_at_lte
string<date-time>

Filter license keys created on or before this timestamp

source
enum<string>

Filter by license key source

사용 가능한 옵션:
auto,
import,
manual

응답

items
object[]
필수
마지막 수정일 2026년 6월 9일