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 "https://api.modernengineer.dev/entitlements/status" \
-H "Authorization: Bearer $SE_KEY"Phản hồi
{
"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ỗi | Khi nào |
|---|---|---|
| 401 | unauthenticated | Thiếu API key, hoặc key không hợp lệ. Có kèm header WWW-Authenticate. |