{"components":{"schemas":{"Account":{"properties":{"alias":{"type":["string","null"]},"biz":{"type":"string"},"collector_status":{"enum":["connected","not_connected","needs_login","storage_error"],"type":"string"},"coverage_from":{"format":"date-time","type":["string","null"]},"coverage_to":{"format":"date-time","type":["string","null"]},"description":{"type":["string","null"]},"history_complete":{"type":"boolean"},"id":{"type":"string"},"identity_verified":{"type":"boolean"},"last_checked_at":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"subscription_status":{"enum":["not_subscribed","active","paused","cancelled"],"type":"string"},"update_interval_minutes":{"type":"integer"}},"type":"object"},"AccountResolveItem":{"properties":{"data":{"$ref":"#/components/schemas/Account"},"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"index":{"type":"integer"}},"type":"object"},"ApiError":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"error":{"description":"使用 code 稳定判断原因，message 用于展示，request_id 用于排查","properties":{"code":{"description":"稳定机器错误码","type":"string"},"message":{"description":"可展示的错误原因","type":"string"}},"type":"object"},"request_id":{"description":"诊断请求ID","type":"string"}},"type":"object"},"Article":{"properties":{"account_id":{"description":"来源公众号ID","type":"string"},"account_name":{"description":"来源公众号名称","type":"string"},"article_type":{"description":"article / picture / video","type":"string"},"author":{"description":"作者；缺失为null","type":["string","null"]},"biz":{"description":"公众号来源标识","type":"string"},"content_hash":{"description":"正文与来源字段的SHA256","type":"string"},"content_html":{"description":"仅 include=content_html 时返回已存的安全 HTML；未知为 null，不触发源站抓取","type":["string","null"]},"content_status":{"description":"available=正文可用；pending=待获取正文；restricted=访问受限；deleted=已删除","type":"string"},"content_text":{"description":"仅 include=content_text 时返回已存文本；未知为 null，不触发源站抓取","type":["string","null"]},"cover_url":{"description":"封面链接","type":["string","null"]},"data_version":{"type":"integer"},"digest":{"description":"来源摘要；缺失为null","type":["string","null"]},"first_seen_at":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"},"id":{"description":"稳定文章ID","type":"string"},"identity_key":{"description":"来源文章去重身份","type":"string"},"images":{"items":{"$ref":"#/components/schemas/Media"},"type":"array"},"is_original":{"description":"原文可识别的原创标记；未知为null","type":["boolean","null"]},"metrics":{"$ref":"#/components/schemas/ArticleMetrics","description":"include=metrics 时返回已存六项指标快照；缺失为 null，0为已取得的零值，observed_at 为实际采集时间；不触发采集且不改变文章 data_version"},"published_at":{"description":"源文章发布时间；未知为null","format":"date-time","type":["string","null"]},"publisher":{"description":"来源公众号","type":"string"},"title":{"description":"完整原文标题，API 不做网页列表的 30 字显示截断","type":"string"},"updated_at":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"},"url":{"description":"已移除登录凭据的来源链接","type":"string"},"videos":{"items":{"$ref":"#/components/schemas/Media"},"type":"array"},"word_count":{"description":"正文Unicode字符数；未取得文本时为null","type":["integer","null"]}},"type":"object"},"ArticleBatchItem":{"properties":{"data":{"$ref":"#/components/schemas/Article"},"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"id":{"type":"string"}},"type":"object"},"ArticleComment":{"properties":{"author_avatar_url":{"type":"string"},"author_liked":{"type":"boolean"},"author_nickname":{"type":"string"},"comment_id":{"type":"integer"},"content":{"type":"string"},"content_id":{"type":"string"},"created_at":{"type":"integer"},"has_media":{"type":"boolean"},"has_more_replies":{"type":"boolean"},"ip_location":{"oneOf":[{"$ref":"#/components/schemas/CommentIPLocation"},{"type":"null"}]},"is_elected":{"type":"boolean"},"is_top":{"type":"boolean"},"like_count":{"minimum":0,"type":["integer","null"]},"max_reply_id":{"type":["integer","null"]},"replies":{"items":{"$ref":"#/components/schemas/ArticleCommentReply"},"type":"array"},"replies_complete":{"type":"boolean"},"reply_job_status":{"type":"string"},"reply_last_error":{"type":["string","null"]},"reply_total_count":{"minimum":0,"type":["integer","null"]},"stored_reply_count":{"type":"integer"}},"type":"object"},"ArticleCommentRepliesPage":{"properties":{"article_id":{"type":"string"},"comment_numeric_id":{"type":"integer"},"content_id":{"type":"string"},"count":{"type":"integer"},"has_more":{"type":"boolean"},"has_more_replies":{"type":"boolean"},"job_status":{"type":"string"},"last_error":{"type":["string","null"]},"max_reply_id":{"type":["integer","null"]},"next_cursor":{"type":["string","null"]},"observed_at":{"format":"date-time","type":["string","null"]},"replies":{"items":{"$ref":"#/components/schemas/ArticleCommentReply"},"type":"array"},"replies_complete":{"type":"boolean"},"reply_total_count":{"minimum":0,"type":["integer","null"]},"stored_reply_count":{"type":"integer"}},"type":"object"},"ArticleCommentRepliesRefresh":{"properties":{"article_id":{"type":"string"},"content_id":{"type":"string"},"job_status":{"type":"string"},"last_error":{"type":["string","null"]},"max_pages":{"type":"integer"}},"type":"object"},"ArticleCommentReply":{"properties":{"author_avatar_url":{"type":"string"},"author_liked":{"type":"boolean"},"author_nickname":{"type":"string"},"content":{"type":"string"},"created_at":{"type":"integer"},"from_ai":{"type":"boolean"},"has_media":{"type":"boolean"},"ip_location":{"oneOf":[{"$ref":"#/components/schemas/CommentIPLocation"},{"type":"null"}]},"is_author":{"type":"boolean"},"is_elected":{"type":"boolean"},"like_count":{"minimum":0,"type":["integer","null"]},"reply_id":{"type":"integer"},"to_nickname":{"type":"string"},"to_reply_id":{"type":["integer","null"]}},"type":"object"},"ArticleCommentsPage":{"properties":{"article_id":{"type":"string"},"comment_enabled":{"type":["boolean","null"]},"comment_id":{"type":["string","null"]},"comments":{"items":{"$ref":"#/components/schemas/ArticleComment"},"type":"array"},"count":{"type":"integer"},"elected_comment_total_count":{"minimum":0,"type":["integer","null"]},"fetched_comment_count":{"type":"integer"},"fresh":{"type":"boolean"},"has_more":{"type":"boolean"},"has_more_source":{"type":"boolean"},"job_status":{"type":"string"},"last_error":{"type":["string","null"]},"max_pages":{"type":"integer"},"next_cursor":{"type":["string","null"]},"observed_at":{"format":"date-time","type":["string","null"]},"pages_fetched":{"type":"integer"},"source":{"type":["string","null"]},"state":{"type":"string"},"stop_reason":{"type":"string"},"total_count":{"minimum":0,"type":["integer","null"]}},"type":"object"},"ArticleFilter":{"additionalProperties":false,"properties":{"account_ids":{"description":"一批公众号ID；与collection_id互斥。不传时查询当前组织全部授权公众号","items":{"type":"string"},"maxItems":1000,"type":"array"},"article_ids":{"description":"可选：指定一批文章ID，用于勾选结果的导出；仍按组织订阅与可见性过滤","items":{"type":"string"},"maxItems":1000,"type":"array"},"article_type":{"enum":["article","picture","video"],"type":"string"},"collection_id":{"description":"已保存的公众号集合ID","type":"string"},"content_status":{"enum":["available","pending","deleted","restricted"],"type":"string"},"cursor":{"description":"原样使用next_cursor，不可自行拼接。绑定组织、过滤条件和快照，24小时过期","type":"string"},"include":{"description":"正文需articles:content权限；默认只返回元数据","items":{"enum":["content_text","content_html","media","metrics"],"type":"string"},"type":"array"},"is_original":{"type":"boolean"},"limit":{"default":20,"maximum":100,"minimum":1,"type":"integer"},"published_before":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"},"published_from":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"},"q":{"description":"已收录文章标题中的连续关键词","maxLength":200,"minLength":2,"type":"string"},"sort":{"default":"published_desc","enum":["published_desc","ingested_desc"],"type":"string"}},"type":"object"},"ArticleMetrics":{"properties":{"article_id":{"type":"string"},"collect_count":{"minimum":0,"type":["integer","null"]},"comment_count":{"minimum":0,"type":["integer","null"]},"comment_enabled":{"type":["boolean","null"]},"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"fresh":{"type":"boolean"},"job_status":{"type":"string"},"last_error":{"type":["string","null"]},"like_count":{"minimum":0,"type":["integer","null"]},"observed_at":{"format":"date-time","type":["string","null"]},"present_fields":{"type":"integer"},"read_count":{"minimum":0,"type":["integer","null"]},"share_count":{"minimum":0,"type":["integer","null"]},"source":{"type":"string"},"state":{"type":"string"},"wow_count":{"minimum":0,"type":["integer","null"]}},"type":"object"},"ArticlePage":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"coverage":{"items":{"$ref":"#/components/schemas/Coverage"},"type":"array"},"data":{"items":{"$ref":"#/components/schemas/Article"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"description":"下一页游标，末页为null","type":["string","null"]},"request_id":{"description":"诊断请求ID","type":"string"},"snapshot":{"properties":{"expires_at":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"},"sequence":{"type":"integer"}},"type":"object"}},"type":"object"},"BillingCharge":{"properties":{"amount_micros":{"description":"本次实际超额费用，1000000 micros = 1 元","type":"integer"},"replayed":{"type":"boolean"},"units":{"description":"当前请求实际结算的文章额度，已在本账期计费的文章不重复计入","type":"integer"}},"type":"object"},"ChangeEvent":{"properties":{"account_id":{"type":"string"},"article_id":{"type":"string"},"data_version":{"type":"integer"},"event_id":{"type":"string"},"occurred_at":{"format":"date-time","type":["string","null"]},"sequence":{"type":"integer"},"type":{"enum":["article.created","article.updated","article.deleted"],"type":"string"}},"type":"object"},"Collection":{"properties":{"account_count":{"type":"integer"},"account_ids":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"CommentIPLocation":{"properties":{"city":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"}},"type":"object"},"Coverage":{"properties":{"account_id":{"description":"公众号ID","type":"string"},"collector_status":{"description":"Go 采集节点的实际连接状态","enum":["connected","not_connected","needs_login","storage_error"],"type":"string"},"earliest_published_at":{"description":"已收录最早发布时间","type":["string","null"]},"history_complete":{"type":"boolean"},"last_checked_at":{"description":"实际来源检查时间，非数据库查询时间","type":["string","null"]},"latest_published_at":{"description":"已收录最新发布时间","type":["string","null"]},"scope":{"const":"stored_articles","type":"string"}},"type":"object"},"ExportEstimate":{"properties":{"estimated_amount_micros":{"type":"integer"},"expires_in_seconds":{"type":"integer"},"included_units":{"type":"integer"},"total":{"type":"integer"},"truncated":{"type":"boolean"}},"type":"object"},"ExportTask":{"properties":{"attempt":{"type":"integer"},"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":["string","null"]},"download_url":{"type":["string","null"]},"error_code":{"type":["string","null"]},"expires_at":{"format":"date-time","type":["string","null"]},"format":{"enum":["json","jsonl","csv"],"type":"string"},"id":{"type":"string"},"max_rows":{"type":"integer"},"row_count":{"type":"integer"},"snapshot_sequence":{"type":"integer"},"status":{"enum":["queued","running","completed","failed","cancelled","expired"],"type":"string"}},"type":"object"},"HistoricalRequest":{"properties":{"account_ids":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":["string","null"]},"filters":{"$ref":"#/components/schemas/ArticleFilter"},"id":{"type":"string"},"message":{"type":"string"},"status":{"const":"awaiting_collector","type":"string"}},"type":"object"},"KeywordIndex":{"properties":{"anomalies":{"items":{"$ref":"#/components/schemas/KeywordIndexAnomaly"},"type":"array"},"fetched_at":{"format":"date-time","type":["string","null"]},"sources":{"properties":{"days":{"items":{"$ref":"#/components/schemas/KeywordIndexSourceDay"},"type":"array"},"shares":{"items":{"$ref":"#/components/schemas/KeywordIndexShare"},"type":"array"}},"type":"object"},"stale":{"type":"boolean"},"stat_date":{"format":"date","type":"string"},"trend":{"properties":{"coverage":{"type":"string"},"day_over_day_percent":{"type":["number","null"]},"latest":{"$ref":"#/components/schemas/KeywordIndexPoint"},"points":{"items":{"$ref":"#/components/schemas/KeywordIndexPoint"},"type":"array"},"query":{"description":"精确关键词，最多20个Unicode字符；仅清除首尾空白","maxLength":20,"minLength":1,"type":"string"}},"type":"object"}},"type":"object"},"KeywordIndexAnomaly":{"properties":{"change_percent":{"type":["number","null"]},"current":{"minimum":0,"type":["integer","null"]},"current_sources":{"properties":{"ad":{"minimum":0,"type":["integer","null"]},"finder":{"minimum":0,"type":["integer","null"]},"live":{"minimum":0,"type":["integer","null"]},"mpdoc":{"minimum":0,"type":["integer","null"]},"query":{"minimum":0,"type":["integer","null"]},"w1w":{"minimum":0,"type":["integer","null"]}},"type":"object"},"date":{"format":"date","type":"string"},"previous":{"minimum":0,"type":["integer","null"]},"previous_sources":{"properties":{"ad":{"minimum":0,"type":["integer","null"]},"finder":{"minimum":0,"type":["integer","null"]},"live":{"minimum":0,"type":["integer","null"]},"mpdoc":{"minimum":0,"type":["integer","null"]},"query":{"minimum":0,"type":["integer","null"]},"w1w":{"minimum":0,"type":["integer","null"]}},"type":"object"},"query":{"description":"精确关键词，最多20个Unicode字符；仅清除首尾空白","maxLength":20,"minLength":1,"type":"string"},"record_id":{"minimum":0,"type":["integer","null"]}},"type":"object"},"KeywordIndexPoint":{"properties":{"date":{"format":"date","type":"string"},"value":{"minimum":0,"type":["integer","null"]}},"type":"object"},"KeywordIndexShare":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"percent":{"type":["number","null"]},"score":{"minimum":0,"type":["integer","null"]}},"type":"object"},"KeywordIndexSourceDay":{"properties":{"date":{"format":"date","type":"string"},"percent":{"properties":{"ad":{"type":["number","null"]},"finder":{"type":["number","null"]},"live":{"type":["number","null"]},"mpdoc":{"type":["number","null"]},"query":{"type":["number","null"]},"w1w":{"type":["number","null"]}},"type":"object"},"scores":{"properties":{"ad":{"minimum":0,"type":["integer","null"]},"finder":{"minimum":0,"type":["integer","null"]},"live":{"minimum":0,"type":["integer","null"]},"mpdoc":{"minimum":0,"type":["integer","null"]},"query":{"minimum":0,"type":["integer","null"]},"w1w":{"minimum":0,"type":["integer","null"]}},"type":"object"},"total":{"minimum":0,"type":["integer","null"]}},"type":"object"},"KeywordMonitor":{"properties":{"created_at":{"format":"date-time","type":["string","null"]},"day_over_day_percent":{"type":["number","null"]},"error_message":{"type":"string"},"fetched_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"last_attempt_at":{"format":"date-time","type":["string","null"]},"last_error":{"type":["string","null"]},"last_success_at":{"format":"date-time","type":["string","null"]},"latest":{"minimum":0,"type":["integer","null"]},"next_run_at":{"format":"date-time","type":["string","null"]},"pause_reason":{"type":"string"},"query":{"description":"精确关键词，最多20个Unicode字符；仅清除首尾空白","maxLength":20,"minLength":1,"type":"string"},"query_id":{"type":"string"},"query_status":{"type":["string","null"]},"stat_date":{"format":"date","type":["string","null"]},"status":{"enum":["active","paused","deleted"],"type":"string"}},"type":"object"},"KeywordMonitorList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/KeywordMonitor"},"type":"array"},"limit":{"minimum":0,"type":["integer","null"]},"used":{"minimum":0,"type":["integer","null"]}},"type":"object"},"Media":{"properties":{"alt":{"description":"原文替代文字","type":"string"},"height":{"type":["integer","null"]},"url":{"description":"媒体链接，不保证来源链接永久可用","type":"string"},"width":{"type":["integer","null"]}},"type":"object"},"Plan":{"properties":{"account_limit":{"type":"integer"},"annual_price_cents":{"type":"integer"},"api_limit":{"type":"integer"},"code":{"type":"string"},"currency":{"type":"string"},"data_limit":{"type":"integer"},"expires_at":{"format":"date-time","type":["string","null"]},"export_limit":{"type":"integer"},"features":{"items":{"type":"string"},"type":"array"},"history_days":{"description":"已收录文章的历史访问窗口，单位天；0 表示不限制天数，不表示完整历史","type":"integer"},"id":{"type":"string"},"keyword_monitor_limit":{"description":"独立关注词名额，暂停仍占用，移除释放","maximum":10000,"minimum":0,"type":"integer"},"metering":{"description":"records 为文章额度；calls 为旧版成功调用额度","type":"string"},"min_interval_minutes":{"type":"integer"},"name":{"type":"string"},"overage_micros":{"description":"每条超额文章价格，1000000 micros = 1 元；是否允许超额仍受钱包开关和预算限制","type":"integer"},"price_cents":{"type":"integer"},"tier":{"type":"integer"},"version":{"type":"integer"},"webhook_limit":{"type":"integer"}},"type":"object"},"RequestLog":{"properties":{"created_at":{"format":"date-time","type":["string","null"]},"duration_ms":{"type":"integer"},"error_code":{"type":"string"},"id":{"type":"integer"},"key_id":{"type":"string"},"method":{"type":"string"},"operation":{"type":"string"},"request_id":{"type":"string"},"status_code":{"type":"integer"}},"type":"object"},"Subscription":{"properties":{"account_id":{"type":"string"},"account_name":{"type":"string"},"article_count":{"description":"当前平台记录的来源文章数；实际可读取结果仍受套餐历史与组织权限限制","type":"integer"},"avatar_url":{"description":"公众号真实头像链接；尚未取得时为null","type":["string","null"]},"collection_state":{"description":"首次导入和自动监测的实际状态；active 订阅不等于导入完成","type":"string"},"collector_status":{"type":"string"},"created_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"identity_verified":{"type":"boolean"},"last_checked_at":{"format":"date-time","type":["string","null"]},"last_ingested_at":{"format":"date-time","type":["string","null"]},"status":{"enum":["active","paused","cancelled"],"type":"string"},"update_interval_minutes":{"type":"integer"},"updated_at":{"format":"date-time","type":["string","null"]}},"type":"object"},"SubscriptionInput":{"properties":{"account_id":{"description":"先通过公众号目录或识别接口取得ID","type":"string"},"update_interval_minutes":{"description":"检查间隔（分钟）；体验套餐仅10080，其他套餐可选值由usage.subscription_interval_options返回","enum":[720,1440,10080],"type":"integer"}},"required":["account_id"],"type":"object"},"Usage":{"properties":{"api_access":{"description":"API 使用资格与独立的体验调用次数，不等于文章额度","properties":{"call_limit":{"type":["integer","null"]},"calls_remaining":{"type":["integer","null"]},"calls_used":{"type":"integer"},"enabled":{"type":"boolean"},"trial":{"type":"boolean"}},"type":"object"},"api_calls_remaining":{"description":"records 套餐为 data_units_remaining 的兼容别名","type":"integer"},"api_calls_used":{"description":"records 套餐为 data_units_used 的兼容别名；calls 套餐为成功调用次数","type":"integer"},"collector_status":{"type":"string"},"data_units_remaining":{"description":"当前包内可用文章额度，已扣除冻结量；不等于无限余额额度","type":"integer"},"data_units_reserved":{"type":"integer"},"data_units_used":{"type":"integer"},"keyword_monitor_limit":{"minimum":0,"type":["integer","null"]},"monitored_accounts":{"type":"integer"},"monitored_keywords":{"minimum":0,"type":["integer","null"]},"operations":{"items":{"properties":{"calls":{"type":"integer"},"operation":{"type":"string"}},"type":"object"},"type":"array"},"overage_reserved_micros":{"type":"integer"},"overage_spent_micros":{"type":"integer"},"period":{"type":"string"},"period_end":{"format":"date-time","type":["string","null"]},"period_start":{"format":"date-time","type":["string","null"]},"plan":{"$ref":"#/components/schemas/Plan"},"source_slots_used":{"type":"integer"},"subscription_capacity":{"description":"当前有效的订阅名额（含账期占用与权限限制）","properties":{"cycle_slots_used":{"description":"本账期已占用的去重来源数，取消或暂停不退回","type":"integer"},"limit":{"type":"integer"},"remaining":{"type":"integer"},"used":{"type":"integer"}},"type":"object"},"subscription_interval_options":{"description":"当前套餐可选的检查间隔，单位分钟","items":{"type":"integer"},"type":"array"},"timezone":{"enum":["UTC","Asia/Shanghai"],"type":"string"},"wallet":{"$ref":"#/components/schemas/Wallet"}},"type":"object"},"Wallet":{"properties":{"auto_renew":{"type":"boolean"},"available_micros":{"type":"integer"},"balance_micros":{"type":"integer"},"overage_enabled":{"type":"boolean"},"reserved_micros":{"type":"integer"},"spend_limit_cents":{"type":"integer"}},"type":"object"},"WeChatArticleCandidate":{"properties":{"article_id":{"description":"身份完整时取得稳定文章ID，用于结果导入与账期去重","type":"string"},"biz":{"description":"来源biz","type":"string"},"cover":{"description":"封面链接","type":"string"},"digest":{"description":"来源摘要","type":"string"},"item_show_type":{"type":["integer","null"]},"published_at":{"format":"date-time","type":["string","null"]},"publisher":{"description":"来源名称","type":"string"},"title":{"description":"完整标题","type":"string"},"unresolved_reason":{"description":"身份未取得时保留原因，不伪造标识","type":"string"},"url":{"description":"清除凭据的公开原文链接","type":"string"}},"type":"object"},"WeChatArticleSearchPage":{"properties":{"articles":{"items":{"$ref":"#/components/schemas/WeChatArticleCandidate"},"type":"array"},"fetched_at":{"format":"date-time","type":"string"},"has_more":{"type":"boolean"},"next_cursor":{"description":"后续页业务游标","type":"string"},"publisher":{"$ref":"#/components/schemas/WeChatPublisher"},"query":{"description":"查询词","type":"string"},"sort":{"description":"排序","type":"string"}},"type":"object"},"WeChatPublisher":{"properties":{"alias":{"type":["string","null"]},"avatar_url":{"type":["string","null"]},"biz":{"type":["string","null"]},"description":{"type":["string","null"]},"ip_location":{"type":["string","null"]},"name":{"description":"真实名称","type":"string"},"original_article_count":{"type":["integer","null"]},"profile_url":{"type":["string","null"]},"service_type":{"type":["integer","null"]},"username":{"description":"公众号原始身份","type":"string"},"verify_description":{"type":["string","null"]},"verify_flag":{"type":["integer","null"]}},"type":"object"},"WeChatPublisherPage":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/WeChatPublisher"},"type":"array"},"fetched_at":{"format":"date-time","type":"string"},"has_more":{"type":"boolean"},"next_cursor":{"description":"后续页业务游标；末页为空","type":"string"},"query":{"description":"查询词","type":"string"},"total_hint":{"type":["integer","null"]}},"type":"object"},"WeChatPublisherProfile":{"properties":{"account":{"$ref":"#/components/schemas/WeChatPublisher"},"fetched_at":{"format":"date-time","type":"string"}},"type":"object"},"WeChatQuery":{"properties":{"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"error_code":{"type":["string","null"]},"error_message":{"description":"可展示的简短原因","type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"description":"持久查询ID","type":"string"},"kind":{"enum":["account_search","account_profile","article_search","account_articles","keyword_index"],"type":"string"},"result":{"anyOf":[{"$ref":"#/components/schemas/WeChatPublisherPage"},{"$ref":"#/components/schemas/WeChatArticleSearchPage"},{"$ref":"#/components/schemas/WeChatPublisherProfile"},{"type":"null"},{"$ref":"#/components/schemas/KeywordIndex"}]},"status":{"enum":["queued","waiting_login","running","ready","failed","uncertain","cancelled"],"type":"string"}},"type":"object"},"WeChatQueryImportInput":{"additionalProperties":false,"properties":{"article_ids":{"description":"文章搜索结果选中的article_id；与usernames按查询类型使用","items":{"type":"string"},"maxItems":1000,"type":"array"},"collection_id":{"description":"可选，本组织集合；还需collections:write","type":"string"},"update_interval_minutes":{"description":"省略/0使用套餐默认值，其他值仍校验套餐允许范围","enum":[0,720,1440,10080],"type":"integer"},"usernames":{"description":"公众号/资料结果选中的username","items":{"type":"string"},"maxItems":1000,"type":"array"}},"type":"object"},"WeChatQueryInput":{"additionalProperties":false,"properties":{"cursor":{"description":"原样使用业务next_cursor；绑定当前组织、查询条件、原节点和账号代次，25分钟有效","pattern":"^[0-9a-f]{64}$","type":"string"},"kind":{"enum":["account_search","account_profile","article_search","account_articles","keyword_index"],"type":"string"},"query":{"description":"搜索或指数的关键词；keyword_index仅允许1–20字符，其他搜索1–100字符","maxLength":100,"minLength":1,"type":"string"},"sort":{"description":"仅article_search；默认relevance","enum":["relevance","latest","hot"],"type":"string"},"username":{"description":"account_profile和account_articles必填；使用查询结果中的gh_公众号身份。account_articles读取该公众号原生历史列表，不是关键词搜索。","type":"string"}},"required":["kind"],"type":"object"},"WebhookDelivery":{"properties":{"attempt":{"type":"integer"},"created_at":{"format":"date-time","type":["string","null"]},"delivered_at":{"format":"date-time","type":["string","null"]},"delivery_id":{"type":"string"},"endpoint_id":{"type":"string"},"error_code":{"type":["string","null"]},"event_id":{"type":"string"},"http_status":{"type":["integer","null"]},"id":{"type":"string"},"next_attempt_at":{"format":"date-time","type":["string","null"]},"status":{"type":"string"}},"type":"object"},"WebhookEndpoint":{"properties":{"created_at":{"format":"date-time","type":["string","null"]},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"secret":{"description":"仅创建或轮换的当次响应返回，不出现在列表","type":"string"},"url":{"type":"string"}},"type":"object"},"WebhookInput":{"properties":{"name":{"description":"端点名称","type":"string"},"url":{"description":"仅HTTPS公网地址，投递时检查DNS并固定连接IP，禁止重定向","format":"uri","type":"string"}},"required":["name","url"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"API Key","scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"2185359703@qq.com","name":"拾文接入支持","url":"https://shopscope-monitor.top/#contact"},"description":"通过 API Key 管理公众号订阅、查询文章、同步更新与导出已存数据。\n\n业务接口需要有效套餐。体验套餐整个体验期共 10 次成功 API 调用，所有 Key 共享；未开通或到期返回 plan_inactive，体验次数用完返回 trial_api_limit_reached。\n\n使用 Authorization: Bearer <API Key> 认证。[创建密钥](/console?view=keys) · [在线调试与额度计算](/playground)\n","summary":"公众号订阅、文章查询、增量同步与数据交付","title":"拾文业务 API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/accounts":{"get":{"description":"需要权限：`accounts:read`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"get_accounts","parameters":[{"in":"query","name":"q","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Account"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询公众号目录","tags":["公众号"],"x-required-scopes":["accounts:read"]}},"/accounts/resolve":{"post":{"description":"权限：subscriptions:write。\n\n提供有效 biz 或公开微信文章 HTTPS 链接，返回一个公众号对象。支持含 __biz 的长链接与 /s/ 短链接；短链接通过匿名公开页面识别身份。name 只是名称提示，不等于来源已核验。不接受登录 Cookie 或微信会话凭据。","operationId":"post_accounts_resolve","requestBody":{"content":{"application/json":{"schema":{"properties":{"article_url":{"description":"公开微信文章长链接或 /s/ 短链接；短链接匿名识别公众号身份","type":"string"},"biz":{"description":"有效公众号biz","type":"string"},"name":{"description":"未核验来源的名称提示","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Account"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"通过biz或文章链接识别公众号","tags":["公众号"],"x-required-scopes":["subscriptions:write"]}},"/accounts/resolve-batch":{"post":{"description":"权限：subscriptions:write。\n\n一次 1–1000 项，按 index 返回 data 或 error。涉及短链接建议每批最多 20 项，未完成项可重试；识别成功不代表已经订阅。","operationId":"post_accounts_resolve_batch","requestBody":{"content":{"application/json":{"schema":{"properties":{"items":{"items":{"properties":{"article_url":{"description":"公开文章长链接或短链接，建议每批最多20个短链接","type":"string"},"biz":{"description":"有效biz","type":"string"},"name":{"description":"未核验名称提示","type":"string"}},"type":"object"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["items"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/AccountResolveItem"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"批量识别公众号并返回逐项结果","tags":["公众号"],"x-required-scopes":["subscriptions:write"]}},"/accounts/{id}":{"get":{"description":"需要权限：`accounts:read`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"get_accounts_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Account"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询公众号详情与覆盖范围","tags":["公众号"],"x-required-scopes":["accounts:read"]}},"/article-changes":{"get":{"description":"权限：articles:read。\n\n按平台事件顺序同步 article.created、article.updated、article.deleted，包含后补录的旧文章。先用 start=now 建立位置，再查询历史快照；之后原样保存和使用 next_cursor，空页也保存。最多 100 个公众号，增量游标 30 天有效，来源范围变化必须重新初始化。事件不包含正文，按需获取文章详情。","operationId":"get_article_changes","parameters":[{"in":"query","name":"account_ids","schema":{"type":"string"}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"in":"query","name":"start","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/ChangeEvent"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取得新建、修改和删除事件","tags":["增量同步"],"x-required-scopes":["articles:read"]}},"/article-parse-task":{"post":{"description":"需要权限：articles:content。一步创建并等待单篇正文解析；query 参数 article_id、include、wait（1–75秒，默认60）。内部仍使用异步任务，适合Agent运行时；超时返回202和task_id，可继续查询 /article-parse-tasks/{id}。","operationId":"post_article_parse_task","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"创建并等待单篇正文解析结果","tags":["正文解析"],"x-required-scopes":["articles:content"]}},"/article-parse-tasks":{"get":{"description":"需要权限：articles:content。列出当前组织最近20个内存解析任务；任务过期或服务重启后不再存在。","operationId":"get_article_parse_tasks","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询正文解析任务","tags":["正文解析"],"x-required-scopes":["articles:content"]},"post":{"description":"需要权限：articles:content。创建1–100篇文章的异步正文解析任务。服务端按需读取微信原文，并用与网页导出相同的解析器提取正文；不写回文章库，任务和结果只在内存保留30分钟。单篇失败不影响整批；质量门禁会拦截验证页、空正文、模板页和低信号内容。可用 include 选择 content_text、content_html、content_markdown，默认只返回 content_text。","operationId":"post_article_parse_tasks","responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"创建异步正文解析任务","tags":["正文解析"],"x-required-scopes":["articles:content"]}},"/article-parse-tasks/{id}":{"delete":{"description":"需要权限：articles:content。取消排队或运行中的任务；已完成结果不会被继续处理。","operationId":"delete_article_parse_tasks_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取消正文解析任务","tags":["正文解析"],"x-required-scopes":["articles:content"]},"get":{"description":"需要权限：articles:content。查询任务进度、成功/失败数、质量分布和逐篇摘要；任务运行中不返回逐篇正文。","operationId":"get_article_parse_tasks_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询正文解析任务状态","tags":["正文解析"],"x-required-scopes":["articles:content"]}},"/article-parse-tasks/{id}/results":{"get":{"description":"需要权限：articles:content。任务完成或部分完成后返回逐篇正文与质量信息；任务未完成返回409。结果只保存在内存，30分钟后过期。","operationId":"get_article_parse_tasks_id_results","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取得正文解析结果","tags":["正文解析"],"x-required-scopes":["articles:content"]}},"/article-parse-tasks/{id}/wait":{"get":{"description":"需要权限：articles:content。长轮询等待任务进入终态，timeout 可选1–75秒，默认60秒；超时返回当前进度。","operationId":"get_article_parse_tasks_id_wait","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"等待正文解析任务完成","tags":["正文解析"],"x-required-scopes":["articles:content"]}},"/articles":{"get":{"description":"权限：articles:read。\n\n查询已授权、已收录的文章，q 仅匹配标题连续子串（2–200 字符）。默认不返回正文；include 可选 content_text、content_html、media、metrics。metrics 只读取已保存的六项指标快照，未采集为 null，不触发采集。列表中的缺失正文保持为空，不触发抓取。\n\nGET 最多 100 个公众号；account_ids 和 collection_id 互斥。首次请求固定快照，后续保留全部筛选条件并传 next_cursor，每页重新校验授权。结果只代表 coverage 内的已收录范围，未知发布时间不进入带时间条件的结果。","operationId":"get_articles","parameters":[{"in":"query","name":"account_ids","required":false,"schema":{"description":"逗号分隔多个值","type":"string"}},{"in":"query","name":"article_ids","required":false,"schema":{"description":"逗号分隔多个值","type":"string"}},{"in":"query","name":"collection_id","required":false,"schema":{"description":"已保存的公众号集合ID","type":"string"}},{"in":"query","name":"published_from","required":false,"schema":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"}},{"in":"query","name":"published_before","required":false,"schema":{"description":"带时区的RFC3339时间，例如2026-10-01T00:00:00+08:00；起点包含，终点不包含","format":"date-time","type":"string"}},{"in":"query","name":"q","required":false,"schema":{"description":"已收录文章标题中的连续关键词","maxLength":200,"minLength":2,"type":"string"}},{"in":"query","name":"article_type","required":false,"schema":{"enum":["article","picture","video"],"type":"string"}},{"in":"query","name":"is_original","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"content_status","required":false,"schema":{"enum":["available","pending","deleted","restricted"],"type":"string"}},{"in":"query","name":"include","required":false,"schema":{"description":"逗号分隔多个值","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"原样使用next_cursor，不可自行拼接。绑定组织、过滤条件和快照，24小时过期","type":"string"}},{"in":"query","name":"sort","required":false,"schema":{"default":"published_desc","enum":["published_desc","ingested_desc"],"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlePage"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"按单个、批量公众号与时间检索文章","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/batch":{"post":{"description":"权限：articles:read。\n\n一次 1–100 个文章 ID，按输入顺序返回每项 data 或 error。已存正文需显式 include 和 articles:content 权限。records 套餐缺正文项返回 content_not_available，其他成功项仍可返回；include 可传 metrics 读取已有指标。错误项不扣文章额度。请逐项检查，不要仅凭 HTTP 200 判断全部成功。","operationId":"post_articles_batch","parameters":[{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"article_ids":["art_example"],"include":["content_text","media","metrics"]},"schema":{"properties":{"article_ids":{"items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array"},"include":{"description":"正文需articles:content权限；默认只返回元数据","items":{"enum":["content_text","content_html","media","metrics"],"type":"string"},"type":"array"}},"required":["article_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/ArticleBatchItem"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"批量取得指定文章","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/metrics/batch":{"post":{"description":"每次传1–100个 article_ids，批量读取已有六项指标快照。重复 ID 去重，无权读取或不存在的项目返回逐项 error；读取不触发采集，缺失值为 null，真实0保留。使用 articles:read 权限，只读成员可读。","operationId":"post_articles_metrics_batch","parameters":[{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"article_ids":["art_example"]},"schema":{"additionalProperties":false,"properties":{"article_ids":{"items":{"description":"已授权文章ID","type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":true}},"required":["article_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/ArticleMetrics"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"批量读取文章互动指标快照","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/metrics/refresh":{"post":{"description":"需要权限：articles:read。每次1至100篇已授权文章，202表示任务已接受。指标HTTP请求与列表并行；最多两路，忙时等待。五分钟内复用快照。只读成员不能发起刷新；数据不保证实时或六项齐全。只保存计数与采集时间，不保存原始HTML、不执行页面脚本、不解析正文。","operationId":"post_articles_metrics_refresh","parameters":[{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"article_ids":["art_example"]},"schema":{"additionalProperties":false,"properties":{"article_ids":{"items":{"description":"已授权文章ID","type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":true}},"required":["article_ids"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/ArticleMetrics"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"批量排队刷新文章互动指标","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/search":{"post":{"description":"权限：articles:read。\n\n与 GET /articles 使用相同的标题检索、权限与快照规则，JSON 数组最多包含 1000 个公众号。可使用 collection_id 复用集合；与 account_ids 互斥。include 为数组，继续分页时在请求体传原 next_cursor 并保持其他条件不变。","operationId":"post_articles_search","parameters":[{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"include":["media","metrics"],"limit":20,"sort":"published_desc"},"schema":{"$ref":"#/components/schemas/ArticleFilter"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlePage"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"复杂条件文章查询","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}":{"get":{"description":"权限：articles:read。\n\n按稳定 ID 取得元数据，默认含媒体；include=metrics 附带六项指标、observed_at 与快照状态。include 选择已存正文时另需 articles:content 权限。API 不补取或解析公开原文。\n\n新版 records 套餐显式请求正文但文章无正文时，返回 409 content_not_available 且不扣额度；可使用 include=media 读取元数据。来源字段未知为 null，完整标题不会截断。","operationId":"get_articles_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"include","schema":{"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Article"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"获取文章详情","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}/comments":{"get":{"description":"需要权限：articles:read。读取已保存的文章公开评论快照与分页列表（含内联作者回复与读者回复）。仅投影公开字段，剥离读者私有身份与好友标记；缺失数值为 null，真实 0 保留。读取不触发远程采集，同一账期同一文章不重复扣文章额度。","operationId":"get_articles_id_comments","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"replies_limit","required":false,"schema":{"default":5,"maximum":50,"minimum":0,"type":"integer"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"上一页返回的 next_cursor","type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ArticleCommentsPage"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"获取文章评论列表快照与分页","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}/comments/refresh":{"post":{"description":"需要权限：articles:read。排队异步采集文章公开评论与内联回复，202 表示任务已接受；可选 max_pages（1–20，默认5）。五分钟内复用已有新鲜快照；只读成员不能发起刷新，不保存文章原始 HTML。","operationId":"post_articles_id_comments_refresh","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"max_pages":5},"schema":{"additionalProperties":false,"properties":{"max_pages":{"default":5,"description":"可选：本次最多拉取页数（1–20，默认5）","maximum":20,"minimum":1,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ArticleCommentsPage"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"排队刷新文章评论与内联回复","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}/comments/{content_id}/replies":{"get":{"description":"需要权限：articles:read。按 reply_id 顺序分页读取单条评论已保存的公开回复（含作者回复 is_author 与楼中楼目标 to_reply_id）。读取不触发远程采集，同一账期同一文章不重复扣文章额度。","operationId":"get_articles_id_comments_content_id_replies","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"评论条目返回的 content_id","in":"path","name":"content_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"cursor","required":false,"schema":{"description":"上一页返回的 next_cursor","type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ArticleCommentRepliesPage"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"获取单条评论回复列表与分页","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}/comments/{content_id}/replies/refresh":{"post":{"description":"需要权限：articles:read。排队展开单条评论的更多公开回复，202 表示任务已接受；自动过滤已保存的内联回复 ID。只读成员不能发起刷新，不保存文章原始 HTML。","operationId":"post_articles_id_comments_content_id_replies_refresh","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"评论条目返回的 content_id","in":"path","name":"content_id","required":true,"schema":{"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"max_pages":5},"schema":{"additionalProperties":false,"properties":{"max_pages":{"default":5,"description":"可选：本次最多拉取页数（1–20，默认5）","maximum":20,"minimum":1,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ArticleCommentRepliesRefresh"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"排队展开单条评论的更多回复","tags":["文章"],"x-required-scopes":["articles:read"]}},"/articles/{id}/metrics":{"get":{"description":"需要权限：articles:read。返回阅读、点赞、在看、分享、评论和收藏的最近一次指标快照。缺失为 null，0 仅表示已取得的零值；observed_at 为实际采集时间。读取不触发远程请求，同一账期同一文章不重复扣文章额度。","operationId":"get_articles_id_metrics","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"新版套餐在24小时内使用同一标识重试相同条件和数据版本，不重复扣额；更换条件或版本返回409","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ArticleMetrics"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"获取文章互动指标快照","tags":["文章"],"x-required-scopes":["articles:read"]}},"/collections":{"get":{"description":"需要权限：`accounts:read`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"get_collections","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Collection"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"列出命名集合","tags":["公众号集合"],"x-required-scopes":["accounts:read"]},"post":{"description":"需要权限：`collections:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"post_collections","requestBody":{"content":{"application/json":{"example":{"account_ids":["oa_example"],"name":"行业观察"},"schema":{"properties":{"account_ids":{"description":"一批公众号ID；与collection_id互斥。不传时查询当前组织全部授权公众号","items":{"type":"string"},"maxItems":1000,"type":"array"},"name":{"description":"集合名称","type":"string"}},"required":["name","account_ids"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Collection"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"保存一批公众号为集合","tags":["公众号集合"],"x-required-scopes":["collections:write"]}},"/collections/{id}":{"delete":{"description":"需要权限：`collections:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"delete_collections_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"删除公众号集合","tags":["公众号集合"],"x-required-scopes":["collections:write"]},"put":{"description":"需要权限：`collections:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"put_collections_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"properties":{"account_ids":{"description":"一批公众号ID；与collection_id互斥。不传时查询当前组织全部授权公众号","items":{"type":"string"},"maxItems":1000,"type":"array"},"name":{"description":"集合名称","type":"string"}},"required":["name","account_ids"],"type":"object"},{"properties":{"append_account_ids":{"description":"原子追加公众号，保留现有成员；不能同时传name或account_ids","items":{"type":"string"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["append_account_ids"],"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Collection"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"替换公众号集合","tags":["公众号集合"],"x-required-scopes":["collections:write"]}},"/exports":{"get":{"description":"权限：articles:read。\n\n固定查询版本快照并排队导出。默认包含正文和媒体，受内容权限、条数与256MiB文件上限限制；超限任务明确失败，不截断后声称成功。可在状态接口取得带认证的下载地址。","operationId":"get_exports","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/ExportTask"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询导出任务","tags":["批量导出"],"x-required-scopes":["articles:read"]},"post":{"description":"权限：exports:write。\n\nAPI 在服务端将文章内容固定为版本快照，导出 json / jsonl / csv；默认附带已采集的六项指标，显式 include 可选 metrics。指标取文件生成时已有快照，以 observed_at 为准，不等待采集完成。不会抓取、解析或补齐缺失正文。默认 include 正文和媒体，正文需要 articles:content；仅需元数据和指标可设置 include=[\"media\",\"metrics\"]。\n\n须传 Idempotency-Key；创建时冻结预计额度和费用，成功时结算，失败或取消释放余量。max_cost_micros 可限定本任务超额费用。最多同时 3 个待处理任务，受套餐条数与 256 MiB 文件上限限制，超限明确失败。网页客户端导出的格式、解析和后台进度不由此 API 控制。","operationId":"post_exports","parameters":[{"description":"同一业务请求重试使用相同键；不同请求体使用同一键返回409","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"filters":{"include":["media","metrics"]},"format":"jsonl","max_cost_micros":0},"schema":{"properties":{"filters":{"$ref":"#/components/schemas/ArticleFilter"},"format":{"enum":["json","jsonl","csv"],"type":"string"},"max_cost_micros":{"description":"可选的本任务超额费用上限，1000000为1元；超出时不创建任务","minimum":0,"type":"integer"}},"required":["format","filters"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ExportTask"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"创建固定快照的异步导出","tags":["批量导出"],"x-required-scopes":["exports:write"]}},"/exports/estimate":{"post":{"description":"权限：exports:write。\n\n按筛选范围估算可导出的文章数、包内额度与超额费用，不建立任务、不冻结或扣费。金额单位为 micros（1000000 = 1 元）。这是当前状态估算，创建任务会重新校验；filters 不要传分页 cursor。","operationId":"post_exports_estimate","requestBody":{"content":{"application/json":{"example":{"filters":{"include":["media"]}},"schema":{"properties":{"filters":{"$ref":"#/components/schemas/ArticleFilter"}},"required":["filters"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ExportEstimate"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"估算导出记录数、包内额度及超额费用","tags":["批量导出"],"x-required-scopes":["exports:write"]}},"/exports/{id}":{"delete":{"description":"需要权限：`exports:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"delete_exports_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ExportTask"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取消导出任务","tags":["批量导出"],"x-required-scopes":["exports:write"]},"get":{"description":"权限：articles:read。\n\n轮询任务到 completed 后，带原 Bearer 认证访问 download_url。failed 时检查 error_code，不会把部分文件标为成功。文件有效期为创建后 24 小时，状态查询不消耗新版文章额度。","operationId":"get_exports_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/ExportTask"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询导出状态","tags":["批量导出"],"x-required-scopes":["articles:read"]}},"/exports/{id}/download":{"get":{"description":"权限：articles:read。\n\n携带原 Bearer 认证下载已完成文件，24 小时内有效；重新检查来源订阅和套餐历史权限，重复下载不扣文章额度，体验期每次成功下载仍占 1 次 API 调用。取消来源订阅后不能继续通过旧文件读取该来源。","operationId":"get_exports_id_download","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"下载已生成文件，不重复扣文章额度；体验期成功请求仍占一次 API 调用"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"下载导出文件","tags":["批量导出"],"x-required-scopes":["articles:read"]}},"/historical-requests":{"get":{"description":"需要权限：`accounts:read`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"get_historical_requests","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/HistoricalRequest"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询历史回溯请求","tags":["历史回溯"],"x-required-scopes":["accounts:read"]},"post":{"description":"权限：subscriptions:write。\n\n记录独立历史回溯需求，须传 Idempotency-Key，返回 awaiting_collector。目前此类独立请求尚未执行；新订阅首次列表导入使用订阅队列，不由此接口触发。","operationId":"post_historical_requests","parameters":[{"description":"同一业务请求重试使用相同键；不同请求体使用同一键返回409","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleFilter"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/HistoricalRequest"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"保存历史回溯需求，等待采集节点","tags":["历史回溯"],"x-required-scopes":["subscriptions:write"]}},"/keyword-index":{"get":{"description":"需要权限：index:read。校验有效套餐及组织隔离；不扣文章额度。所有成功/v1响应仍遵循现有API调用限制，包括体验期总共10次。 只读取已有快照，不触发远程请求；未取得数据返回404。先POST /queries，kind=keyword_index，等待ready。all为上游实际可用历史，最多365天；统计日期与采集时间分别返回。","operationId":"get_keyword_index","parameters":[{"in":"query","name":"query","required":true,"schema":{"description":"精确关键词，最多20个Unicode字符；仅清除首尾空白","maxLength":20,"minLength":1,"type":"string"}},{"in":"query","name":"period","schema":{"default":"30d","enum":["7d","30d","all"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/KeywordIndex"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"读取关键词指数、来源与异动快照","tags":["微信指数"],"x-required-scopes":["index:read"]}},"/keyword-monitors":{"get":{"description":"需要权限：index:read。校验有效套餐及组织隔离；不扣文章额度。所有成功/v1响应仍遵循现有API调用限制，包括体验期总共10次。 关注后立即查询，每日北京时间09:00检查，统计日落后于昨日时15:00、21:00补查；具体完成时间受队列与微信返回影响。暂停仍占名额，移除释放；套餐失效或降级超限停止监测，保留配置与最近数据。","operationId":"get_keyword_monitors","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/KeywordMonitorList"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查看关注关键词与每日更新状态","tags":["微信指数"],"x-required-scopes":["index:read"]},"post":{"description":"需要权限：keyword-monitors:write，同时需要index:read。校验有效套餐及组织隔离；不扣文章额度。所有成功/v1响应仍遵循现有API调用限制，包括体验期总共10次。 关注后立即查询，每日北京时间09:00检查，统计日落后于昨日时15:00、21:00补查；具体完成时间受队列与微信返回影响。暂停仍占名额，移除释放；套餐失效或降级超限停止监测，保留配置与最近数据。","operationId":"post_keyword_monitors","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"query":{"description":"精确关键词，最多20个Unicode字符；仅清除首尾空白","maxLength":20,"minLength":1,"type":"string"}},"required":["query"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/KeywordMonitor"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"关注关键词并每日更新","tags":["微信指数"],"x-required-scopes":["keyword-monitors:write"]}},"/keyword-monitors/{id}":{"delete":{"description":"需要权限：keyword-monitors:write，同时需要index:read。校验有效套餐及组织隔离；不扣文章额度。所有成功/v1响应仍遵循现有API调用限制，包括体验期总共10次。 关注后立即查询，每日北京时间09:00检查，统计日落后于昨日时15:00、21:00补查；具体完成时间受队列与微信返回影响。暂停仍占名额，移除释放；套餐失效或降级超限停止监测，保留配置与最近数据。","operationId":"delete_keyword_monitors_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/KeywordMonitor"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"移除关注关键词","tags":["微信指数"],"x-required-scopes":["keyword-monitors:write"]},"patch":{"description":"需要权限：keyword-monitors:write，同时需要index:read。校验有效套餐及组织隔离；不扣文章额度。所有成功/v1响应仍遵循现有API调用限制，包括体验期总共10次。 关注后立即查询，每日北京时间09:00检查，统计日落后于昨日时15:00、21:00补查；具体完成时间受队列与微信返回影响。暂停仍占名额，移除释放；套餐失效或降级超限停止监测，保留配置与最近数据。","operationId":"patch_keyword_monitors_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"status":{"enum":["active","paused"],"type":"string"}},"required":["status"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/KeywordMonitor"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"暂停或恢复关键词监测","tags":["微信指数"],"x-required-scopes":["keyword-monitors:write"]}},"/queries":{"get":{"description":"公众号/资料查询需要accounts:read，微信文章搜索和公众号文章列表需要articles:read，并校验有效套餐。查询、任务与游标按组织隔离。只返回公开结构化字段，不返回微信Cookie、票据或设备证明。 结果保留24小时；failed/uncertain保留稳定错误码，未知结果不自动重发。GET总是读取最新状态，幂等键不冻结旧的排队响应。同一账期相同文章的重复结果读取与导入不重复扣额。体验套餐创建任务、状态查询、幂等重试等每次成功API响应仍各占一次调用；网页不占体验API次数。 keyword_index需要index:read，读取趋势、来源与异动；同组织同词合并排队，6小时内的成功快照复用。统计日落后时仍返回实际日期，关注词由日更时段补查。指数点数不扣文章额度。","operationId":"get_queries","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/WeChatQuery"},"type":"array"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"返回当前组织任务状态与已取得的结果"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查看当前组织的微信查询记录","tags":["微信查询"],"x-required-scopes":[""]},"post":{"description":"公众号/资料查询需要accounts:read，微信文章搜索和公众号文章列表需要articles:read，并校验有效套餐。查询、任务与游标按组织隔离。只返回公开结构化字段，不返回微信Cookie、票据或设备证明。 可用Idempotency-Key避免重复建任务。通过GET /queries/{id}等待ready后读取结果。创建查询不扣文章额度；读取文章搜索或公众号文章列表结果时按现有账期文章身份去重扣额。 keyword_index需要index:read，读取趋势、来源与异动；同组织同词合并排队，6小时内的成功快照复用。统计日落后时仍返回实际日期，关注词由日更时段补查。指数点数不扣文章额度。","operationId":"post_queries","requestBody":{"content":{"application/json":{"example":{"kind":"account_search","query":"人工智能学院"},"schema":{"$ref":"#/components/schemas/WeChatQueryInput"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WeChatQuery"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"查询已进入持久队列；返回成功不表示数据已取得"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"排队执行公众号搜索、资料查询、公众号文章列表或微信文章搜索","tags":["微信查询"],"x-required-scopes":[""]}},"/queries/{id}":{"delete":{"description":"取消本组织尚未发送的查询。已经开始或完成时返回409，不会假装撤回微信已经接收的请求。","operationId":"delete_queries_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"当前操作的结构化结果"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取消尚未发送的查询","tags":["微信查询"],"x-required-scopes":[""]},"get":{"description":"公众号/资料查询需要accounts:read，微信文章搜索和公众号文章列表需要articles:read，并校验有效套餐。查询、任务与游标按组织隔离。只返回公开结构化字段，不返回微信Cookie、票据或设备证明。 结果保留24小时；failed/uncertain保留稳定错误码，未知结果不自动重发。GET总是读取最新状态，幂等键不冻结旧的排队响应。同一账期相同文章的重复结果读取与导入不重复扣额。体验套餐创建任务、状态查询、幂等重试等每次成功API响应仍各占一次调用；网页不占体验API次数。 keyword_index需要index:read，读取趋势、来源与异动；同组织同词合并排队，6小时内的成功快照复用。统计日落后时仍返回实际日期，关注词由日更时段补查。指数点数不扣文章额度。","operationId":"get_queries_id","parameters":[{"in":"path","name":"id","required":true,"schema":{"description":"查询ID","type":"string"}},{"description":"可选，最多等待20秒进入终态；不持有组织事务或行锁，适合减少状态轮询","in":"query","name":"wait","required":false,"schema":{"default":0,"maximum":20,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WeChatQuery"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"返回当前组织任务状态与已取得的结果"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"读取查询状态与公开结果","tags":["微信查询"],"x-required-scopes":[""]}},"/queries/{id}/import":{"post":{"description":"需要subscriptions:write和原查询的读取权限。仅可选择本组织已完成查询中的身份，不接受客户端自行声明的名称/biz冒充可信结果。原子加入订阅，检查套餐名额、检查间隔和可选集合权限；任一项失败整批回滚。文章元数据已私有保存，不下载正文。与结果读取共用账期文章去重，不重复扣额；不会恢复用户手动暂停的采集。","operationId":"post_queries_id_import","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeChatQueryImportInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"properties":{"account_ids":{"items":{"description":"公众号ID","type":"string"},"type":"array"},"article_ids":{"items":{"description":"文章ID","type":"string"},"type":"array"},"imported_accounts":{"type":"integer"},"subscriptions":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"}},"type":"object"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"description":"订阅已创建或恢复，后续列表采集状态以订阅队列为准"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"从可信查询结果加入订阅并导入文章元数据","tags":["微信查询"],"x-required-scopes":["subscriptions:write"]}},"/request-logs":{"get":{"description":"权限：usage:read。\n\n最近30天已识别API Key的实际调用日志，包含成功、权限失败、配额失败、耗时与请求ID。未知Key无法确定组织，不进入客户日志。不保存请求体、查询参数和完整凭据。本接口免费，不记录自身以免递归。","operationId":"get_request_logs","parameters":[{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"in":"query","name":"status_code","schema":{"type":"string"}},{"in":"query","name":"key_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/RequestLog"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询最近30天业务接口调用日志","tags":["用量"],"x-required-scopes":["usage:read"]}},"/subscriptions":{"get":{"description":"权限：accounts:read。\n\n返回本组织订阅、真实头像链接、article_count、检查间隔与 collection_state。import_queued / importing 表示导入排队或进行中；import_quota_limited 表示额度不足；needs_login / collection_failed 需检查原因。订阅 active 不表示采集已经完成。","operationId":"get_subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查看公众号订阅","tags":["订阅"],"x-required-scopes":["accounts:read"]},"post":{"description":"权限：subscriptions:write。\n\n创建或恢复公众号订阅，成功后排队首次列表导入；返回成功不表示导入完成。省略 update_interval_minutes 使用套餐默认值，允许值由 GET /usage 的 subscription_interval_options 返回；体验套餐仅 10080。来源名额按本账期去重占用，暂停或取消不退回本期名额。列表导入不下载正文。","operationId":"post_subscriptions","requestBody":{"content":{"application/json":{"example":{"account_id":"oa_example","update_interval_minutes":10080},"schema":{"$ref":"#/components/schemas/SubscriptionInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Subscription"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"创建或恢复公众号订阅","tags":["订阅"],"x-required-scopes":["subscriptions:write"]}},"/subscriptions/batch":{"delete":{"description":"需要权限：`subscriptions:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"delete_subscriptions_batch","requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["active","paused","cancelled"],"type":"string"},"subscription_ids":{"items":{"type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"update_interval_minutes":{"description":"检查间隔（分钟）；体验套餐仅10080，其他套餐可选值由usage.subscription_interval_options返回","enum":[720,1440,10080],"type":"integer"}},"required":["subscription_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"原子批量取消公众号订阅","tags":["订阅"],"x-required-scopes":["subscriptions:write"]},"patch":{"description":"需要权限：`subscriptions:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"patch_subscriptions_batch","requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["active","paused","cancelled"],"type":"string"},"subscription_ids":{"items":{"type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"update_interval_minutes":{"description":"检查间隔（分钟）；体验套餐仅10080，其他套餐可选值由usage.subscription_interval_options返回","enum":[720,1440,10080],"type":"integer"}},"required":["subscription_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"原子批量启停公众号订阅","tags":["订阅"],"x-required-scopes":["subscriptions:write"]},"post":{"description":"权限：subscriptions:write。\n\n原子批量创建或恢复订阅，任意项无效、间隔不允许或名额不足则整批失败。可传 collection_id 在同一事务加入本组织集合，此时还需 collections:write 权限。成功后排队首次列表导入。","operationId":"post_subscriptions_batch","requestBody":{"content":{"application/json":{"example":{"account_ids":["oa_example"],"update_interval_minutes":10080},"schema":{"properties":{"account_ids":{"description":"一批公众号ID；与collection_id互斥。不传时查询当前组织全部授权公众号","items":{"type":"string"},"maxItems":1000,"type":"array"},"collection_id":{"description":"可选：订阅成功后原子加入该组织的集合；API Key还需collections:write权限","type":"string"},"update_interval_minutes":{"description":"检查间隔（分钟）；体验套餐仅10080，其他套餐可选值由usage.subscription_interval_options返回","enum":[720,1440,10080],"type":"integer"}},"required":["account_ids"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"原子批量创建公众号订阅","tags":["订阅"],"x-required-scopes":["subscriptions:write"]}},"/subscriptions/{id}":{"delete":{"description":"需要权限：`subscriptions:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"delete_subscriptions_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Subscription"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"取消公众号订阅与读取授权","tags":["订阅"],"x-required-scopes":["subscriptions:write"]},"patch":{"description":"需要权限：`subscriptions:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"patch_subscriptions_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["active","paused","cancelled"],"type":"string"},"update_interval_minutes":{"description":"检查间隔（分钟）；体验套餐仅10080，其他套餐可选值由usage.subscription_interval_options返回","enum":[720,1440,10080],"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Subscription"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"调整订阅状态与检查间隔","tags":["订阅"],"x-required-scopes":["subscriptions:write"]}},"/subscriptions/{id}/import":{"post":{"description":"权限：subscriptions:write。为本组织 active 订阅继续列表导入，沿用保存进度。额度不足返回 429 quota_exceeded，未启用返回 409 subscription_not_active。返回 import_queued 仅表示已排队，不表示完成；不下载或解析正文。无需请求体。","operationId":"post_subscriptions_id_import","parameters":[{"description":"GET /subscriptions 返回的订阅 ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"collection_state":{"const":"import_queued","type":"string"},"id":{"type":"string"}},"type":"object"},"request_id":{"type":"string"}},"type":"object"}}},"description":"已加入导入队列"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"继续导入订阅的文章列表","tags":["订阅"],"x-required-scopes":["subscriptions:write"]}},"/usage":{"get":{"description":"权限：usage:read。\n\n返回实际套餐、账期、文章额度、冻结量、余额和订阅名额，不扣数据额度。records 套餐按开通日和 Asia/Shanghai 计算，年付按月发放。data_units_* 为新版字段，api_calls_* 为兼容别名。subscription_interval_options 为当前允许的分钟数。subscription_capacity 返回有效名额上限与剩余。api_access 返回 API 是否可用及独立体验调用次数，本次成功 API 用量查询也占一次体验调用；网页查询不占。","operationId":"get_usage","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/Usage"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询套餐、额度与分项用量","tags":["用量"],"x-required-scopes":["usage:read"]}},"/webhook-deliveries":{"get":{"description":"需要权限：`webhooks:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"get_webhook_deliveries","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询投递与失败记录","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}},"/webhook-deliveries/{id}/replay":{"post":{"description":"需要权限：`webhooks:write`。文章和业务资源仅在当前组织的有效授权范围内读取。","operationId":"post_webhook_deliveries_id_replay","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookDelivery"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"重新投递现有事件","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}},"/webhooks":{"get":{"description":"权限：webhooks:write。\n\nWebhook请求使用X-Shiwen-Event-ID、X-Shiwen-Timestamp和X-Shiwen-Signature。签名为HMAC-SHA256(secret, timestamp+'.'+原始请求体)，编码格式v1=<hex>。密钥创建/轮换仅展示一次，不支持Idempotency-Key持久化重放。端点只允许HTTPS公网，禁用端点后停止待投递任务。","operationId":"get_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"items":{"$ref":"#/components/schemas/WebhookEndpoint"},"type":"array"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"查询通知端点","tags":["Webhook"],"x-required-scopes":["webhooks:write"]},"post":{"description":"权限：webhooks:write。\n\n创建公网 HTTPS 通知端点，返回 secret 仅此一次。端点禁止内网、重定向；投递时重新检查 DNS。请求头含 X-Shiwen-Event-ID、X-Shiwen-Timestamp、X-Shiwen-Signature；按时间戳 + '.' + 原始请求体计算 HMAC-SHA256，签名格式 v1=<hex>。验签并按事件 ID 去重。不要使用 Idempotency-Key 缓存或重放此含密钥的响应。","operationId":"post_webhooks","requestBody":{"content":{"application/json":{"example":{"name":"文章更新","url":"https://example.com/shiwen/events"},"schema":{"$ref":"#/components/schemas/WebhookInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookEndpoint"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"创建通知端点，签名密钥仅返回一次","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}":{"delete":{"description":"权限：webhooks:write。\n\nWebhook请求使用X-Shiwen-Event-ID、X-Shiwen-Timestamp和X-Shiwen-Signature。签名为HMAC-SHA256(secret, timestamp+'.'+原始请求体)，编码格式v1=<hex>。密钥创建/轮换仅展示一次，不支持Idempotency-Key持久化重放。端点只允许HTTPS公网，禁用端点后停止待投递任务。","operationId":"delete_webhooks_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookEndpoint"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"停用端点并取消待投递事件","tags":["Webhook"],"x-required-scopes":["webhooks:write"]},"patch":{"description":"权限：webhooks:write。\n\nWebhook请求使用X-Shiwen-Event-ID、X-Shiwen-Timestamp和X-Shiwen-Signature。签名为HMAC-SHA256(secret, timestamp+'.'+原始请求体)，编码格式v1=<hex>。密钥创建/轮换仅展示一次，不支持Idempotency-Key持久化重放。端点只允许HTTPS公网，禁用端点后停止待投递任务。","operationId":"patch_webhooks_id","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"},"name":{"description":"端点名称","type":"string"},"url":{"description":"HTTPS公网URL","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookEndpoint"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"修改通知端点","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}/rotate-secret":{"post":{"description":"权限：webhooks:write。\n\nWebhook请求使用X-Shiwen-Event-ID、X-Shiwen-Timestamp和X-Shiwen-Signature。签名为HMAC-SHA256(secret, timestamp+'.'+原始请求体)，编码格式v1=<hex>。密钥创建/轮换仅展示一次，不支持Idempotency-Key持久化重放。端点只允许HTTPS公网，禁用端点后停止待投递任务。","operationId":"post_webhooks_id_rotate_secret","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookEndpoint"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"轮换通知签名密钥","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}/test":{"post":{"description":"权限：webhooks:write。\n\nWebhook请求使用X-Shiwen-Event-ID、X-Shiwen-Timestamp和X-Shiwen-Signature。签名为HMAC-SHA256(secret, timestamp+'.'+原始请求体)，编码格式v1=<hex>。密钥创建/轮换仅展示一次，不支持Idempotency-Key持久化重放。端点只允许HTTPS公网，禁用端点后停止待投递任务。","operationId":"post_webhooks_id_test","parameters":[{"description":"使用前置接口返回的资源ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"billing":{"$ref":"#/components/schemas/BillingCharge"},"data":{"$ref":"#/components/schemas/WebhookDelivery"},"request_id":{"type":"string"}},"type":"object"}}},"description":"操作成功"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"参数或请求格式错误"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"API Key无效、已撤销或已过期"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"套餐未开通或已到期（plan_inactive），或余额与预算不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"权限不足或公众号不在授权范围"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"记录不存在或无权访问"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"幂等键冲突、条件变化或额度限制"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"游标或导出文件已过期"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"公众号身份无效或链接与 biz 不一致"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"体验套餐 10 次成功 API 调用已用完（trial_api_limit_reached）、文章额度不足或请求限流","headers":{"Retry-After":{"description":"延迟秒数；额度不足仍需补充额度或调整预算","schema":{"example":60,"type":"integer"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"服务内部错误"}},"security":[{"bearerAuth":[]}],"summary":"排队发送测试事件","tags":["Webhook"],"x-required-scopes":["webhooks:write"]}}},"security":[{"bearerAuth":[]}],"servers":[{"description":"组织授权的业务接口","url":"https://shopscope-monitor.top/api/platform/v1"}],"tags":[{"name":"公众号"},{"description":"创建订阅、检查间隔与列表导入。","name":"订阅"},{"description":"保存一组来源，用于查询和导出。","name":"公众号集合"},{"name":"文章"},{"description":"异步读取并解析已授权文章正文；结果仅在内存保留30分钟，不写回文章库。","name":"正文解析"},{"description":"按事件游标取得新建、修改和删除。","name":"增量同步"},{"description":"API 固定快照导出与费用估算。","name":"批量导出"},{"description":"通知端点、签名和投递管理。","name":"Webhook"},{"description":"账期、额度、名额、余额与调用日志。","name":"用量"},{"description":"独立回溯需求登记，当前尚未执行。","name":"历史回溯"}]}