{"service":"ac-checker","brand":"Nerver","version":"v1","description":"ChatGPT AC token 401 + 优惠资格预检查","auth":{"required":false},"endpoints":[{"method":"GET","path":"/healthz","desc":"探活","response_example":{"ok":true,"service":"ac-checker","brand":"Nerver","promo_id":"plus-1-month-free","time":1779050000000}},{"method":"POST","path":"/api/v1/check","desc":"检查单个或批量 AC token","body_examples":[{"token":"eyJhbGciOi...","promoId":"plus-1-month-free"},{"tokens":["eyJ...","eyJ..."],"promoId":"plus-1-month-free"}],"response_fields":{"token_ok":"AC 是否仍有效 (false = 401 / JWT 已过期)","eligible":"是否享有优惠 (true = 进入支付页能正常应用 promo)","reason":"eligible | not-eligible | token-401 | jwt-expired | empty-token | fetch-error | http-error | unknown-coupon-state","coupon_state":"OpenAI 返回的 state 原值, 可能为 null","promo_id":"本次检查的优惠活动 id","status":"OpenAI 返回的 HTTP 状态码","email":"ChatGPT 账号邮箱 (从 JWT)","account_id":"ChatGPT account_id (从 JWT)","plan_type":"JWT 中的 plan_type 快照, 仅参考","jwt_expired":"本地解 JWT 后判断是否过期","jwt_exp_ms":"JWT 过期时间戳(ms)","jwt_exp_in_sec":"距离过期秒数 (负数 = 已过期)"},"response_example_single":{"token_ok":true,"eligible":true,"reason":"eligible","coupon_state":"eligible","promo_id":"plus-1-month-free","status":200,"email":"user@example.com","account_id":"acct-...","plan_type":"free","jwt_expired":false,"jwt_exp_ms":1779194976000,"jwt_exp_in_sec":86234},"response_example_batch":{"count":2,"promo_id":"plus-1-month-free","results":[{"token_ok":true,"eligible":true,"reason":"eligible"},{"token_ok":false,"eligible":false,"reason":"token-401"}]}},{"method":"GET","path":"/api/v1/check?token=...&promoId=...","desc":"GET 单查 (curl 友好)"},{"method":"GET","path":"/api/v1/stats","desc":"全局统计 (需鉴权)","response_example":{"since":1779000000000,"total":1234,"eligible":800,"not_eligible":200,"ac_invalid":180,"errors":54,"http_requests":410,"uptime_sec":3600,"since_sec":86400,"success_rate":0.6483,"ac_invalid_rate":0.1459}}],"aliases":{"/api/check":"/api/v1/check (向后兼容)"},"curl_examples":["curl -X POST -H 'content-type: application/json' -d '{\"token\":\"eyJ...\"}' http://YOUR_HOST:8787/api/v1/check","curl 'http://YOUR_HOST:8787/api/v1/check?token=eyJ...'","curl -X POST -H 'content-type: application/json' -d '{\"tokens\":[\"a\",\"b\"]}' http://YOUR_HOST:8787/api/v1/check"]}