Bỏ qua điều hướng
REST › entitlements.status

entitlements.status

GET/entitlements/status

Tài khoản của key có đọc được guide cho subscriber lúc này không: trạng thái quyền và ngày hết hạn, gói Polar nếu có, các product key đang dùng được (retail:<pack> là guide mua lẻ) và vai trò. Cần key.

Tham số

Verb này không nhận tham số.

Yêu cầu

curl
curl "https://api.modernengineer.dev/entitlements/status" \
  -H "Authorization: Bearer $SE_KEY"

Phản hồi

200 OK · application/json
{
  "accessible": true,
  "emailVerified": true,
  "isOperator": false,
  "entitlement": {
    "accessUntil": "2027-02-01T03:15:00.000Z",
    "productKey": "workflow-library-subscription",
    "revokedAt": null,
    "sourceType": "sepay",
    "state": "active"
  },
  "productKeys": [
    "workflow-library-subscription",
    "retail:orca-cook-plan"
  ],
  "roles": [
    "member"
  ],
  "subscription": null
}

Lỗi

MãLỗiKhi nào
401unauthenticatedThiếu API key, hoặc key không hợp lệ. Có kèm header WWW-Authenticate.

Trong MCP