[{"data":1,"prerenderedAt":242},["ShallowReactive",2],{"content-/docs/api-integration":3,"related-docs":224},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"keywords":10,"author":11,"date":12,"category":13,"image":14,"body":15,"_type":218,"_id":219,"_source":220,"_file":221,"_stem":222,"_extension":223},"/docs/api-integration","docs",false,"","API 集成","将 HTMLPAGE API 集成到你的应用","API, 集成, 开发, HTMLPAGE","HTMLPAGE","2025-11-27","API 文档","/content-images/docs/docs.jpg",{"type":16,"children":17,"toc":205},"root",[18,26,32,39,46,71,77,87,93,101,107,115,121,144,150,173,179,192,196],{"type":19,"tag":20,"props":21,"children":23},"element","h1",{"id":22},"api-集成",[24],{"type":25,"value":8},"text",{"type":19,"tag":27,"props":28,"children":29},"p",{},[30],{"type":25,"value":31},"将 HTMLPAGE API 集成到你的应用。",{"type":19,"tag":33,"props":34,"children":36},"h2",{"id":35},"集成步骤",[37],{"type":25,"value":38},"📌 集成步骤",{"type":19,"tag":40,"props":41,"children":43},"h3",{"id":42},"_1-获取-api-密钥",[44],{"type":25,"value":45},"1. 获取 API 密钥",{"type":19,"tag":47,"props":48,"children":49},"ul",{},[50,56,61,66],{"type":19,"tag":51,"props":52,"children":53},"li",{},[54],{"type":25,"value":55},"登录账户",{"type":19,"tag":51,"props":57,"children":58},{},[59],{"type":25,"value":60},"进入开发者设置",{"type":19,"tag":51,"props":62,"children":63},{},[64],{"type":25,"value":65},"创建 API 密钥",{"type":19,"tag":51,"props":67,"children":68},{},[69],{"type":25,"value":70},"妥善保管密钥",{"type":19,"tag":40,"props":72,"children":74},{"id":73},"_2-认证设置",[75],{"type":25,"value":76},"2. 认证设置",{"type":19,"tag":78,"props":79,"children":81},"pre",{"code":80},"Authorization: Bearer YOUR_API_KEY\n",[82],{"type":19,"tag":83,"props":84,"children":85},"code",{"__ignoreMap":7},[86],{"type":25,"value":80},{"type":19,"tag":40,"props":88,"children":90},{"id":89},"_3-发送请求",[91],{"type":25,"value":92},"3. 发送请求",{"type":19,"tag":78,"props":94,"children":96},{"code":95},"POST /pages/generate\nContent-Type: application/json\n\n{\n  \"title\": \"页面标题\",\n  \"description\": \"页面描述\"\n}\n",[97],{"type":19,"tag":83,"props":98,"children":99},{"__ignoreMap":7},[100],{"type":25,"value":95},{"type":19,"tag":40,"props":102,"children":104},{"id":103},"_4-处理响应",[105],{"type":25,"value":106},"4. 处理响应",{"type":19,"tag":78,"props":108,"children":110},{"code":109},"{\n  \"id\": \"page_123\",\n  \"status\": \"success\",\n  \"data\": {...}\n}\n",[111],{"type":19,"tag":83,"props":112,"children":113},{"__ignoreMap":7},[114],{"type":25,"value":109},{"type":19,"tag":33,"props":116,"children":118},{"id":117},"常见集成",[119],{"type":25,"value":120},"🎯 常见集成",{"type":19,"tag":47,"props":122,"children":123},{},[124,129,134,139],{"type":19,"tag":51,"props":125,"children":126},{},[127],{"type":25,"value":128},"批量生成页面",{"type":19,"tag":51,"props":130,"children":131},{},[132],{"type":25,"value":133},"自动化工作流",{"type":19,"tag":51,"props":135,"children":136},{},[137],{"type":25,"value":138},"内容管理集成",{"type":19,"tag":51,"props":140,"children":141},{},[142],{"type":25,"value":143},"第三方应用集成",{"type":19,"tag":33,"props":145,"children":147},{"id":146},"最佳实践",[148],{"type":25,"value":149},"💡 最佳实践",{"type":19,"tag":47,"props":151,"children":152},{},[153,158,163,168],{"type":19,"tag":51,"props":154,"children":155},{},[156],{"type":25,"value":157},"安全存储密钥",{"type":19,"tag":51,"props":159,"children":160},{},[161],{"type":25,"value":162},"错误处理",{"type":19,"tag":51,"props":164,"children":165},{},[166],{"type":25,"value":167},"重试机制",{"type":19,"tag":51,"props":169,"children":170},{},[171],{"type":25,"value":172},"日志记录",{"type":19,"tag":33,"props":174,"children":176},{"id":175},"相关资源",[177],{"type":25,"value":178},"🔗 相关资源",{"type":19,"tag":47,"props":180,"children":181},{},[182],{"type":19,"tag":51,"props":183,"children":184},{},[185],{"type":19,"tag":186,"props":187,"children":189},"a",{"href":188},"/docs/ai-api-reference.md",[190],{"type":25,"value":191},"AI API 参考",{"type":19,"tag":193,"props":194,"children":195},"hr",{},[],{"type":19,"tag":27,"props":197,"children":198},{},[199],{"type":19,"tag":200,"props":201,"children":202},"em",{},[203],{"type":25,"value":204},"API 集成让 HTMLPAGE 能力无限扩展。",{"title":7,"searchDepth":206,"depth":206,"links":207},3,[208,215,216,217],{"id":35,"depth":209,"text":38,"children":210},2,[211,212,213,214],{"id":42,"depth":206,"text":45},{"id":73,"depth":206,"text":76},{"id":89,"depth":206,"text":92},{"id":103,"depth":206,"text":106},{"id":117,"depth":209,"text":120},{"id":146,"depth":209,"text":149},{"id":175,"depth":209,"text":178},"markdown","content:docs:api-integration.md","content","docs/api-integration.md","docs/api-integration","md",[225,232,233],{"_path":226,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":191,"description":227,"keywords":228,"author":11,"date":12,"category":13,"image":14,"_type":218,"_id":229,"_source":220,"_file":230,"_stem":231,"_extension":223},"/docs/ai-api-reference","HTMLPAGE AI API 完整参考文档","AI API, API 文档, 开发接口, HTMLPAGE","content:docs:ai-api-reference.md","docs/ai-api-reference.md","docs/ai-api-reference",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"keywords":10,"author":11,"date":12,"category":13,"image":14,"_type":218,"_id":219,"_source":220,"_file":221,"_stem":222,"_extension":223},{"_path":234,"_dir":7,"_draft":6,"_partial":6,"_locale":7,"title":235,"description":236,"navigation":237,"image":14,"_type":218,"_id":239,"_source":220,"_file":240,"_stem":241,"_extension":223},"/docs","开发文档","HTMLPAGE 开发文档和 API 参考",{"title":238},"文档首页","content:docs:index.md","docs/index.md","docs/index",1774945289166]