<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>GooseBlog</title>
  
  <subtitle>鹅滴博客嘎嘎</subtitle>
  <link href="https://blog.goose.cc.cd/atom.xml" rel="self"/>
  
  <link href="https://blog.goose.cc.cd/"/>
  <updated>2026-11-06T16:06:17.000Z</updated>
  <id>https://blog.goose.cc.cd/</id>
  
  <author>
    <name>Goose</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>以“熟”润心，以“生”立骨</title>
    <link href="https://blog.goose.cc.cd/posts/Stranger-relationships/"/>
    <id>https://blog.goose.cc.cd/posts/Stranger-relationships/</id>
    <published>2026-11-06T15:46:17.000Z</published>
    <updated>2026-11-06T16:06:17.000Z</updated>
    
    <content type="html"><![CDATA[<p><strong>中国传统社会关系复杂交织，形成“熟人社会”，西方却认为“我们都是陌生人。”</strong> 中西方两个看似背道而驰的结论是基于不同的社会文明特点形成的。随着时代发展与文明交融，我们既要保有熟人社会的温暖底色，也要拥抱生人社会的规则与契约，以“熟”润心，以“生”立骨，正如费孝通先生所言：各美其美，美人之美，美美与共，天下大同。</p><p><strong>何为熟人社会</strong>？熟人社会也称关系社会、人情社会，是一种人们按照熟悉的规则和习俗来建立社会关系的方式。</p><p><strong>熟人社会，温情是凝聚人心的纽带</strong>。老城小区里老人独居，邻居会时常关照；楼道杂物、邻里矛盾，相处多年的老街坊会出面调解。<br>驻村干部依托乡土熟人网络开展帮扶，先富起来的乡亲带动同村人，互相传授技艺、共享销路，汇聚起乡村振兴的合力。根植于熟人社会的温情让孤立的个体彼此相连，无论社会如何变迁，这份守望相助的温暖永远滋养人心。</p><p>当然，熟人社会的人情牵绊也容易裹挟规则，我们在保留温情与善意的同时，要以理性与制度为框架，让温情不越边界。<strong>这恰恰需要生人社会的规则与契约。</strong></p><p><strong>生人社会也称契约社会，人与人间不讲人情关系，只讲规则、契约</strong>。生人社会使人们之间更易接纳新思想，也更易高效地完成合作。</p><p><strong>生人社会，规则和契约让高效合作超越人情桎梏</strong>。外卖、快递、网约车平台建立标准化规则、评价机制，千千万万劳动者和陌生客户不需要结识，仅依靠清晰权责，完成海量高频的交易与服务。互联网开源社区，成千上万来自不同国家、不同民族的程序员和开发者，遵循贡献规范，协作编写代码，共同构建大型开源项目，是陌生人跨地域高效共创的生动典范。熟人温情自有动人之处，而生人社会的制度化协作，能够承载现代社会庞大而复杂的运转需求。</p><p><strong>以温情润心，以规则立骨</strong>。时代浪潮之下，我们既要传承熟人社会的温暖善意，也要恪守生人社会的规则契约，让温情与规则共生，方能构筑一个温暖而有序的现代社会。</p>]]></content>
    
    
    <summary type="html">从邻里守望到陌生人的高效协作，文章思辨人情与规则的互补，主张以「熟」润心、以「生」立骨。</summary>
    
    
    
    <category term="作文" scheme="https://blog.goose.cc.cd/categories/%E4%BD%9C%E6%96%87/"/>
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/tags/%E9%9A%8F%E7%AC%94/"/>
    
  </entry>
  
  <entry>
    <title>设置Kimi动态头像教程</title>
    <link href="https://blog.goose.cc.cd/posts/kimi-gif/"/>
    <id>https://blog.goose.cc.cd/posts/kimi-gif/</id>
    <published>2026-11-02T13:14:38.000Z</published>
    <updated>2026-11-02T13:14:38.000Z</updated>
    
    <content type="html"><![CDATA[<p>通过油猴脚本在浏览器中为 Kimi 设置动态头像。脚本读取本地登录 token，在页面添加一个上传按钮，选择 GIF 后调用 Kimi 头像接口。</p><p>如果你想偷懒，请见文章结尾~</p><h2 id="1-原理"><a href="#1-原理" class="headerlink" title="1. 原理"></a>1. 原理</h2><p>脚本主要做四件事：</p><ul><li>从 <code>localStorage</code> 读取 <code>access_token</code> 或 <code>token</code></li><li>在页面右下角添加“设置头像”按钮</li><li>选择本地图片文件</li><li>用 <code>fetch</code> 以 <code>FormData</code> 向 <code>https://www.kimi.com/api/user/avatar</code> 发送 POST 请求</li></ul><p>请求头模拟 Android 客户端，<code>Authorization</code> 使用 <code>Bearer token</code>。</p><h2 id="2-安装方法"><a href="#2-安装方法" class="headerlink" title="2. 安装方法"></a>2. 安装方法</h2><h3 id="Android"><a href="#Android" class="headerlink" title="Android"></a>Android</h3><p>推荐 VIA 浏览器，体积不到 1MB，自带脚本管理。</p><ol><li>安装 VIA 浏览器。</li><li>打开 VIA → 设置 → 通用 → 脚本 → 点击右上角 <code>+</code>。</li><li>选择“新建”，删除默认内容，粘贴脚本代码并保存。</li><li>打开 <code>kimi.com</code>，登录账号并刷新页面。</li><li>右下角出现“设置头像”按钮后，点击选择 GIF 上传。</li></ol><p>其他可选：Kiwi Browser + Tampermonkey、Edge + Tampermonkey、Firefox + Violentmonkey。</p><h3 id="iOS"><a href="#iOS" class="headerlink" title="iOS"></a>iOS</h3><ol><li>在 App Store 安装 Stay 或 Userscripts。</li><li>设置 → Safari → 扩展 → 启用 Stay&#x2F;Userscripts。</li><li>打开 <code>kimi.com</code> 并登录。</li><li>点击扩展图标 → 新建脚本 → 粘贴代码 → 保存。</li><li>刷新页面，右下角出现“设置头像”按钮。</li></ol><h3 id="Windows-macOS"><a href="#Windows-macOS" class="headerlink" title="Windows &#x2F; macOS"></a>Windows &#x2F; macOS</h3><ol><li>Chrome &#x2F; Edge &#x2F; Firefox 安装 Tampermonkey。</li><li>打开 <code>kimi.com</code> 并登录。</li><li>点击 Tampermonkey 图标 → 创建新脚本 → 粘贴代码 → 保存。</li><li>刷新页面，右下角出现“设置头像”按钮。</li></ol><p>其他可选扩展：Violentmonkey、Greasemonkey、ScriptCat。</p><h2 id="3-脚本代码"><a href="#3-脚本代码" class="headerlink" title="3. 脚本代码"></a>3. 脚本代码</h2><p>将以下代码粘贴到脚本管理器中，保存。</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="comment">// ==UserScript==</span></span><br><span class="line"><span class="comment">// @name         Kimi 头像设置器</span></span><br><span class="line"><span class="comment">// @namespace    https://viayoo.com/</span></span><br><span class="line"><span class="comment">// @version      0.1</span></span><br><span class="line"><span class="comment">// @description  try to take over the world!</span></span><br><span class="line"><span class="comment">// @author       You</span></span><br><span class="line"><span class="comment">// @run-at       document-idle</span></span><br><span class="line"><span class="comment">// @match        https://*/*</span></span><br><span class="line"><span class="comment">// @grant        none</span></span><br><span class="line"><span class="comment">// ==/UserScript==</span></span><br><span class="line">(<span class="keyword">function</span>(<span class="params"></span>) &#123;</span><br><span class="line">    <span class="string">&#x27;use strict&#x27;</span>;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">const</span> btn = <span class="variable language_">document</span>.<span class="title function_">createElement</span>(<span class="string">&#x27;button&#x27;</span>);</span><br><span class="line">    btn.<span class="property">textContent</span> = <span class="string">&#x27;设置头像&#x27;</span>;</span><br><span class="line">    btn.<span class="property">style</span>.<span class="property">cssText</span> = <span class="string">&#x27;position:fixed;bottom:20px;right:20px;z-index:999999;background:#111;color:#fff;border:2px solid #111;padding:12px 20px;font-size:13px;font-weight:600;cursor:pointer;font-family:sans-serif;&#x27;</span>;</span><br><span class="line">    btn.<span class="property">onclick</span> = <span class="function">() =&gt;</span> &#123;</span><br><span class="line">        <span class="keyword">const</span> token = <span class="variable language_">localStorage</span>.<span class="title function_">getItem</span>(<span class="string">&#x27;access_token&#x27;</span>) || <span class="variable language_">localStorage</span>.<span class="title function_">getItem</span>(<span class="string">&#x27;token&#x27;</span>) || <span class="string">&#x27;&#x27;</span>;</span><br><span class="line">        <span class="keyword">const</span> fileInput = <span class="variable language_">document</span>.<span class="title function_">createElement</span>(<span class="string">&#x27;input&#x27;</span>);</span><br><span class="line">        fileInput.<span class="property">type</span> = <span class="string">&#x27;file&#x27;</span>;</span><br><span class="line">        fileInput.<span class="property">accept</span> = <span class="string">&#x27;image/*&#x27;</span>;</span><br><span class="line">        fileInput.<span class="property">onchange</span> = <span class="title function_">async</span> (e) =&gt; &#123;</span><br><span class="line">            <span class="keyword">const</span> file = e.<span class="property">target</span>.<span class="property">files</span>[<span class="number">0</span>];</span><br><span class="line">            <span class="keyword">if</span> (!file) <span class="keyword">return</span>;</span><br><span class="line">            <span class="keyword">if</span> (!token) &#123; <span class="title function_">alert</span>(<span class="string">&#x27;未找到 Token，请先登录 Kimi&#x27;</span>); <span class="keyword">return</span>; &#125;</span><br><span class="line"></span><br><span class="line">            <span class="keyword">const</span> fd = <span class="keyword">new</span> <span class="title class_">FormData</span>();</span><br><span class="line">            fd.<span class="title function_">append</span>(<span class="string">&#x27;file&#x27;</span>, file);</span><br><span class="line"></span><br><span class="line">            <span class="keyword">try</span> &#123;</span><br><span class="line">                <span class="keyword">const</span> resp = <span class="keyword">await</span> <span class="title function_">fetch</span>(<span class="string">&#x27;https://www.kimi.com/api/user/avatar&#x27;</span>, &#123;</span><br><span class="line">                    <span class="attr">method</span>: <span class="string">&#x27;POST&#x27;</span>,</span><br><span class="line">                    <span class="attr">headers</span>: &#123;</span><br><span class="line">                        <span class="string">&#x27;R-Timezone&#x27;</span>: <span class="string">&#x27;Asia/Shanghai&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-platform&#x27;</span>: <span class="string">&#x27;android&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-os-version&#x27;</span>: <span class="string">&#x27;GOOGLE 10&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-device-model&#x27;</span>: <span class="string">&#x27;Google&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-session-id&#x27;</span>: <span class="string">&#x27;1&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-device-id&#x27;</span>: <span class="string">&#x27;1&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-version&#x27;</span>: <span class="string">&#x27;2.5.1&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-app-channel&#x27;</span>: <span class="string">&#x27;kimi&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;x-msh-android-version&#x27;</span>: <span class="string">&#x27;29&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;Authorization&#x27;</span>: <span class="string">&#x27;Bearer &#x27;</span> + token,</span><br><span class="line">                        <span class="string">&#x27;X-Language&#x27;</span>: <span class="string">&#x27;zh-CN&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;Accept&#x27;</span>: <span class="string">&#x27;application/json&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;Accept-Charset&#x27;</span>: <span class="string">&#x27;UTF-8&#x27;</span>,</span><br><span class="line">                        <span class="string">&#x27;User-Agent&#x27;</span>: <span class="string">&#x27;ktor-client&#x27;</span>,</span><br><span class="line">                    &#125;,</span><br><span class="line">                    <span class="attr">body</span>: fd,</span><br><span class="line">                &#125;);</span><br><span class="line">                <span class="keyword">const</span> data = <span class="keyword">await</span> resp.<span class="title function_">json</span>().<span class="title function_">catch</span>(<span class="function">() =&gt;</span> (&#123;&#125;));</span><br><span class="line">                <span class="title function_">alert</span>(resp.<span class="property">ok</span> ? <span class="string">&#x27;上传成功!&#x27;</span> : <span class="string">&#x27;失败 &#x27;</span> + resp.<span class="property">status</span> + <span class="string">&#x27;\n&#x27;</span> + <span class="title class_">JSON</span>.<span class="title function_">stringify</span>(data));</span><br><span class="line">            &#125; <span class="keyword">catch</span> (err) &#123;</span><br><span class="line">                <span class="title function_">alert</span>(<span class="string">&#x27;异常: &#x27;</span> + err.<span class="property">message</span>);</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;;</span><br><span class="line">        fileInput.<span class="title function_">click</span>();</span><br><span class="line">    &#125;;</span><br><span class="line"></span><br><span class="line">    <span class="variable language_">document</span>.<span class="property">body</span>.<span class="title function_">appendChild</span>(btn);</span><br><span class="line">&#125;)();</span><br></pre></td></tr></table></figure></div><h2 id="4-使用方法"><a href="#4-使用方法" class="headerlink" title="4. 使用方法"></a>4. 使用方法</h2><ol><li>在浏览器打开 <code>kimi.com</code> 并登录账号。</li><li>刷新页面，等待右下角出现“设置头像”按钮。</li><li>点击按钮，选择 GIF 文件，等待上传结果。</li></ol><p>上传成功后头像会更新。如果 Kimi App 中没有变化，可以清除 App 缓存或重新登录。</p><h2 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h2><ul><li>按钮未出现：确认已登录、页面已刷新、脚本已启用。</li><li>上传失败 413：GIF 文件过大，压缩到 5MB 以下。</li><li>上传失败 401：token 过期，重新登录后再试。</li><li>头像不动：App 可能有缓存，清除缓存或重新安装 App。</li><li>iOS 无法安装扩展：使用 Stay App，无需越狱。</li></ul><h2 id="偷懒方法"><a href="#偷懒方法" class="headerlink" title="偷懒方法"></a>偷懒方法</h2><p>将以下的话、你的GIF和你的<code>accesstoken</code>发给Kimi：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">这是要设置的头像GIF和我的登录凭证，请使用一下Python代码帮我上传头像</span><br><span class="line"><span class="code">```python</span></span><br><span class="line"><span class="code">#!/usr/bin/env python3</span></span><br><span class="line"><span class="code"># 用法:</span></span><br><span class="line"><span class="code">#   export KIMI_TOKEN=&quot;你的token&quot;</span></span><br><span class="line"><span class="code">#   python kimi_avatar.py avatar.gif</span></span><br><span class="line"><span class="code"># 或:</span></span><br><span class="line"><span class="code">#   python kimi_avatar.py avatar.gif --token &quot;xxx&quot;</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">import os</span></span><br><span class="line"><span class="code">import sys</span></span><br><span class="line"><span class="code">import argparse</span></span><br><span class="line"><span class="code">import mimetypes</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">import requests</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">URL = &quot;https://www.kimi.com/api/user/avatar&quot;</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">def build_headers(token: str) -&gt; dict:</span></span><br><span class="line"><span class="code">    return &#123;</span></span><br><span class="line"><span class="code">        &quot;R-Timezone&quot;: &quot;Asia/Shanghai&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-platform&quot;: &quot;android&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-os-version&quot;: &quot;GOOGLE 10&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-device-model&quot;: &quot;Google&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-session-id&quot;: &quot;1&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-device-id&quot;: &quot;1&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-version&quot;: &quot;2.5.1&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-app-channel&quot;: &quot;kimi&quot;,</span></span><br><span class="line"><span class="code">        &quot;x-msh-android-version&quot;: &quot;29&quot;,</span></span><br><span class="line"><span class="code">        &quot;Authorization&quot;: f&quot;Bearer &#123;token&#125;&quot;,</span></span><br><span class="line"><span class="code">        &quot;X-Language&quot;: &quot;zh-CN&quot;,</span></span><br><span class="line"><span class="code">        &quot;Accept&quot;: &quot;application/json&quot;,</span></span><br><span class="line"><span class="code">        &quot;Accept-Charset&quot;: &quot;UTF-8&quot;,</span></span><br><span class="line"><span class="code">        &quot;User-Agent&quot;: &quot;ktor-client&quot;,</span></span><br><span class="line"><span class="code">    &#125;</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">def upload(token: str, file_path: str, timeout: int = 60) -&gt; int:</span></span><br><span class="line"><span class="code">    if not os.path.isfile(file_path):</span></span><br><span class="line"><span class="code">        print(f&quot;文件不存在: &#123;file_path&#125;&quot;)</span></span><br><span class="line"><span class="code">        return 2</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    size = os.path.getsize(file_path)</span></span><br><span class="line"><span class="code">    print(f&quot;文件: &#123;file_path&#125;  (&#123;size / 1024:.1f&#125; KB)&quot;)</span></span><br><span class="line"><span class="code">    if size &gt; 5 * 1024 * 1024:</span></span><br><span class="line"><span class="code">        print(&quot;警告: 文件超过 5MB，可能返回 413&quot;)</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    mime = mimetypes.guess_type(file_path)[0] or &quot;application/octet-stream&quot;</span></span><br><span class="line"><span class="code">    name = os.path.basename(file_path)</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    with open(file_path, &quot;rb&quot;) as f:</span></span><br><span class="line"><span class="code">        files = &#123;&quot;file&quot;: (name, f, mime)&#125;</span></span><br><span class="line"><span class="code">        try:</span></span><br><span class="line"><span class="code">            resp = requests.post(</span></span><br><span class="line"><span class="code">                URL, headers=build_headers(token), files=files, timeout=timeout</span></span><br><span class="line"><span class="code">            )</span></span><br><span class="line"><span class="code">        except requests.RequestException as e:</span></span><br><span class="line"><span class="code">            print(f&quot;请求异常: &#123;e&#125;&quot;)</span></span><br><span class="line"><span class="code">            return 2</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    print(f&quot;状态码: &#123;resp.status_code&#125;&quot;)</span></span><br><span class="line"><span class="code">    print(f&quot;响应: &#123;resp.text[:1000]&#125;&quot;)</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    if resp.ok:</span></span><br><span class="line"><span class="code">        print(&quot;上传成功&quot;)</span></span><br><span class="line"><span class="code">        return 0</span></span><br><span class="line"><span class="code">    if resp.status_code == 401:</span></span><br><span class="line"><span class="code">        print(&quot;401: token 无效或已过期，重新登录后获取新的 token&quot;)</span></span><br><span class="line"><span class="code">    elif resp.status_code == 413:</span></span><br><span class="line"><span class="code">        print(&quot;413: 文件过大，压缩到 5MB 以下再试&quot;)</span></span><br><span class="line"><span class="code">    elif resp.status_code == 403:</span></span><br><span class="line"><span class="code">        print(&quot;403: 缺少签名/设备信息或被风控，需要抓包确认最新请求头&quot;)</span></span><br><span class="line"><span class="code">    return 1</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">def main() -&gt; int:</span></span><br><span class="line"><span class="code">    p = argparse.ArgumentParser(description=&quot;Kimi 动态头像上传&quot;)</span></span><br><span class="line"><span class="code">    p.add_argument(&quot;file&quot;, help=&quot;GIF/图片文件路径&quot;)</span></span><br><span class="line"><span class="code">    p.add_argument(&quot;--token&quot;, help=&quot;Kimi token，默认读环境变量 KIMI_TOKEN&quot;)</span></span><br><span class="line"><span class="code">    args = p.parse_args()</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    token = args.token or os.environ.get(&quot;KIMI_TOKEN&quot;, &quot;&quot;).strip()</span></span><br><span class="line"><span class="code">    if not token:</span></span><br><span class="line"><span class="code">        print(&quot;未提供 token。设置环境变量 KIMI_TOKEN 或使用 --token&quot;)</span></span><br><span class="line"><span class="code">        return 2</span></span><br><span class="line"><span class="code">    if token.lower().startswith(&quot;bearer &quot;):</span></span><br><span class="line"><span class="code">        token = token[7:].strip()</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">    return upload(token, args.file)</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">if __name__ == &quot;__main__&quot;:</span></span><br><span class="line"><span class="code">    sys.exit(main())</span></span><br><span class="line"><span class="code">```</span></span><br></pre></td></tr></table></figure></div><p>哎呀，忘了教你们怎么获取<code>access_token</code>了。。。</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://img.goose.cc.cd/i/433fcfa23c4c848cb95e33e90c423eed.webp"                      alt="按下F12，打开开发者工具"                ><figcaption>按下F12，打开开发者工具</figcaption></figure><br><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://img.goose.cc.cd/i/63ee2c3f1e21c21df4fe546017590d9e.webp"                      alt="选择应用程序"                ><figcaption>选择应用程序</figcaption></figure><br><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://img.goose.cc.cd/i/1b76b02119de82117ac6c6965913cc01.webp"                      alt="找到名为本地储存的东西"                ><figcaption>找到名为本地储存的东西</figcaption></figure><br><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://free.boltp.com/2026/11/02/6ae890b89b0e9.webp"                      alt="在右侧的列表中找到access_token"                ><figcaption>在右侧的列表中找到access_token</figcaption></figure><br><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://free.boltp.com/2026/11/02/6ae890b8c446a.webp"                      alt="复制"                ><figcaption>复制</figcaption></figure></p>]]></content>
    
    
    <summary type="html">本文介绍如何用油猴脚本为 Kimi 设置动态头像：从 localStorage 读取 access_token，在页面添加“设置头像”按钮，选择 GIF 后调用 Kimi 头像接口上传；包含 Android VIA、iOS Stay/Userscripts、桌面 Tampermonkey 配置、脚本代码、常见错误处理、Python 一键上传方法和 access_token 获取步骤。</summary>
    
    
    
    <category term="文档" scheme="https://blog.goose.cc.cd/categories/%E6%96%87%E6%A1%A3/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>高中议论文背诵</title>
    <link href="https://blog.goose.cc.cd/posts/article-senior/"/>
    <id>https://blog.goose.cc.cd/posts/article-senior/</id>
    <published>2026-11-01T14:32:40.000Z</published>
    <updated>2026-11-01T14:32:40.000Z</updated>
    
    <content type="html"><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="密码不对，请再试试。" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">  <script id="hbeData" type="hbeData" data-hmacdigest="edbb1b0cd6af2b806a50f877e5262709fec7182edaf9bd4035f2ee39c19ce45e">72b2b0e284b0dfaf105845d5907233519d4d12f17cd81fed98ae6ffb02d4fd55ac60708f9162cd810de232f9c3e256fe45382cb7b48dd6deecb9a0b49bf7fe6dfe73badbbfa86052e4f2376ea1f3d52869c2e444412ea7cb29e6e4f742c2478f4de09c2d30569de35834d05762cde57a45464d2c2614df2e017d52e63315e61c0c35e549c0223382b139cbc1af74f46023de38229a0a437d3faa97ed2f9cae30dd2e118b6a055cfd9d1fa4417978a1ef5b4c2f8542c976ebfa862e6aafcc88b429b8d7d517a5c3432ee2d8c4ce1847091109b1eef09e480b0742abb735292d328263d309195db4dae30b8db74ee5658c6e130c6f28607f43af5c3a70759012c3841f9b3a036e3c21edee8742aa9ab92376a6170b39c7b4353248104193f93f9beec7c034e5d173b17eb74f120aeb6e13c287702c88be86221c1c779d70c4d5781a4e4b0f23fd9e68a1db520ecc6bc48e87bf284529607f8ec6c060a0837461f944127fcb07f57c845449a8b11231f4b0f8696eba254ee68fa5b6fca696fa20689004775741264700664daf6666570933240b91558938c90d42e65947a5a9e8672544169f3b0118a97208646e322e64eddde0bca1a5280563ec40f6797673c1e23f450adff60afed18cd18c5faa0edf585e85a27df20f1d94982f35c00bab7b451d1173573693d2a39ef41becb1707d7b7b2857f9307afac1bbb4859cad31ff565afefb1b7092e320e505976b374361b80834c5a0e2552714a4de1107f477c8e7fbfdd07b940aaa1b297b255bcda173f6c4ad69ad18afaae746f0381319ec5fee81da0a2753689a7aff7f9d1145d440d7cc1ab0abfe16f4fd160203ecad537429086d4cb949916e1a226be1d33c113bd48ed217055120aaa84427e281ab2ef6be1716f80ea2d800747d3c46753c1f39100601ad2f9eb767a1b5d682596c16aebcc6ad464dd54d12b906377174b00f2b5d03fa50bb0b647b923c9cc2ea32438d5a2de6cba3326ad95473e26111659c3358f68f38dbb3b619d8b73b5ad40fba56b1597040099d4925c96a5a60ed55a5b7df58d83e0a446b84f57308acc0cd1a890e58a6d994e57b23625950a7a8d1eae7e331bf7bd56025029e6198b3912a783d7e8a96d76d8568d9e3439b3ee7e19266ceb6c4263dbe7815a15a95d84a4b347ce1f14e5e379730c8470520ef86672b9101f51d3a6b505ff34b2ecd39fc91940a0dc651c1ff917f0f3d42ebfdbdb4bf8d01a117202a56838101174ebf40135c5c15b770ac979d72b76a2f028013d28e357a40c045b8b49962a4d5083632ee115f8834f6ed97df48384dbfd4f2da11b6eec363a6797373633771599fc33221f482203964116c285842ad40b3a750c0c92ac5934c2c0bebc2dbcdd137bf2975904b28a2c9aeaba65c24314131ac1bdacb8b55a661b551fec61dac5b96bf6a0adf1cb43f5430adca5e546e6db7edaf1d54edd1e1db92d9dbe5401ab86492f8361d90833dcef52dadca12bcd8669b667db56411b71b41d4acbca867d9da0a62e75c0a39f2746286ec5bb445998f5bb1434819987f6f8fca1c0c629c538203c1179d9ec8873730810b5f30632b972fdeb50fe98d40c284c324560f33a32517d091b55209a02ba12da4c89e758805fe59dcd184dee21a66fd3fae8745f227d8335797e34d941870dbf6347f1f90fdd5de767b6b36c2e0e6d586b494171e9b7980fd6565eb1fa9a1e485f1857b4d50b1d64e58f056810a0a227e0574342ae19ecf8e0d10e102cda31f093039ba8e47ed8351b445361ae62c62cb8952e31c610edd3a133bef634b2d0ccea9c178656110392aded745ac7be85386d29c0e01c6d30a2b6873f05480ca9e430f7e28c5214927faea82e59808693cffefa1f518ff43c323b915c9abcfa6cf403a8711cc1335184688d416bc6fe65cb7777f77203991ce253b330659fa6706ffaca84ec5b2653a9b323d720c88b8ee141aa81e6b02f7a6b510f6a2a847fd77934d89fe8f4e625d480dfb846fbc0b9f843d8b973ce5676c231c39539b9af8527a84b358b74f44dcee28353734ea98742eb861970239f480a599d1dee6524be77db8fed15908d651bb98fc98a35034cd7d6059e1dc10180ffd60b51a9d944e915b9fd879fa45e43314f1e030a82f33073656a39f7c585987e501a621846621595c05ab1250312c90c0bdb6f19ebd760a3a9584ea0af65b32f5ae739c2be9f1bf432e6ab7d7fb803fdba83f33c7d414f319e1e885a06d41123a11c97470d00956299f4edb57c1236d9d78c6c06eb6e1b990aec2b49032d140df486265007f2e983ab5e09e452a8559ea275468de4d493e43b617ba5e8de5d94df71d81857e44900fcd85e3b6ee6ae5998f381b66a89c559e8dbd4519fb4160355bf15f9254a4090ca588f2d57cb3e71f47ebbb050964b53f6e37f03c7cc92ac9e419e54e21453d96fe1782811a699c580156375a1a8884981c3e9b015cec20b7d9abae91181b19c7b15c3e5b27e5b6f730591a7caaa4f44dcf2e977369494457ea34e051dd7fd5eaf4031084b40dda8408774033a0706759b8650df6fc944b412d19a2f2099bac256ea3a50a9d7f376e8567a72f94b55a6055efff1e33db37a1b5a977aa7cd75794f1b639bd93cef209d6eb247b182ce267386df7996ca8c2e710336d454d047cd1aa1ecc6a99313b109ad3c86f25e45c507c4edfe97369f35f0335992f92c2df12faa5b3a87a57fb401edd54d79c12b8a9132c14a816ddfbfb7e34319820a9d9e37733c1ff8f9432b748b76878324c16060682cb89f4ea15b57ea06737934ec15df50c2345acfaa27cbc792eff8d7b4687f99ee686f68ff27384cb13319c3e251047029be53f341c30f4f73996fd626fb8936adc4c9f5ae2fa49893f6c976e69079b4f033a3e52b923436ea3f977eea2a5df890e74d46a62cf4e7702f6b60b76271e2634a6e3074ea382cc754ce7edc98cfa67be84971bb48d984f980a58cc54355e0d82e452648248de8079354417a7dac8bf1d9f5a40e8531b07c0038ec5ef58567bb906f0302bd92ad25bda1d1919b28a9e8af02d939b2ea0d975870d4ac5148cedcd5b182aa6871b8b80e8b49219b5aa62cb735193a7b512cefcccd25e61e652e991f6106d70ca645aff5f168752a0780c11837d8f6b62db6793f22e817916a7bbf80d193a1e73e598ebff1e44c968d2e029f6117468641e51bdcb12e0098f9168a1e47a537da09de2de4490cbb43947fdca6777f186baa98f658f4cfe0ceaad85eee73b5e63a10db55faa45aa3de79b5a414aa57910849ff879449494441f9f1ecb62a58bfdea6d26dea35ce7dc1fcb5576a164aeb5fab6af4438e2862cf81eb2e06aebb4ad8bf81d4b00c1169e298e430c38e79deee66fcb4d001f3388017951ed3f85244ce7e0f6527609f0f4c1948c3c8973a207af05ca928c7a3a20343eeed4797078d35a188f3af8c0dfdafc05bb5178fa127f1eb07e5a838da2eb346eee6a51cd9df95882681d3db4f377e818d88337c059f08dfc8ee6c003aef6a19243188859149c3588c93c00b9457755ce78d378bed48b624df04743211a4c05957c0bca1aa8c213750a249e7c177f949ec21d30be919784f597ead33fe576a99094ac95b19d259c82aadb3199e355d683eb10d7197b14bd106b29e8b0a3604da7531694b355423089b30cfad91cf8bc959d82561cd8481226a2c2a5ae43c5a6a3080a793d58a74e865faf8f972e2a47db66b6bc72d59e5c9495a8cdb57bef017c868e026f067ba71f0c84d7d4ce44ffa3c8942cbf4d73cd016c617036920e3c3b68d0d3edda44fc2318236eabfc25e2e6de951d31fe042d02756b73eb87999e826751453c79a9965d9d35c1b89cc8ebea241432aa442a7cf2a2ca0edabf4a0d7cb387d60536de10c9361e2cb80e294ff85afb988b36059f07752ade09082c5e04f952e09b8a060f890cd43f3dc410dfdc7e5f0785e7a0188ec19413a50c0713b1756d4c08ae2603e36aa9203880399298fb73df5f1ad06cc6c4459c99915a8738c18825fdd4a2018ff7bb105734994dc8eb97278711d5e5419a3bef175e34aa369883d0f36cbb5191dd50ac676988df21837635553762373ba4265a3ebf8eea6acb518fea9b63bffa1acb41c654b33ac4609f0bee5a8023779048d2dfb5247686e362568855e27e7028a6b44c9d73750afb5f6a7ec6ec8010bcd8ce77f4b052702ff9fae657070cb583926f7dd45c0528c70afaf823cde901d12ab862aec14707bff0696296ddb4c6a325afc216d33d5fc2c3a49a46243d68c02684d9e4d46513206ccd818a7793be605b3bf9c65a75dc99959c007e24b7f768ccf3fe753c55ed609a9084dc6f14ad485292dd59b90730a8cd3beb0f2ecc26aba3a3029a32dc5d4531adc77086298e3b1ed35ba75fbe3d4693c0e20bb1a186125b0cf15d960315dfeec024f322921d10b608b542e9ce03753368c9beb0dc27423f24ade1e850bd961ff1bb099694b8ae0ab0ca6ba1e4c38ad70512dbe8fdfff18103f6440e016d748e288577f651828828538a614f5f8c9c7e668f4f642aadafb36fa951742f5cb669c2fae37970e4e6981296011e1b685c7524c147193e6f82676ee74e44ed89d696e9c64b4659af6d374110aab077b145eae8f4d2ddd0640800bf94bf3e6c77567ae59cae984f2b7f6af9547c95b82f98386118ebf67205b444276b796b2a6a87504dbf9b07e6b694e6e850fcd8d05ca5e6559ee55120851e2ae124399ad1d0276a6825e6ca24a6167c2f8c59cca6aabaf3f33be9651bb423470afd1d1fb88879746c77f25d01d2b165df8d69395e954e2afb598656f41de152b762c7e6e4c524faf97e14b0791964aace91b6944e77846614eedee7fe5971d3bcb99479902bf6a75aac55f87dbf1f9f626938abe76f75509c7cf7905031c45e1252d8b70ac589ab20a6a4f0e6e6d899aa73da4321812be4bebdceb0b08cb4640b17274a7c348afc6941ce842e7079c0095ada38e6acfe21cfbe5bc10cff4625465d0f5dc1b19cfbdbfc8f3bf7e2d1d7ffb4ac77becc6778edf5c504c86ef1a86efc566ed5b654c21b5b9d6cdd4115ec86897461e4ac3ec63eaa9ecb0f19c4ac748c16900985b38a8c45eac9ae7e8f37e4cbb47b1ff843a9d65dd6d0d2f0040a034f64e5bcd625f86b5a6a3020993326cb832f3f711fcf009333983c741c13dca6e58182e24d30d972577640082a80126f9cf1c75d02bdb8405d01345998b0f521075570295ae75489d9af21d2a663a19770d6bb3d8e72f6a6dc5eeba51a9795598a25007a48f39d72d1e377016a1d87354c3951b52f37a3a46f5b706b68231ae6b32009aae106ba7fc247b595e1fe96ed8a2251dfe38ac9194ccfdf2649def173920d0138962b76ea227f2e58696ce2073d630cd6f502aa7e832ab95de90a402ca87f21d33ee794bcb522cf0ddc00fea40fd70e863b9e772ba8efbbc4064ca9b84ef1aadb47af71c7aa1b8d8d82c365e087c61aeffc982095cf700ed87ba76db5d8c937f2d3bbd29915f0260b4dab69de8e356acd4f95ac57c053295ca75540c10fb38d62f11e502abf658dd5a418564b435a20b7a1664d78e5e52df5a0f2ba937dbbc0874d31c547c9005ac4ceef6db9dd3ea0cb4dc2d3a08537657a688ef06d7b2bd048248d367cbf5743d95a6ec9fea52ca13bc12380a9ff32673a6649a55cdfa41fce87efc115e8abbb2e678d82b112814a35544d089ae82782ecb363311e2770dd7759327d3570565ccc3df2fa5ba8ce1baeeb5cf97f4533b6bd2c192384ca1940db5d541aa8310a6741d43d084212b442dc53088a43fd41703579891edc7bcb28b5ec2220ef49e3f86208ef7db069f1107ef4ecefd4a91654ff21ee7d9dfe47365e66d334bbaaf20ccd994800f5905a0ccaf47dc19c2a1b96dc65e09fd8f40898b8e3cfac7bbbc86ff8cbc00b215d426cf9430907c0a7d58ccf1066582fbe975a347e8dfa6049d3bd0e49477205df7ccb1f8c1223d09dc553e9a7b1a8091c726c4bb93f78a441f5feccd0039309d5fedc5c255bbf8e3dddad8daaf00ccc700355d5d8d0d5f96a9643b0b9003227bee544c1c140afcf3980423a9c83e37adfb39dabc9eb36ae88ee447335a76ceb69222ab3019a787a1a242eda480e6cf767a8a55debcaa0cb1bca1f62e0eb837ec60c292d40984c9d5274b205a6020fa0e7824e1b0ba7f1057d6d232759a866715eae67675d1da798ffac5577ae17c78e3d5cf74bc075f7aa1834c7130d41986f73d574b290d238f77b25591c9b50cc50d315ed0d44aa056b114f1f951377098969e8527ac2c44eac231b264c136b5df100ff29d2c953cf20b72cf57e8fbbe84eb4e9b64e27c470e4a0152b449f4eb861985750ff19761707f827cd9b5d1b43c2a2096e9bba5bbbb5960110c16bc0c44abd434d77874e42089b878bb41a3d23331034f5044f2d0fb7ae86c2b6ca087aaac89722fc7478abc011280a5e55cac338247775deb8d4884875f55584a61dba9638799c06cea21c4e07a54727aff75a1062bb9c762e0a1851c6f51229b9259f19f6c313f099f4b53718054a2c7a410cc0542108e5b7b1cbd7fde3f569fd2795ddc349f307c97fda2fc214c3097ab159c3565837d78f7f29cb6dcc0ddbe41f4ccdc31dbe10158eafa2ee65a6aa6b869cde1575a9e866ad7d859a80b81f5cfa11b74c19fc492a68416af18e58574f60269461364c9a19e08108225bc358041b2608db78d53ad2509a6ae6e84c70296a1904307e6277cde51b10effdd460b1c30c1fc3379a1d94b18febe31036309862eb9e05f0cf87beb250fc83df7a009e2ba517677c9231d96df7538cc641d14590bd14024abc506869385df6eda7f3b247e2bda4bec9819bbbcd1ce68e52f696ba6943d43faf1ec07e2370ba64a8dea5d54f452bc943c863f70da693603b8211f8604f698fd4c82e6b21cee16744dd8ff0b7da299ec34f076f6e5abbf9dc9afd7f2c41b7c6dcf72cf13b2c1980f0985ffd150ebfce6714ee1e035dc5f5710f3ee9436d8ef9226716472fbff30518efee7b3c3e9181be35c027cb8f4d2794c7d8b56d856d6ce3b97d55024007eafabdcb7b5bfc70fb757c28130c6de5b386045e16f4c5c66b81b9994c19ea93787418de7023c05aa677f90d1d169e15ea7416f7f2d8aec6228f8a9fdc2a6773522424ee8cdbc7bb95c7dfceb1727154bc4bcd8f76b3f8a1b2bf47b2339b85b557a4b8f6d132a315d79aaaa8919220e2ce85f16e03aff910a550e5c1d47c8d5799b9d27703adcc391582e8036af3d621f78ef1352331133763fb9d6d98b5184df346e75ff3dd78b525717d895c0ed066421e5931411de128d70def403c62833ec5915427d4daa84dc12e95c987ea552ce0f2ecbcf5b1b154d7680a6f7f96f201dc809542f36fff7fe02a0a8772c170f804c82d4d8d19ef11c580ed99173768cc43ebc9a51a5d29b9607ec0e03f4cb703664e40aaeebf4d578affa207bd6e3652ea0e81e02dd25373f2cdf54803b0ed28fc0c1c04b97450041b964edac7dbc7af4489de3b146f1840fac10bb47a8cf8dc25b66e9ee5f59bb62839dabffc1814119c2c47ed249ddf8658620f0833b763789981d8ac3c27a1313712e9db9f4c54d4d048656f908dfd5f8fd47754122832ec9a5babe71654dd68abf3be2fcc646b4051ae569619539559ecdc8704b7e42842cb6ca45fd312acaf8524ca6b85c448556d2cd78649e6ebd6a27d36a33a17a2edd3b274218507181dea004ec9f5cdde8f21a4b1d72605248d913a7bffebc8c2da4112e01cdf5ea09f3bccca3bb04c8b5f541d2fc8441b8d3d6ea3c77b581859a7d3bfd988720ba54971960c7c819bb9f68787045542485f601801e8b93dcbe5ad951c25c81ade7c420a57ccc7e4334184d70146eb73caf9014c5f60cc59cd4eb4c1a72ce8082c9ab2d6064dcf4ca45e56b219c11d004e9c64008744be8a59edaf497f8a4a6d890b8671f797f03b129b7f40329fe19868cdf336e360723bf6c018eb348c2dc0d08fe1100d9af650bb307f58f65ae60f7cbfd93f8456af14c3c211e5d849664d587a3263ecdfe2cf02bcc53184bc9cea0016ba63c4c4708da2b06cfbe268930bac6763753b55c880d9b963b4175ec238edb146aff8d3b207c2bae0fdd6805130c0d5301afab2fb0974267bbaa4dd0a75b178f64c9a60f9e63ca3cd0ce3023635aeaf68a55a1941edf8b26d8540623df1ddcb425c757937975ff0f469e72ee37531f3de494ec2bf29e200ccc1eaf6cf197c9aad3b8011603e7e9f02d1026fbc41a035c3ef8734609fe454c754f1e0b86c49e6b628726ca00fc07e301418c3240a69654daf74d1d326d00ba1f0ea019a30100acfb81bc1368509200e3fd7f41978911515da372bc04b57115353289c148ee9382f4e74e2039c6ba6226c9056f88a8d9da7184913ffb380eb7385f1ea4c3a0eb02b291b49c2d190d4766a1f6764dabeae92ee87a02e8580c4dff8779fa5f0de0431a7785d3876d837999b882f9d93b1163b7079e5b87ff3ba30869a179110c6c2e45bc37cf188139e8e1f72aa29933a1402179f78144a12711e92cb85a1e70fd82b89bb66a1971ad33e35aa734c7ad1bc01869ccbd1477b55e68fbf80e9595bb4bb7ddc852f75822947d655e486027e2010714da287432bae797d0f6fa8f7c6b3470b19dca7e2f6faf150381be86b23c6c66605373557fbdf162119a5775b0944c23f264465c3c58e447e21b019a0f49c4174037a4dfeb95d19ba7ba263fee44df4f6e1bfa169def011803ac80ef16b386c2b76ffa20650e859227e27b22fc881307f38e41fdb9d4cc3ca4b0b97af5e3df9c27d845ceb5e952c91b695a153da3e2053d04d1c536a458979ecc52ce3c409767664c784c76a6ef6b266ae381de3bde6dd21a2452caa01feae757406707d2ad57a55f7f2187f37584a8a32578402669659e60651b25c0b883a324d5ad06c7ae250df531294b3313f2657a31ece176d5781e99fac52e274b60235dc0579b59afce2617df2a3d63a5e55d1a9372a63256652132a7ef84edf1b0875dde05543096ab666f6ee518a2f740788901cb6af3570580b5124461ed21a3714955b7e65f78433073a8907691eaa84079f195fbf88b938cf8fe3f6bc6768047ba306241b45a12a5f503593a6d7fa36d6d537a1362abf967bcb5d62ebd2d2a4860f5d8c01fd10dbd1cb6144b84a9cde7839dbc17b4f6b7f381c5c1834be06d16ece011ae6ccb85cd4732ed044dcf48d7ddebcefab4b34e693cd8cdb4de01b629082edffe92bea96d10fb92091c66c5cbc878128956b1d7f08a59e49764ba34889c031f030de2d95adaf5e57b0cc72f654a0e8146c05710c7f318e4398c06f8358adf3ef204316bfb6f7cb3610e7107197a620b9a312e8fb05d67346e5e76acdce01e19f83212c6a54124f001e577e55c0c29fad642e27dafd8c909bc897b92c2ec564dfb670d5241add0af1515106a7c0e635df5b5ec5fecebac86565057dc0603ffd7e66c6b4796e825d6febb548aaa821edd7248a15fb9ad1fa326005a765e55af2c7887f2b3744d98666773af43a97c5957f73dd66c91a39083ee4f9a9f58b6ed0292a88ae14978e847ee0e7a2c574ed0eafdf0c44451e01975040e837a17e22a0f74c0415c2dd044ec3dbda9a6e63c8a960e6e13c874360910a5bb8e510bb47243a41882e81ec3263d02844fc71ee01481227c41daf51e9d360a664e0e344afe90d11226fdd618e479b8c3a93707e41a2cc7688aa4f49fb5146d6c77a90bea32b6cfa84e47d38373a20d623260358e6df069644bedf1be2cdf45691e3d52d3a07c32e9e31b2702fa562d368d245d534bc4db802b2be99cb31a718fe993e645ca74b1f38e864743bb96b0983615e6be982a0b421dd060116de1db469f9182825771faa5ec4ecd20c570164f2b762fc89666fa424a2ddd38570453bc9f7a07be102b9e83978b87e74ec2368f0bcfb6aefdf08780c5f412cc6bb41f130cbd94220698d022bfd8564dc5fa5ba20e622e2468d862790b6eb906df59eff184473344057077a2a469b1ae30210f3d40c25240e3217f1bf229a515380c04eb3cb6707b36bcdabb7f3ab95ff5d6899824380c0af56ad5aeb0de5b185f780f409ac79b175a070c29e2611d46adf04392edcdb1d49a9f659d43c74124ecf0a058559d680d64e0338d47d695dfb24c17ca58e22b3384f37aa31b75885d873837d4817ba964559377a01843273edfe9ba36df1e5bf08c3b388161afca7ff4af02179ead600a4d594b300c73f9087f7ce33108e55fb848e26b9a25854788f467d4f3b56483a0bdbedf81cd00a0d9321037e836fc60e9a977cf5f33558368963eda6babb451dc4912161388b550b796b2906db2b005a72f2817c8ba93f286f0d2b4db52a442c366309fe9e03939ff00b7c59b74ceeb705c28d8a57fefdf565165d1c7f5e3287d683f8300ef07d9648c2b4c6d96e1bf1c48cf448ddf7e58f22450044827a6ec8be6a9553ef9207e0550e53e10e48ebb9597f95db18025d3c44aee3cc861c56cdaf8fef865452a53f39cc6d311ddd2faef9724b891eb16f2fa41b967719cf1f09e2c05199278d21051b9e6a7b728b83258a34fc19165fb4dbcdc4600881528d77f8b2da4aa9e059008feeb8a47b627c9f7bdfd45a1ff6afa58d37f77d439b27966fae76d3a6565b318bd3e28d63824f3f8dbdcf4ed2949c2ae491d498a77679da2e53ce3373434049372f280b6b089553f3fd3d3cbc4e27b42d131f0bb47eada7dd346bc49d591ae4e278ca8a95c866cdce78da992d665f2f28dbad8727151ae0e552b2502730b45b1a66f71b860e5399e83c5af51dc458ce58a7a8dcd9dd5f6abf060fe60cd5b40bfc6a8a5cda861c8943827a4bdc53e6168aa4516975135651c33c161187950e35a31c1767678cfcae4544ec2743fdd38bd88662a6f5c18cfccfef2e681f2e1b2ff0a1fda83450ed5de2ef6816579f7f95bb0e77b12e863985e9e09cfcd699dcb0e7f67e9b4cf1d34ebbd5e1b2be080f7b65aa59816b4adafd4b7fbfec05349cc18d0430adb764ec168c93e9f4aeb73c369265866e68910f28c5ecee6d7a6af050e750914f1b267f4ea80e23b37b59844773058eeb786f34e844c826deb1879782368e3792d78900157014a5106832e31dc2f17b9547324fde71572a628c0d674e021cab96cd7d8395f8b035feec7e5c537c072c8d8f8ad8116cb1a847b47daf82bee75514cb56888da434e53926723a253758f5181913f3ac003874c631284a4ae9b36ad3f9b2d7d98998b5ab0a377e3c59178dec206b352159eccc96362f47b091d1827595eb662a373730b233aac03785e682998b055a74834677d035267191317818b22af65c4b511db14810622c44a3eedf47c0831ecb3efa139b0cdcfe04af7d25af4edc06fe51b59ea5e4179fe5b9691d7999d30373a25131f255f7c0d62d92af242b3fba122f173334158ac8bf6b14ed9239fff469dfa1814a2c76227ec25bd3f87e817f28e81c056dfce07b84b998ee0efa8004ea0e852bbf002656a597435642a976f916ee4e7ba33cc78c7762cd25835ed303d6191591b8cf03490131f3052cb51a6941649ec3305469dc6dffab60eab41454cd50ee29b93e4fe57b8e4165d7c62c6382728524cb1f3edcad55cdf7644fe89dd47f609d9b942e9a3b9fe6494ca0d47f04a2b71dc48a62764fffd4f2b3bfc61eebb1ccc383f7c44139aa831aef27acfe22c2f6f343cc0ba173cdaff07175802315e3144e6849a4f041ae71b88ebae14dcc957f36018991b11c29ba25047265c6bab59b91e9164ae8324f883f9d766223b2b1798c8ebc17aef2803015e3196fc7ecb59d2c7433eed21c2feb681e1320fa0d3c4541bd39d6be76e0cfd31e0213af658404ec2e6397bd0aa997dd9df03f31233f2b857334346b0cf69507a682e74c1560b1a598dbb267c8270cb92515974621065cb887e645d38b5d83326238c295b3cb9168d9b21ca865ea0d6821d445a0159740534ab7baa96cbf5e7bb26a747db17c9b2fa309a8777d83fc159863d397c2c8117ac784520547ea6e966cd514437af33c9bc977eb72a6c12d54d80933bc156e256208b4bc110175c58ab1bf52f765594207b79e923590c6beef92430207887bdfec882fc12f18a72f689fc3123cfd9c84718f3e3aab82bc51941d1ea9a960f4dea676e4e48f8c830d440e96abb8239d248431fa5a1bb3472e76e2d6a82262756e7652213249371a4395d6bf29de0f1847a95db954a3bbf6e7887675c93385d03a7dab469f627dcd8e2d657ef1acb7d80ada01566594abcafc4bf55b78a5a525a3bbd9976083d1965911e272c65a46d36f97723a5d411194b8b363aeeac630b85f5039c1e5bd74b64fcb46b259548ccfc7d7e33d28830758ca657563f14aa0294cfc659344dd99267a4dfa51c0d3cafc33c6bdee9103e122304e2210a382ad7b4f1360c580a1dee17ab13527cd4e57bbe3c3b55a3cd220069aea896c39faccc79b2945fb1bfa03b582bfbfcc51011bf3e48bf849e72ef49daeac4cc4c3916f15dbb63613472ccfcdedced64f31ebe23ae261af440bec261cc343625f44fa6ecd9d8179b2d1eca4e2d2531fab9d7f2583f187eef66bfc9d968a0b3eaf9322d5d75cec3a30a95eb4232c4aec24a0ee28b432687dd122a78af962493b610c321b4edfdc7b6893c05ea33de8533132c8ab6e26114adf62d8c97fd821f9ff38c40cd4c96fe2d9744609e2a2b4b38aea6f9117c5c9bcdc57ab4322b40fe2a93f71b9c7e9130d953e59989c324b67de9aae700e85858587ec374abded64278b35a344403a6f612aa4f46d7280a13f13edeb500a1e97c01f8645d8d7e80ca06ed931c52a3e5111fc0afce0ec69d0291d7394264573bb6641690261dc8b324cbe8f58a2c8ad6defa428e8ce849671da0ccb51b47eff20866ee8a3d1f2a55d13a611ef1629fd8986c7c9763ccfde0ff6e3586a30fa99d51f23974e1e305b02d8848e2c5f3a66a269b04b9d42ce921dfe27de37c9d600bd410a0c4edd1c926b2b19ef60d930475a267fad9186ba5576cf73ca8ee3f946a1de01c949bc001b83dd1b6aa1dbb1f2ea87e5b8eff522ede5802ef8e88e9d6f0e655a5ce8371880b5ac6084657c4ebcd4168471473d57b795831f49fd9aea7007d410445fd6563855d1b49f4a913f7ddfe18be9cd69837b4c34d476ddb5ddbc2ee192b1c0a189f6ce16bfb7ec501e007c36bcdf10d90d268085e166e362f44a5f3cbb747aae51622719dbd75595bdd0c7f0b82945172cf5d6d13ea7b01df131bca2f2a845797249a8761d5006970415a26a93955014373fc286b49d4feaad42b0e704f7c0add8b1ca9b16dd7410a1d7a2d2ea6a3adaa9b6f4ccd7e0689d4785350b8ef17ad1a3195a7e3c43bfb70f4b05386ec3d233faa2c2cf0b94f64b3f2f99cc2d43f5c9e723e30569930ef71a5be1260ffcf1efaa8a378d18f31927c1e88c0440bc8f4d84f1affbb389da76f58bf79c0d8df73455b13addef4944c2251f453047b6e5c044518017cec1065298cf0b9076e5c3a8e853b1badad576dc49fd33d57b9b3c03bf40cb108b3d103336d3d373867940c32fae63a020023c3fbfc952d1b834b4733b26bce3f38b422e6da605ab361293bfd63e2e08319526f069783e85740e2bb9d4837e830ed4fc89a1875e1104783e183816236b03fb7fe35b4481f1b2cd48a1765489b8e0c6e28bd6503605f7d264d6cd08046e301f1c035773fcdde81cf6ad8eb2a0d375ed932a44d35a6138ac2b316f70cb3537bf657c8e47addfde356009dfd170e54f01ab591a3aaa094eda84765db6ccc8b66dbb899587499abe6ea0d69f7f27f8a483c19af55599af84878d1701f042996132da1e6f387a9c14d1f2e910ee3bc2f2303695cf9f8f0efa43bb8a521a833438081d3feb484238d0c357841d32d4494b8e9d647a4b4849c14d4ebeba08dddb72635186adf0334353441968d6fc0a5c82de10a76871d9c77c739d693f18d759d5ddf7ed63cb3db1b478fc6d02a5adc27123fba58e6eff611748fbdbfacd832940a4d32e2b611053d9339d5652f042e88ba5ffb6ac48e62694944faed98fe47308cc1e1e5247b4477c38933eb58a9af252955101d9e6766c31d2faeb606ae73514919af35f57d68d385d7b974ff953a4b48335b387e3c4d76f2080686d4d28e2f602929f6c99239e77fad4a70ab2af43fe3e6d0b886157de3f1c45d6b0b17274c8316a0fb773950d3962857afc7852fda74559f51ac98466f4f2c2347f8137dfa78d78731b47ca2d908ad3b629129d69609d06f36f94b046412c40cfa2d2a85843c171236f5e990a8da7164fa7265c0c93b4db55606cac0283d0ec33c2fba7df92173ee3cbf73f218033780a79590fb0c83657cdcba6b996f056630d0ebf84bb9e67d9c4826dfa2f6314e80ac8b165d18911b72f7fe11d6bcab535c31a47caba818ca3929d0f91a22aa96261858aed9e6691061edba87c8562cfda9c56282f437dba6983d30a7e121e51d8735959c7fef14c7d4e491f3f5252d84fbbf0a71b783b05cecedd89c6a1470e681917e18b7e56d06e0ba34e9367e323b4cf8edff582312793e3df557c9304effb4cad8b6346288b72d2dbfb8055607348cfda225772a47f496f1c00573a124d1ebfa55ae334bcffaf71e0b930ebbb9ed3692346bba3d4bec8150aa229f2207f890934f600cce2f4c64f0ce047353aeb8a85049e30b3d0dddd109521899b6b4904710315a434f0254e4bced9a9b509c86ab43b4d5e5794a1ed000ae7385b356b839b2419ab9206212cf598a8c5eb7ff2de2075f03dc6c530a3824a52c7ab13e19c37d466a921098f46aa47f94b1d9d24d08b68c0a8323829b5b69a85bf63fc7a45556a29418fc659b73a5c3297c73cc455b05365df48b46155b4ca18bd060886cf9dd25562ec2e92fcfb5c552d1bb785b979047a45c244ff23fb0ed530dae199951a77674990d2af344500db7add5098b5a1abf258fdc7f2fb9cf39ccdee4b2674bc0b66f3ca2c6648a63926596465b2abd73a206c544da8e1849adb5712f35dd503bb18a2cdd4325c5a83579058928c22e7d38f5cb11948263c29e293534faf502ea05c6e57266f307229ab5ddb91e28e33741e911e8b9a18eaf0f038c8b4e345a5f1b4c1634eee95b75963b90303d27a5f795554a1f27d4ed60563c784d94c8f77c8f2cdac3a36f58131c84b8d43c9fee3e96a35e078c700b9a812407cecec6b97277567a5256c024ed64a7a9986dba65e464a7179a744008970e80a85618d45e7def1e2305af7d1e6bf710676b4e9d1370510fa7d481f93236c6e9812502d4154083b8294c29fa254ea93844cf85b207a7871ffbbe6423316a3fef28e7bcd32c0ccda1a6460c7defe7a1fa2162b5c0c98f678b92d483be6355bc24e0bfa267efb6e6eb92f240dfa7442f912db36129643695ee86a2c158b66cd728cf6190e314024e0869dbdfd2ded2562cf26b357840db582e254717d5b96964d0458ca16136d704613d33a12fd2195ee4fc56659a2577b9129d505383f33ec9392ac8c992e0c04c145bca763140e76f5af76de417842e3394d317a87266d9d409c842ac5de7fd3c50f53ee45bea89ec505a8dfdd2984bc90bf76eb56e8b99740b9148e455ad0ebbba6d2f83bd9e4349b450cfa5b55a437c0f77fef826537b69934eca3504d5238b8fcc40c3b8749fe34dfd16e3672eb9eeb97bf91cfcb6b5b4108fea6af2c6f8dfdb2ce722642759c6d62aa9d04cb47ad9dc64e6448eeb0ad4e65d691979c853cf187352fbd54609f3b9becd402c29ecfb393d04e2827939f45bd330ae816adc78f9964d99af89015b3840198006bb4f5cd72b718b3add461eaaee61c5926cd5bb7978fcff2a8e1ee97aec2cf6d3c434fc9c377a74308ac286e36c87649d08a96e02163cb74712342a6043f7fe03fa46e813e9c472115c3689b385aa818ffe6013066644851875250bd4583b99f9f92c01266f703fe24eb08a05428a824b3087ff10911cadd075dfdca9d0f2c54b431a98a6faf099b3af1d131b2f111307501b50f2a6a0b1bc19a1d73d0e146ed68586bc7371210c89b5345a09e7c24e9e0f9e7336358f3cc36cc4f2b44de455b3438a48928de6292420f2b51c12effe363acae013a09cb5af0f24175a3a719635f89e242d772d5443c4e8ab5c36e77678330ea725cfebc53f292f83eb56157f093dc084f65071476200be1e615caef711cb19949be9cf3e6030dac736b5f7860536afc9ed9f9da7a75d864129c35ca3f1783284c5beda74053f9cbfef0a1</script>  <div class="hbe hbe-content">    <div class="hbe hbe-input hbe-input-default">      <input class="hbe hbe-input-field hbe-input-field-default" type="password" id="hbePass" autocomplete="current-password">      <label class="hbe hbe-input-label hbe-input-label-default" for="hbePass">        <span class="hbe hbe-input-label-content hbe-input-label-content-default">防君子不防小人</span>      </label>    </div>    <button class="hbe hbe-button hbe-submit" id="hbeSubmit" type="button">解密</button>  </div></div><link href="/css/hbe.style.css" rel="stylesheet" type="text/css"><script data-swup-reload-script type="module" src="/js/plugins/hbe.js"></script><script data-swup-reload-script type="module">import {initHBE} from "/js/plugins/hbe.js";  initHBE();</script>]]></content>
    
    
    <summary type="html">私人作文汇总</summary>
    
    
    
    <category term="作文" scheme="https://blog.goose.cc.cd/categories/%E4%BD%9C%E6%96%87/"/>
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/tags/%E9%9A%8F%E7%AC%94/"/>
    
  </entry>
  
  <entry>
    <title>Kimi Android App API 逆向文档</title>
    <link href="https://blog.goose.cc.cd/posts/kimi-android-api-reverse-doc/"/>
    <id>https://blog.goose.cc.cd/posts/kimi-android-api-reverse-doc/</id>
    <published>2026-10-25T08:27:25.000Z</published>
    <updated>2026-10-25T08:27:25.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="Kimi-Android-App-API-逆向文档"><a href="#Kimi-Android-App-API-逆向文档" class="headerlink" title="Kimi Android App API 逆向文档"></a>Kimi Android App API 逆向文档</h1><blockquote><p><code>kimi_3.1.0.apk</code> · <code>com.moonshot.kimichat</code> · <code>3.1.0 (371)</code> · <code>260 APIs</code> · <code>69 services</code> · <code>909 messages</code> · <code>158 enums</code></p></blockquote><blockquote><p><strong>SHA-256</strong>：<code>dfec71074faf75e5ae21c488538ff3a28a726ed2da33b609ee6a5953bcacc27f</code></p><p><strong>Git revision</strong>：<code>11d1ceb9b5e653e5da0a014dde3cddc81fff41bc</code></p></blockquote><h2 id="接口索引"><a href="#接口索引" class="headerlink" title="接口索引"></a>接口索引</h2><p>共 69 个服务、260 个接口（⚡ &#x3D; 服务端流式，需按帧解析）。</p><ul><li><strong>社区对话</strong> · <code>moment.v1.ChatService</code>：<code>CreateChatV2</code>、<code>GetLastChatV2</code>、<code>GetOriginalMessageCount</code>、<code>GetRawShareChatV2</code>、<code>ReChat</code></li><li><strong>社区-评论</strong> · <code>moment.v1.CommentService</code>：<code>CreateComment</code>、<code>DeleteComment</code>、<code>ListComments</code>、<code>ListSubComments</code>、<code>VoteComment</code></li><li><strong>社区-举报</strong> · <code>moment.v1.ComplaintService</code>：<code>CreateComplaint</code></li><li><strong>社区配置</strong> · <code>moment.v1.ConfigService</code>：<code>GetConfig</code></li><li><strong>社区-收藏</strong> · <code>moment.v1.FavoriteService</code>：<code>CreateFavorite</code>、<code>DeleteFavorite</code></li><li><strong>社区信息流</strong> · <code>moment.v1.FeedService</code>：<code>GetFeed</code>、<code>ListFeeds</code>、<code>ListFollowUnread</code>、<code>MarkReadForFollow</code></li><li><strong>社区-关注</strong> · <code>moment.v1.FollowService</code>：<code>ListFollows</code>、<code>ModifyBlock</code>、<code>ModifyFollow</code></li><li><strong>社区-话题</strong> · <code>moment.v1.HashtagService</code>：<code>GetHashtag</code>、<code>ListHashtags</code>、<code>RecommendHashtags</code></li><li><strong>社区-兴趣</strong> · <code>moment.v1.InterestService</code>：<code>ReportSelections</code>、<code>SubmitSelections</code></li><li><strong>社区-动态</strong> · <code>moment.v1.MomentService</code>：<code>CreateMoment</code>、<code>DeleteMoment</code>、<code>GetChatShareCard</code>、<code>ListMomentAskKimiQuestions</code>、<code>ListSimilarMoments</code>、<code>VoteMoment</code></li><li><strong>社区-屏蔽</strong> · <code>moment.v1.MuteService</code>：<code>AppendMuteReasons</code>、<code>ListMuteReasons</code>、<code>Mute</code>、<code>UnMute</code></li><li><strong>社区通知</strong> · <code>moment.v1.NotificationService</code>：<code>GetReminderStatus</code>、<code>ListNotification</code>、<code>ListReminders</code>、<code>MarkRead</code>、<code>MarkReadForReminder</code></li><li><strong>社区搜索</strong> · <code>moment.v1.SearchService</code>：<code>ListHotHashtagsInSearch</code>、<code>SearchHashtags</code>、<code>SearchMoments</code>、<code>SearchUsers</code>、<code>SuggestSearchQuery</code></li><li><strong>社区-上传</strong> · <code>moment.v1.UploadService</code>：<code>CreateFile</code>、<code>GeneratePresignedURL</code></li><li><strong>社区用户</strong> · <code>moment.v1.UserService</code>：<code>GetMe</code>、<code>GetUserProfile</code>、<code>ListMentionableBots</code></li><li><strong>对话</strong> · <code>kimi.gateway.chat.v1.ChatService</code>：<code>BatchDeleteChats</code>、<code>CancelChat</code>、<code>Chat</code>⚡、<code>ChatFromCase</code>⚡、<code>ContinueChat</code>⚡、<code>CreateChatFromShare</code>、<code>CreateChatShare</code>、<code>GetChat</code>、<code>GetChatShare</code>、<code>GetChatShareMessage</code>、<code>GetChatShareScreenshot</code>、<code>GetMessage</code>、<code>GetMessageRecommendPrompts</code>、<code>GetToolBlock</code>、<code>GetUnreadChats</code>、<code>ListChats</code>、<code>ListMessages</code>、<code>MarkChatAsRead</code>、<code>MessageSpeech</code>⚡、<code>ProcessAskUserResult</code>、<code>RegenerateMessage</code>⚡、<code>ReplayChatShareStream</code>⚡、<code>ReplyInteraction</code>、<code>ResumeChat</code>⚡、<code>ShareChatToCommunity</code>、<code>SubscribeMessageStream</code>⚡、<code>UpdateChat</code>、<code>VoteMessage</code></li><li><strong>对话分享</strong> · <code>kimi.gateway.chat.v1.ChatShareService</code>：<code>GetChatShareDocx</code></li><li><strong>Kimi+</strong> · <code>kimi.gateway.chat.v1.KimiPlusService</code>：<code>ListKimiPlus</code>、<code>ListPinnedKimiPlus</code></li><li><strong>提示词</strong> · <code>kimi.gateway.chat.v1.PromptService</code>：<code>GetEnhancedPrompts</code></li><li><strong>IM 群聊</strong> · <code>kimi.gateway.im.v1.IMService</code>：<code>CreateInvitation</code>、<code>CreateRoom</code>、<code>DeleteRoom</code>、<code>GetRoom</code>、<code>GetRoomByInvitation</code>、<code>GetThread</code>、<code>InviteMembers</code>、<code>ListMembers</code>、<code>ListMessages</code>、<code>ListRooms</code>、<code>ListTypingMembers</code>、<code>RemoveMember</code>、<code>SendMessage</code>、<code>SetMemberRole</code>、<code>UpdateRoom</code></li><li><strong>账号认证</strong> · <code>account.gateway.v1.AuthService</code>：<code>BindPhone</code>、<code>ConfirmLoginQRCode</code>、<code>LoginWithOneClick</code>、<code>LoginWithSMS</code>、<code>LoginWithThirdParty</code>、<code>Logout</code>、<code>RefreshToken</code>、<code>ScanLoginQRCode</code></li><li><strong>账号设备</strong> · <code>account.gateway.v1.DeviceService</code>：<code>RegisterDevice</code></li><li><strong>短信验证码</strong> · <code>account.gateway.v1.SMSService</code>：<code>ListCountries</code>、<code>SendVerifyCode</code></li><li><strong>青少年模式</strong> · <code>kimi.gateway.account.v1.MinorModeService</code>：<code>BindGuardian</code>、<code>GetMinorMode</code>、<code>ResetPasscode</code>、<code>UnbindGuardian</code>、<code>UpdateMinorMode</code>、<code>VerifyGuardianPhone</code>、<code>VerifyGuardianReset</code></li><li><strong>账号安全</strong> · <code>kimi.gateway.account.v1.SecurityService</code>：<code>BindPhone</code>、<code>BindThirdAccount</code>、<code>DeactivateAccount</code>、<code>ListThirdAccounts</code>、<code>RebindPhone</code>、<code>SendVerifyCode</code>、<code>UnbindThirdAccount</code>、<code>VerifyCurrentPhone</code></li><li><strong>用户</strong> · <code>kimi.gateway.account.v1.UserService</code>：<code>GetCurrentUser</code>、<code>ListWorkspaces</code>、<code>SwitchWorkspace</code>、<code>UpdateProfile</code></li><li><strong>Claw 文件</strong> · <code>kimi.gateway.claw.v1.ClawFileService</code>：<code>ListFiles</code></li><li><strong>上下文</strong> · <code>kimi.gateway.context.v1.ContextService</code>：<code>GetGoal</code>、<code>UpdateGoal</code></li><li><strong>文档转换</strong> · <code>kimi.gateway.converter.v1.ConverterService</code>：<code>ExportDocument</code>、<code>GetExportDocumentJob</code></li><li><strong>文件</strong> · <code>kimi.gateway.file.v1.FileService</code>：<code>GetFileParseProgress</code></li><li><strong>存储</strong> · <code>kimi.gateway.storage.v1.StorageService</code>：<code>GetUserStorageQuota</code></li><li><strong>应用发布</strong> · <code>kimi.gateway.app.v1.AppService</code>：<code>ListVersions</code>、<code>PreviewApp</code>、<code>PublishApp</code>、<code>UnpublishApp</code></li><li><strong>App 支持</strong> · <code>kimi.gateway.appsupport.v1.AppSupportService</code>：<code>ScanQRCode</code></li><li><strong>产物分享</strong> · <code>kimi.gateway.artifact.v1.ArtifactService</code>：<code>ShareArtifact</code></li><li><strong>Claw 机器人</strong> · <code>kimi.gateway.claw.v1.ClawService</code>：<code>CreateBot</code>、<code>CreateModelAPIKey</code>、<code>DeleteBot</code>、<code>ListBots</code></li><li><strong>Claw 技能</strong> · <code>kimi.gateway.claw.v1.ClawSkillService</code>：<code>DeleteRemoteSkill</code>、<code>InstallSkillToRemote</code>、<code>ListClawSkills</code>、<code>ListRemoteSkills</code></li><li><strong>配置</strong> · <code>kimi.gateway.config.v1.ConfigService</code>：<code>GetAvailableModels</code>、<code>GetConfig</code>、<code>GetPrecheckConfig</code></li><li><strong>设备</strong> · <code>kimi.gateway.device.v1.DeviceService</code>：<code>CountDevices</code>、<code>DeleteDevice</code>、<code>ListDevices</code></li><li><strong>实验</strong> · <code>kimi.gateway.experiment.v1.ExperimentService</code>：<code>GetExperiments</code></li><li><strong>信息流</strong> · <code>kimi.gateway.feed.v1.FeedService</code>：<code>ListFeeds</code></li><li><strong>凭证签发</strong> · <code>kimi.gateway.issuance.v1.IssuanceService</code>：<code>GetCredential</code></li><li><strong>MCP OAuth</strong> · <code>kimi.gateway.mcp.v1.MCPOAuthService</code>：<code>CreateMCPServerAuthorization</code>、<code>GetMCPServerAuthorization</code></li><li><strong>MCP</strong> · <code>kimi.gateway.mcp.v1.MCPService</code>：<code>SetMCPUserSettingStatus</code></li><li><strong>OKC&#x2F;产物</strong> · <code>kimi.gateway.mcp.v1.OKCService</code>：<code>GetCitationsByChat</code>、<code>GetDeploymentByChatShare</code>、<code>GetManifest</code>、<code>GetOutputFileTree</code>、<code>GetOutputFileTreeByShare</code>、<code>PublishDeployment</code>、<code>ResolveFileURI</code>、<code>ResolveFileURIByShare</code>、<code>UnpublishDeployment</code></li><li><strong>会员</strong> · <code>kimi.gateway.membership.v2.MembershipService</code>：<code>ClaimEventBalance</code>、<code>GetBalanceEventInfo</code>、<code>GetSubscription</code>、<code>GetSubscriptionStats</code>、<code>ListBalanceActions</code></li><li><strong>长期记忆</strong> · <code>kimi.gateway.memory.v1.MemoryService</code>：<code>DeleteMemory</code>、<code>ListMemories</code></li><li><strong>记忆仓库</strong> · <code>kimi.gateway.memory.v1.VaultService</code>：<code>GetDreamStatus</code>、<code>GetVaultPage</code>、<code>GetVaultTree</code>、<code>ResetDreamVault</code></li><li><strong>杂项</strong> · <code>kimi.gateway.misc.v1.MiscService</code>：<code>GetDataSourceLocalizedInfo</code></li><li><strong>通知</strong> · <code>kimi.gateway.notification.v1.NotificationService</code>：<code>ListUserNotifications</code>、<code>MarkNotificationsRead</code></li><li><strong>商品</strong> · <code>kimi.gateway.order.v1.GoodsService</code>：<code>ListGoods</code></li><li><strong>订阅</strong> · <code>kimi.gateway.order.v1.SubscriptionService</code>：<code>CreateSubscription</code>、<code>GetDiscountURL</code>、<code>GetPricePoster</code>、<code>VeryDiscountUser</code></li><li><strong>置顶</strong> · <code>kimi.gateway.pin.v1.PinService</code>：<code>ListPinResources</code>、<code>PinResource</code>、<code>UnpinResource</code></li><li><strong>插件</strong> · <code>kimi.gateway.plugin.v1.PluginService</code>：<code>GetPlugin</code>、<code>InstallPlugin</code>、<code>ListAvailablePlugins</code>、<code>ListInstalledPlugins</code>、<code>ListPluginCategories</code>、<code>ListPluginSections</code>、<code>UninstallPlugin</code></li><li><strong>项目</strong> · <code>kimi.gateway.project.v1.ProjectService</code>：<code>CreateProject</code>、<code>DeleteProject</code>、<code>DeleteProjectFile</code>、<code>GetProject</code>、<code>ListProjectFiles</code>、<code>ListProjectUploadFiles</code>、<code>ListProjects</code>、<code>SetAvailableProjects</code>、<code>UpdateProject</code></li><li><strong>营销素材</strong> · <code>kimi.gateway.promotionalasset.v1.PromotionalAssetService</code>：<code>ListPromotionalAssets</code></li><li><strong>风控</strong> · <code>kimi.gateway.riskcontrol.v1.RiskControlService</code>：<code>ReportEvent</code></li><li><strong>技能任务</strong> · <code>kimi.gateway.skill.v1.SkillJobService</code>：<code>CreateSkillJob</code>、<code>DeleteSkillJob</code>、<code>GetSkillJob</code>、<code>RetrySkillJob</code></li><li><strong>技能</strong> · <code>kimi.gateway.skill.v1.SkillService</code>：<code>GetSkill</code>、<code>GetSkillFileTree</code>、<code>InstallSkill</code>、<code>ListInstalledSkills</code>、<code>ListSkillUseCases</code>、<code>ListSkills</code>、<code>RemoveSkill</code></li><li><strong>幻灯片</strong> · <code>kimi.gateway.slides.v1.SlidesService</code>：<code>GetSlides</code></li><li><strong>展示位</strong> · <code>kimi.gateway.suggest.v1.OpenShowcaseService</code>：<code>GetShowcaseByID</code></li><li><strong>展示位</strong> · <code>kimi.gateway.suggest.v1.ShowcaseService</code>：<code>ListDefaultShowcases</code>、<code>ListMobileHomepageShowcases</code></li><li><strong>推荐</strong> · <code>kimi.gateway.suggest.v1.SuggestService</code>：<code>ClaimPopupExposure</code>、<code>ListPopups</code></li><li><strong>多智能体</strong> · <code>kimi.gateway.swarm.v1.SwarmService</code>：<code>ListAgentMessages</code>、<code>ListAgentMessagesByShare</code>、<code>ListAgents</code>、<code>StopAgents</code></li><li><strong>触发器</strong> · <code>kimi.gateway.trigger.v1.TriggerService</code>：<code>CreateTask</code>、<code>DeleteTask</code>、<code>GetTask</code>、<code>ListTaskExecutions</code>、<code>ListTasks</code>、<code>MarkExecutionRead</code>、<code>RunTask</code>、<code>UpdateTask</code></li><li><strong>语音合成</strong> · <code>kimi.gateway.tts.v1.TTSService</code>：<code>ListVoices</code></li><li><strong>网站别名</strong> · <code>kimi.gateway.websites.v1.WebsiteSlugService</code>：<code>GetWebsiteSlug</code>、<code>SetWebsiteSlug</code>、<code>ValidateWebsiteSlug</code></li><li><strong>远程控制</strong> · <code>kimi.gateway.work.v1.RemoteControlService</code>：<code>CreatePairing</code>、<code>CreateWebSocketTicket</code>、<code>GetPairing</code>、<code>ListClients</code>、<code>ListServers</code>、<code>RevokeClient</code></li><li><strong>发件箱</strong> · <code>kimi.outbox.v1.OutboxService</code>：<code>ClearOutboxMessages</code>、<code>CreateOutboxMessage</code>、<code>DeleteOutboxMessage</code>、<code>ListOutboxMessages</code>、<code>ReorderOutboxMessages</code>、<code>ResumeOutbox</code>、<code>SendOutboxMessageNow</code>、<code>StopOutbox</code>、<code>UpdateOutboxMessage</code></li><li><strong>用户设置</strong> · <code>kimi.usersetting.v1.UserSettingService</code>：<code>GetUserSetting</code>、<code>UpdateUserSetting</code></li></ul><h2 id="基础环境信息"><a href="#基础环境信息" class="headerlink" title="基础环境信息"></a>基础环境信息</h2><h3 id="1-APK-版本号"><a href="#1-APK-版本号" class="headerlink" title="1. APK 版本号"></a>1. APK 版本号</h3><ul><li>文件名 <code>kimi_3.1.0.apk</code>（下载源 <code>https://appsupport.moonshot.cn/api/app/pkg/latest/android/download</code>，302 → <code>kimi-img.moonshot.cn/app/download/android/kimi_3.1.0.apk</code>）</li><li>包名 <code>com.moonshot.kimichat</code>；应用名 Kimi</li><li>versionName <strong>3.1.0</strong>；versionCode <strong>371</strong></li><li>minSdk 26 &#x2F; targetSdk 36；AGP 8.13.2；单 APK，3 个 dex，dex 版本 038</li><li>体积 35,683,906 字节</li></ul><h3 id="2-基础-Base-URL"><a href="#2-基础-Base-URL" class="headerlink" title="2. 基础 Base URL"></a>2. 基础 Base URL</h3><table><thead><tr><th>用途</th><th>URL</th><th>说明</th></tr></thead><tbody><tr><td>主 API（生产）</td><td><code>https://www.kimi.com/apiv2</code></td><td>所有 Connect-RPC 业务接口基址</td></tr><tr><td>主 API（测试）</td><td><code>https://kimi.kimi.team/apiv2</code></td><td>内测环境基址</td></tr><tr><td>Web 站</td><td><code>https://www.kimi.com</code></td><td>分享页&#x2F;协议页</td></tr><tr><td>鉴权基址</td><td><code>https://auth.kimi.com</code></td><td>账号认证</td></tr><tr><td>应用支持</td><td><code>https://appsupport.moonshot.cn</code></td><td>APK 下载&#x2F;帮助</td></tr><tr><td>对象存储</td><td><code>https://kimi-img.moonshot.cn</code></td><td>图片&#x2F;文件 CDN</td></tr></tbody></table><p>完整 URL &#x3D; Base + <code>&lt;路径&gt;</code>；绝大多数服务走 <code>/apiv2</code>，账号服务 <code>account.gateway.v1.AuthService</code> 的 <code>Logout</code> &#x2F; <code>RefreshToken</code> 走 <strong><code>/api</code></strong> 前缀。</p><h3 id="3-全局通用请求头（所有接口共用）"><a href="#3-全局通用请求头（所有接口共用）" class="headerlink" title="3. 全局通用请求头（所有接口共用）"></a>3. 全局通用请求头（所有接口共用）</h3><table><thead><tr><th>请求头</th><th>必填</th><th>取值性质</th><th>说明</th></tr></thead><tbody><tr><td><code>Authorization</code></td><td>必填</td><td>动态</td><td><code>Bearer &lt;accessToken&gt;</code>；未登录接口（登录&#x2F;短信）不带。由 AccountSessionManager 统一注入。</td></tr><tr><td><code>Content-Type</code></td><td>必填</td><td>动态</td><td><strong>Unary 用 <code>application/json</code>；服务端流式用 <code>application/connect+json</code></strong>（实测：用错返回 415）。</td></tr><tr><td><code>Accept</code></td><td>可选</td><td>动态</td><td>期望的响应编码；流式可带 <code>application/connect+json</code>。</td></tr><tr><td><code>R-Timezone</code></td><td>必填</td><td>动态</td><td>设备时区（如 <code>Asia/Shanghai</code>）。</td></tr><tr><td><code>x-msh-platform</code></td><td>必填</td><td>固定</td><td>固定 <code>android</code>。</td></tr><tr><td><code>x-msh-os-version</code></td><td>必填</td><td>动态</td><td>系统 API 级别&#x2F;版本号。</td></tr><tr><td><code>x-msh-device-model</code></td><td>必填</td><td>动态</td><td>Build.MODEL 设备型号。</td></tr><tr><td><code>x-msh-device-id</code></td><td>必填</td><td>动态</td><td>设备唯一 ID（首次安装生成并持久化）。</td></tr><tr><td><code>x-msh-session-id</code></td><td>必填</td><td>动态</td><td>会话串 ID（getSsid）。</td></tr><tr><td><code>x-msh-version</code></td><td>必填</td><td>动态</td><td>客户端版本号（3.1.0）。</td></tr><tr><td><code>x-msh-app-channel</code></td><td>必填</td><td>动态</td><td>分发渠道号。</td></tr><tr><td><code>x-msh-android-version</code></td><td>必填</td><td>动态</td><td>Android 版本（Build.VERSION.RELEASE）。</td></tr><tr><td><code>X-Language</code></td><td>必填</td><td>动态</td><td>语言（如 <code>zh-CN</code>）。</td></tr><tr><td><code>X-Msh-Shield-Data</code></td><td>必填</td><td>动态</td><td>风控&#x2F;设备指纹数据，由风控 SDK 生成。</td></tr><tr><td><code>X-Auth-Block</code></td><td>可选</td><td>动态</td><td>鉴权拦截标记（账号被风控时）。</td></tr><tr><td><code>X-TC-Token</code></td><td>可选</td><td>动态</td><td>腾讯风控&#x2F;验证 token。</td></tr><tr><td><code>x-user-region</code></td><td>可选</td><td>动态</td><td>用户区域。</td></tr><tr><td><code>X-App-Key</code></td><td>可选</td><td>固定</td><td>部分 OpenAPI&#x2F;插件接口使用的应用 Key。</td></tr></tbody></table><ul><li><strong>固定值</strong>：<code>x-msh-platform=android</code>；<code>Content-Type</code> 按接口类型取 <code>application/json</code>（Unary）或 <code>application/connect+json</code>（流式）。</li><li><strong>动态生成</strong>：<code>Authorization</code>、<code>R-Timezone</code>、<code>x-msh-os-version</code>、<code>x-msh-device-model</code>、<code>x-msh-device-id</code>、<code>x-msh-session-id</code>、<code>x-msh-version</code>、<code>x-msh-app-channel</code>、<code>x-msh-android-version</code>、<code>X-Language</code>、<code>X-Msh-Shield-Data</code>。</li></ul><h3 id="4-鉴权体系说明"><a href="#4-鉴权体系说明" class="headerlink" title="4. 鉴权体系说明"></a>4. 鉴权体系说明</h3><ul><li><strong>Token 模型</strong>：<code>Authorization: Bearer &lt;accessToken&gt;</code>；refresh token 以键 <code>android_tech_refresh_token</code> 持久化</li><li><strong>刷新链路</strong>：access token 失效时由 <code>AccountSessionManager</code>（<code>Lzr/d;</code>）调用 <code>/api/account.gateway.v1.AuthService/RefreshToken</code> 换新并重放原请求</li><li><strong>登录方式</strong>：短信验证码、一键登录、第三方、扫码</li><li><strong>免鉴权接口</strong>：<code>SMSService/*</code>、<code>AuthService/LoginWith*</code>、<code>AppService/ListVersions</code> 等</li></ul><h3 id="5-Connect-RPC-协议简要说明"><a href="#5-Connect-RPC-协议简要说明" class="headerlink" title="5. Connect-RPC 协议简要说明"></a>5. Connect-RPC 协议简要说明</h3><ul><li>协议 Connect-RPC； <strong>Unary 请求用 <code>application/json</code>，服务端流式用 <code>application/connect+json</code></strong>（实测：互换会返回 415）</li><li>路径 <code>/{proto 全限定服务名}/{方法名}</code>，如 <code>/moment.v1.MomentService/CreateMoment</code></li><li><strong>Unary</strong>：请求&#x2F;响应各为一个 JSON 对象；HTTP 方法 <strong>POST</strong></li><li><strong>Server-Streaming</strong>：响应为 Connect 流帧序列，每帧负载为 <code>ChatResponse</code> 事件信封；HTTP 方法 <strong>POST</strong></li><li>消息命名约定 <code>&lt;方法名&gt;Request</code> &#x2F; <code>&lt;方法名&gt;Response</code>（同 proto 包），字段为 proto JSON 映射（camelCase）</li></ul><p><strong>本包内服务端流式 RPC 清单：</strong></p><table><thead><tr><th>路径</th><th>请求消息</th></tr></thead><tbody><tr><td><code>/kimi.gateway.chat.v1.ChatService/Chat</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ChatRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/ChatFromCase</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ChatFromCaseRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/ContinueChat</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ContinueChatRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/MessageSpeech</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.MessageSpeechRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/RegenerateMessage</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.RegenerateMessageRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/ReplayChatShareStream</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ReplayChatShareStreamRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/ResumeChat</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ResumeChatRequest</code></td></tr><tr><td><code>/kimi.gateway.chat.v1.ChatService/SubscribeMessageStream</code></td><td><code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.SubscribeMessageStreamRequest</code></td></tr></tbody></table><h3 id="6-错误码总表"><a href="#6-错误码总表" class="headerlink" title="6. 错误码总表"></a>6. 错误码总表</h3><p>错误通过 <code>ErrorResponseV2</code>（应用类 <code>Lfx/o;</code>）返回：<code>{ code:int, message:string, details:List&lt;ErrorDetail&gt; }</code>。</p><table><thead><tr><th>code</th><th>gRPC 状态</th><th>说明</th></tr></thead><tbody><tr><td><code>0</code></td><td>OK</td><td>成功</td></tr><tr><td><code>400</code></td><td>INVALID_ARGUMENT</td><td>请求参数非法（字段缺失&#x2F;类型错误&#x2F;超出约束）</td></tr><tr><td><code>401</code></td><td>UNAUTHENTICATED</td><td>未认证：token 缺失&#x2F;过期，需刷新或重新登录</td></tr><tr><td><code>403</code></td><td>PERMISSION_DENIED</td><td>无权限：账号受限、青少年模式、或资源不属于当前用户</td></tr><tr><td><code>404</code></td><td>NOT_FOUND</td><td>资源不存在（已删除）</td></tr><tr><td><code>409</code></td><td>ALREADY_EXISTS</td><td>冲突（重复创建&#x2F;重复关注）</td></tr><tr><td><code>412</code></td><td>FAILED_PRECONDITION</td><td>前置条件不满足</td></tr><tr><td><code>429</code></td><td>RESOURCE_EXHAUSTED</td><td>频率&#x2F;配额限制</td></tr><tr><td><code>499</code></td><td>CANCELLED</td><td>客户端取消（流式中断）</td></tr><tr><td><code>500</code></td><td>INTERNAL</td><td>服务端内部错误</td></tr><tr><td><code>503</code></td><td>UNAVAILABLE</td><td>服务不可用&#x2F;过载</td></tr><tr><td><code>504</code></td><td>DEADLINE_EXCEEDED</td><td>超时</td></tr></tbody></table><h3 id="7-社区信息流分类（含“热门流”）"><a href="#7-社区信息流分类（含“热门流”）" class="headerlink" title="7. 社区信息流分类（含“热门流”）"></a>7. 社区信息流分类（含“热门流”）</h3><p>社区首页&#x2F;发现页内容由 <code>moment.v1.FeedService/ListFeeds</code> 驱动，用请求体 <code>category</code> 区分不同“流”：</p><table><thead><tr><th>category</th><th>大白话</th><th>说明</th></tr></thead><tbody><tr><td><code>FEED_CATEGORY_UNSPECIFIED</code></td><td>默认</td><td>未指定，服务端兜底</td></tr><tr><td><code>FEED_CATEGORY_RECOMMEND</code></td><td><strong>推荐流（即“热门&#x2F;发现”）</strong></td><td>算法推荐的热门与兴趣内容，社区默认首页</td></tr><tr><td><code>FEED_CATEGORY_FOLLOW</code></td><td>关注流</td><td>你关注的人发的动态</td></tr><tr><td><code>FEED_CATEGORY_HASHTAG</code></td><td>话题流</td><td>某话题下的动态（带 hashtagId）</td></tr><tr><td><code>FEED_CATEGORY_USER_FAVORITE</code></td><td>我的收藏</td><td>我收藏过的动态</td></tr><tr><td><code>FEED_CATEGORY_USER_LIKES</code></td><td>我点赞过的</td><td>我点过赞的动态</td></tr><tr><td><code>FEED_CATEGORY_USER_PUBLISH</code></td><td>我发布的</td><td>我自己发的动态（传 userId 可看别人主页）</td></tr></tbody></table><ul><li><strong>“热门流”落点</strong>：Kimi 社区 <strong>没有单独的 HOT 枚举</strong>， <strong>热门&#x2F;推荐 &#x3D; <code>FEED_CATEGORY_RECOMMEND</code></strong>；单条卡片用 <code>GetFeed</code>（<code>feedType</code>：<code>FEED_TYPE_MOMENT</code> &#x2F; <code>FEED_TYPE_INTEREST_CARD</code>）。</li><li><strong>热门话题</strong>：<code>moment.v1.SearchService/ListHotHashtagsInSearch</code>。</li><li>另有 <strong>与社区无关</strong> 的首页展示流 <code>kimi.gateway.feed.v1.FeedService/ListFeeds</code>，勿混淆。</li></ul><h3 id="8-Token-类型与刷新机制"><a href="#8-Token-类型与刷新机制" class="headerlink" title="8. Token 类型与刷新机制"></a>8. Token 类型与刷新机制</h3><p><strong>鉴权 Token 共两类</strong>（均来自登录&#x2F;刷新接口响应）：</p><table><thead><tr><th>Token</th><th>字段名</th><th>用途</th><th>有效期</th><th>存放</th></tr></thead><tbody><tr><td><strong>访问令牌 accessToken</strong></td><td><code>accessToken</code></td><td>每个请求头 <code>Authorization: Bearer</code></td><td><strong>实测 900 秒（15 分钟）</strong></td><td>内存</td></tr><tr><td><strong>刷新令牌 refreshToken</strong></td><td><code>refreshToken</code></td><td>仅用于换取新令牌</td><td>长（天级）</td><td>本地持久化，键 <code>android_tech_refresh_token</code></td></tr></tbody></table><ul><li><strong>获取（登录）</strong>：<code>LoginWithSMS</code> &#x2F; <code>LoginWithOneClick</code> &#x2F; <code>LoginWithThirdParty</code> &#x2F; 扫码两步 → 响应 <code>{ accessToken, refreshToken, newUser, userId }</code>。</li><li><strong>刷新</strong>：<code>POST https://www.kimi.com/api/account.gateway.v1.AuthService/RefreshToken</code>（App 端常量表指向 <code>/api</code>）；请求 <code>{ refreshToken }</code>，响应 <code>{ accessToken, refreshToken }</code> —— <strong>双令牌轮换</strong>，必须用新 refreshToken 覆盖旧值。 <strong>实测</strong>：该路径在 Web 生产网关返回 404（连同 8 种变体），refresh token 应视为由 <strong>登录响应直接下发</strong> 而非端点换取。</li><li><strong>触发</strong>：任意接口 401&#x2F;403 时自动刷新并重放；失败则跳登录。</li><li><strong>登出</strong>：<code>POST /api/account.gateway.v1.AuthService/Logout</code>。</li><li><strong>非鉴权 token</strong>：<code>pageToken</code> &#x2F; <code>nextPageToken</code> 是分页游标；推送 token、<code>tr_token</code>、<code>X-TC-Token</code>、<code>X-Msh-Shield-Data</code> 属推送&#x2F;风控，与登录态无关。</li></ul><h2 id="社区对话-·-moment-v1-ChatService（5-个方法）"><a href="#社区对话-·-moment-v1-ChatService（5-个方法）" class="headerlink" title="社区对话 · moment.v1.ChatService（5 个方法）"></a>社区对话 · <code>moment.v1.ChatService</code>（5 个方法）</h2><h3 id="001-·-CreateChatV2-—-创建动态对话"><a href="#001-·-CreateChatV2-—-创建动态对话" class="headerlink" title="001 · CreateChatV2 — 创建动态对话"></a>001 · CreateChatV2 — 创建动态对话</h3><p><strong>服务</strong>：<code>moment.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ChatService/CreateChatV2</code></p><ul><li><strong>API用途</strong>：基于动态创建一条对话（V2），返回对话 ID 供进入聊天。</li><li><strong>这接口能干啥（大白话）</strong>：在动态上开一个新对话，然后跳进聊天页。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateChatV2Request</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>chatType</code></td><td>enum <code>ChatType</code></td></tr><tr><td><code>chatTypeSubKey</code></td><td>string</td></tr><tr><td><code>askKimiQuestion</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>chatType</code>：<code>CHAT_TYPE_UNSPECIFIED</code>、<code>CHAT_TYPE_ASK_KIMI</code>、<code>CHAT_TYPE_CONTINUE</code>、<code>CHAT_TYPE_REMIX_CODE_ARTIFACT_DEEP_RESEARCH</code>、<code>CHAT_TYPE_REMIX_HTML</code>、<code>CHAT_TYPE_REMIX_IMAGE</code>、<code>CHAT_TYPE_REMIX_OKC_ARTIFACT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ChatService/CreateChatV2</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateChatV2Response</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td></tr><tr><td><code>chatType</code></td><td>enum <code>ChatType</code></td></tr><tr><td><code>chatTypeSubKey</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>chatType</code>：<code>CHAT_TYPE_UNSPECIFIED</code>、<code>CHAT_TYPE_ASK_KIMI</code>、<code>CHAT_TYPE_CONTINUE</code>、<code>CHAT_TYPE_REMIX_CODE_ARTIFACT_DEEP_RESEARCH</code>、<code>CHAT_TYPE_REMIX_HTML</code>、<code>CHAT_TYPE_REMIX_IMAGE</code>、<code>CHAT_TYPE_REMIX_OKC_ARTIFACT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="002-·-GetLastChatV2-—-获取最近动态对话"><a href="#002-·-GetLastChatV2-—-获取最近动态对话" class="headerlink" title="002 · GetLastChatV2 — 获取最近动态对话"></a>002 · GetLastChatV2 — 获取最近动态对话</h3><p><strong>服务</strong>：<code>moment.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ChatService/GetLastChatV2</code></p><ul><li><strong>API用途</strong>：获取某动态下用户最近一次创建的对话，实现“继续对话”。</li><li><strong>这接口能干啥（大白话）</strong>：回到上次在这条动态开的对话，接着聊。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.Feed</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>feedType</code></td><td>enum <code>FeedType</code></td></tr><tr><td><code>feedId</code></td><td>string</td></tr><tr><td><code>moment</code></td><td>message <code>Moment</code></td></tr><tr><td><code>interestCard</code></td><td>message <code>InterestCard</code></td></tr><tr><td><code>recEventLog</code></td><td>message <code>RecEventLog</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>feedType</code>：<code>FEED_TYPE_UNSPECIFIED</code>、<code>FEED_TYPE_INTEREST_CARD</code>、<code>FEED_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ChatService/GetLastChatV2</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetLastChatV2Response</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>chatType</code></td><td>enum <code>ChatType</code></td></tr><tr><td><code>chatTypeSubKey</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>chatType</code>：<code>CHAT_TYPE_UNSPECIFIED</code>、<code>CHAT_TYPE_ASK_KIMI</code>、<code>CHAT_TYPE_CONTINUE</code>、<code>CHAT_TYPE_REMIX_CODE_ARTIFACT_DEEP_RESEARCH</code>、<code>CHAT_TYPE_REMIX_HTML</code>、<code>CHAT_TYPE_REMIX_IMAGE</code>、<code>CHAT_TYPE_REMIX_OKC_ARTIFACT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="003-·-GetOriginalMessageCount-—-获取原始消息数"><a href="#003-·-GetOriginalMessageCount-—-获取原始消息数" class="headerlink" title="003 · GetOriginalMessageCount — 获取原始消息数"></a>003 · GetOriginalMessageCount — 获取原始消息数</h3><p><strong>服务</strong>：<code>moment.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ChatService/GetOriginalMessageCount</code></p><ul><li><strong>API用途</strong>：获取该动态对话可展示的原始消息条数。</li><li><strong>这接口能干啥（大白话）</strong>：看这条动态对话原本有多少条消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetOriginalMessageCountRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ChatService/GetOriginalMessageCount</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetOriginalMessageCountResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>messageCount</code></td><td>int32</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="004-·-GetRawShareChatV2-—-获取原始分享对话"><a href="#004-·-GetRawShareChatV2-—-获取原始分享对话" class="headerlink" title="004 · GetRawShareChatV2 — 获取原始分享对话"></a>004 · GetRawShareChatV2 — 获取原始分享对话</h3><p><strong>服务</strong>：<code>moment.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ChatService/GetRawShareChatV2</code></p><ul><li><strong>API用途</strong>：获取分享卡片对应的原始对话内容（V2）。</li><li><strong>这接口能干啥（大白话）</strong>：把分享卡片背后的原始对话内容取出来。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetRawShareChatV2Request</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ChatService/GetRawShareChatV2</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetRawShareChatV2Response</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>share</code></td><td>message <code>ChatShare</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="005-·-ReChat-—-动态追问"><a href="#005-·-ReChat-—-动态追问" class="headerlink" title="005 · ReChat — 动态追问"></a>005 · ReChat — 动态追问</h3><p><strong>服务</strong>：<code>moment.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ChatService/ReChat</code></p><ul><li><strong>API用途</strong>：在动态对话中继续发送追问消息。</li><li><strong>这接口能干啥（大白话）</strong>：在动态对话里继续追问。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.Feed</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>feedType</code></td><td>enum <code>FeedType</code></td></tr><tr><td><code>feedId</code></td><td>string</td></tr><tr><td><code>moment</code></td><td>message <code>Moment</code></td></tr><tr><td><code>interestCard</code></td><td>message <code>InterestCard</code></td></tr><tr><td><code>recEventLog</code></td><td>message <code>RecEventLog</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>feedType</code>：<code>FEED_TYPE_UNSPECIFIED</code>、<code>FEED_TYPE_INTEREST_CARD</code>、<code>FEED_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ChatService/ReChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ReChatResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td></tr><tr><td><code>chatType</code></td><td>enum <code>ChatType</code></td></tr><tr><td><code>chatTypeSubKey</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>chatType</code>：<code>CHAT_TYPE_UNSPECIFIED</code>、<code>CHAT_TYPE_ASK_KIMI</code>、<code>CHAT_TYPE_CONTINUE</code>、<code>CHAT_TYPE_REMIX_CODE_ARTIFACT_DEEP_RESEARCH</code>、<code>CHAT_TYPE_REMIX_HTML</code>、<code>CHAT_TYPE_REMIX_IMAGE</code>、<code>CHAT_TYPE_REMIX_OKC_ARTIFACT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-评论-·-moment-v1-CommentService（5-个方法）"><a href="#社区-评论-·-moment-v1-CommentService（5-个方法）" class="headerlink" title="社区-评论 · moment.v1.CommentService（5 个方法）"></a>社区-评论 · <code>moment.v1.CommentService</code>（5 个方法）</h2><h3 id="006-·-CreateComment-—-发表评论"><a href="#006-·-CreateComment-—-发表评论" class="headerlink" title="006 · CreateComment — 发表评论"></a>006 · CreateComment — 发表评论</h3><p><strong>服务</strong>：<code>moment.v1.CommentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.CommentService/CreateComment</code></p><ul><li><strong>API用途</strong>：对动态发表评论或回复某条评论（parentCommentId），支持 @ 用户与图片。</li><li><strong>这接口能干啥（大白话）</strong>：发评论；也能回复别人的评论（带 targetCommentId）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateCommentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>targetCommentId</code></td><td>string</td></tr><tr><td><code>content</code></td><td>message <code>CommentContent</code></td></tr><tr><td><code>mentions</code></td><td>repeated</td></tr><tr><td><code>links</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.CommentService/CreateComment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateCommentResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>comment</code></td><td>message <code>Comment</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="007-·-DeleteComment-—-删除评论"><a href="#007-·-DeleteComment-—-删除评论" class="headerlink" title="007 · DeleteComment — 删除评论"></a>007 · DeleteComment — 删除评论</h3><p><strong>服务</strong>：<code>moment.v1.CommentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.CommentService/DeleteComment</code></p><ul><li><strong>API用途</strong>：删除自己的评论；若有子评论会一并影响展示。</li><li><strong>这接口能干啥（大白话）</strong>：删掉自己的评论。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.DeleteCommentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>commentId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.CommentService/DeleteComment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="008-·-ListComments-—-列出评论"><a href="#008-·-ListComments-—-列出评论" class="headerlink" title="008 · ListComments — 列出评论"></a>008 · ListComments — 列出评论</h3><p><strong>服务</strong>：<code>moment.v1.CommentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.CommentService/ListComments</code></p><ul><li><strong>API用途</strong>：分页拉取某动态的一级评论列表。</li><li><strong>这接口能干啥（大白话）</strong>：拉一页这条动态下的评论。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.Feed</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>feedType</code></td><td>enum <code>FeedType</code></td></tr><tr><td><code>feedId</code></td><td>string</td></tr><tr><td><code>moment</code></td><td>message <code>Moment</code></td></tr><tr><td><code>interestCard</code></td><td>message <code>InterestCard</code></td></tr><tr><td><code>recEventLog</code></td><td>message <code>RecEventLog</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>feedType</code>：<code>FEED_TYPE_UNSPECIFIED</code>、<code>FEED_TYPE_INTEREST_CARD</code>、<code>FEED_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.CommentService/ListComments</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListCommentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>pageStat</code></td><td>message <code>PageStat</code></td></tr><tr><td><code>isLastPage</code></td><td>bool</td></tr><tr><td><code>pinnedCommentId</code></td><td>string</td></tr><tr><td><code>comments</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="009-·-ListSubComments-—-列出子评论"><a href="#009-·-ListSubComments-—-列出子评论" class="headerlink" title="009 · ListSubComments — 列出子评论"></a>009 · ListSubComments — 列出子评论</h3><p><strong>服务</strong>：<code>moment.v1.CommentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.CommentService/ListSubComments</code></p><ul><li><strong>API用途</strong>：拉取某条评论下的二级（子）评论列表。</li><li><strong>这接口能干啥（大白话）</strong>：看某条评论下面的回复（二级评论）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListCommentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>pageStat</code></td><td>message <code>PageStat</code></td></tr><tr><td><code>isLastPage</code></td><td>bool</td></tr><tr><td><code>pinnedCommentId</code></td><td>string</td></tr><tr><td><code>comments</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.CommentService/ListSubComments</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListSubCommentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>subComments</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="010-·-VoteComment-—-评论点赞-投票"><a href="#010-·-VoteComment-—-评论点赞-投票" class="headerlink" title="010 · VoteComment — 评论点赞&#x2F;投票"></a>010 · VoteComment — 评论点赞&#x2F;投票</h3><p><strong>服务</strong>：<code>moment.v1.CommentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.CommentService/VoteComment</code></p><ul><li><strong>API用途</strong>：对评论执行点赞&#x2F;取消点赞&#x2F;点踩，action 决定方向。</li><li><strong>这接口能干啥（大白话）</strong>：给评论点赞、取消点赞或点踩。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.VoteCommentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>commentId</code></td><td>string</td></tr><tr><td><code>voteAction</code></td><td>enum <code>CommentVoteAction</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>voteAction</code>：<code>COMMENT_VOTE_ACTION_UNSPECIFIED</code>、<code>COMMENT_VOTE_ACTION_CANCEL_DISLIKE</code>、<code>COMMENT_VOTE_ACTION_CANCEL_LIKE</code>、<code>COMMENT_VOTE_ACTION_DISLIKE</code>、<code>COMMENT_VOTE_ACTION_LIKE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.CommentService/VoteComment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.VoteCommentResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-举报-·-moment-v1-ComplaintService（1-个方法）"><a href="#社区-举报-·-moment-v1-ComplaintService（1-个方法）" class="headerlink" title="社区-举报 · moment.v1.ComplaintService（1 个方法）"></a>社区-举报 · <code>moment.v1.ComplaintService</code>（1 个方法）</h2><h3 id="011-·-CreateComplaint-—-提交举报"><a href="#011-·-CreateComplaint-—-提交举报" class="headerlink" title="011 · CreateComplaint — 提交举报"></a>011 · CreateComplaint — 提交举报</h3><p><strong>服务</strong>：<code>moment.v1.ComplaintService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ComplaintService/CreateComplaint</code></p><ul><li><strong>API用途</strong>：对动态&#x2F;评论&#x2F;用户提交举报，含举报类型、原因与佐证材料。</li><li><strong>这接口能干啥（大白话）</strong>：举报动态&#x2F;评论&#x2F;用户，选类型写理由。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateComplaintRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>objectType</code></td><td>enum <code>ComplaintObjectType</code></td></tr><tr><td><code>objectId</code></td><td>string</td></tr><tr><td><code>reason</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>objectType</code>：<code>COMPLAINT_OBJECT_TYPE_UNSPECIFIED</code>、<code>COMPLAINT_OBJECT_TYPE_COMMENT</code>、<code>COMPLAINT_OBJECT_TYPE_MOMENT</code>、<code>COMPLAINT_OBJECT_TYPE_USER</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ComplaintService/CreateComplaint</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateComplaintResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h2 id="社区配置-·-moment-v1-ConfigService（1-个方法）"><a href="#社区配置-·-moment-v1-ConfigService（1-个方法）" class="headerlink" title="社区配置 · moment.v1.ConfigService（1 个方法）"></a>社区配置 · <code>moment.v1.ConfigService</code>（1 个方法）</h2><h3 id="012-·-GetConfig-—-获取社区配置"><a href="#012-·-GetConfig-—-获取社区配置" class="headerlink" title="012 · GetConfig — 获取社区配置"></a>012 · GetConfig — 获取社区配置</h3><p><strong>服务</strong>：<code>moment.v1.ConfigService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.ConfigService/GetConfig</code></p><ul><li><strong>API用途</strong>：拉取社区模块的功能开关、文案与阈值配置。</li><li><strong>这接口能干啥（大白话）</strong>：拉社区的功能开关和文案配置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetConfigRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.ConfigService/GetConfig</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetConfigResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>notification</code></td><td>message <code>NotificationConfig</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-收藏-·-moment-v1-FavoriteService（2-个方法）"><a href="#社区-收藏-·-moment-v1-FavoriteService（2-个方法）" class="headerlink" title="社区-收藏 · moment.v1.FavoriteService（2 个方法）"></a>社区-收藏 · <code>moment.v1.FavoriteService</code>（2 个方法）</h2><h3 id="013-·-CreateFavorite-—-收藏动态"><a href="#013-·-CreateFavorite-—-收藏动态" class="headerlink" title="013 · CreateFavorite — 收藏动态"></a>013 · CreateFavorite — 收藏动态</h3><p><strong>服务</strong>：<code>moment.v1.FavoriteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FavoriteService/CreateFavorite</code></p><ul><li><strong>API用途</strong>：收藏一条动态到个人收藏夹，支持分组&#x2F;备注。</li><li><strong>这接口能干啥（大白话）</strong>：把动态收进自己的收藏夹。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateFavoriteRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FavoriteService/CreateFavorite</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateFavoriteResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="014-·-DeleteFavorite-—-取消收藏"><a href="#014-·-DeleteFavorite-—-取消收藏" class="headerlink" title="014 · DeleteFavorite — 取消收藏"></a>014 · DeleteFavorite — 取消收藏</h3><p><strong>服务</strong>：<code>moment.v1.FavoriteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FavoriteService/DeleteFavorite</code></p><ul><li><strong>API用途</strong>：取消对某条动态的收藏。</li><li><strong>这接口能干啥（大白话）</strong>：取消收藏。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.DeleteFavoriteRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FavoriteService/DeleteFavorite</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.DeleteFavoriteResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h2 id="社区信息流-·-moment-v1-FeedService（4-个方法）"><a href="#社区信息流-·-moment-v1-FeedService（4-个方法）" class="headerlink" title="社区信息流 · moment.v1.FeedService（4 个方法）"></a>社区信息流 · <code>moment.v1.FeedService</code>（4 个方法）</h2><h3 id="015-·-GetFeed-—-获取信息流"><a href="#015-·-GetFeed-—-获取信息流" class="headerlink" title="015 · GetFeed — 获取信息流"></a>015 · GetFeed — 获取信息流</h3><p><strong>服务</strong>：<code>moment.v1.FeedService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FeedService/GetFeed</code></p><ul><li><strong>API用途</strong>：按 feed 场景（推荐&#x2F;关注&#x2F;话题）拉取信息流单页数据，支持游标分页。</li><li><strong>这接口能干啥（大白话）</strong>：打开某条动态&#x2F;某类卡片看详情时用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetFeedRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>feedType</code></td><td>enum <code>FeedType</code></td></tr><tr><td><code>feedId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>feedType</code>：<code>FEED_TYPE_UNSPECIFIED</code>、<code>FEED_TYPE_INTEREST_CARD</code>、<code>FEED_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FeedService/GetFeed</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetFeedResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>feed</code></td><td>message <code>Feed</code></td></tr><tr><td><code>similarMoments</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="016-·-ListFeeds-—-列出信息流列表"><a href="#016-·-ListFeeds-—-列出信息流列表" class="headerlink" title="016 · ListFeeds — 列出信息流列表"></a>016 · ListFeeds — 列出信息流列表</h3><p><strong>服务</strong>：<code>moment.v1.FeedService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FeedService/ListFeeds</code></p><ul><li><strong>API用途</strong>：批量拉取多个 feed 的信息流内容，社区首页主接口。</li><li><strong>这接口能干啥（大白话）</strong>：刷社区首页靠它：按分类拉一页动态（推荐&#x2F;关注&#x2F;话题&#x2F;我的收藏&#x2F;我点赞&#x2F;我发布），翻页用 pageToken。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFeedsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>sessionId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>category</code></td><td>enum <code>FeedCategory</code></td></tr><tr><td><code>userId</code></td><td>string</td></tr><tr><td><code>pinnedMomentId</code></td><td>string</td></tr><tr><td><code>hashtagId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>category</code>：<code>FEED_CATEGORY_UNSPECIFIED</code>、<code>FEED_CATEGORY_FOLLOW</code>、<code>FEED_CATEGORY_HASHTAG</code>、<code>FEED_CATEGORY_RECOMMEND</code>、<code>FEED_CATEGORY_USER_FAVORITE</code>、<code>FEED_CATEGORY_USER_LIKES</code>、<code>FEED_CATEGORY_USER_PUBLISH</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FeedService/ListFeeds</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFeedsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>isLastPage</code></td><td>bool</td></tr><tr><td><code>feeds</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="017-·-ListFollowUnread-—-关注动态未读列表"><a href="#017-·-ListFollowUnread-—-关注动态未读列表" class="headerlink" title="017 · ListFollowUnread — 关注动态未读列表"></a>017 · ListFollowUnread — 关注动态未读列表</h3><p><strong>服务</strong>：<code>moment.v1.FeedService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FeedService/ListFollowUnread</code></p><ul><li><strong>API用途</strong>：拉取“关注”流中未读的新动态，用于红点与未读提示。</li><li><strong>这接口能干啥（大白话）</strong>：看“关注”里有没有新动态，用来点亮红点。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFollowUnreadRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FeedService/ListFollowUnread</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFollowUnreadResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>items</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="018-·-MarkReadForFollow-—-标记关注流已读"><a href="#018-·-MarkReadForFollow-—-标记关注流已读" class="headerlink" title="018 · MarkReadForFollow — 标记关注流已读"></a>018 · MarkReadForFollow — 标记关注流已读</h3><p><strong>服务</strong>：<code>moment.v1.FeedService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FeedService/MarkReadForFollow</code></p><ul><li><strong>API用途</strong>：把关注流中的动态标记为已读，清除未读红点。</li><li><strong>这接口能干啥（大白话）</strong>：把关注流的新动态看过，清掉红点。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadForFollowRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>followUserId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FeedService/MarkReadForFollow</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadForFollowResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-关注-·-moment-v1-FollowService（3-个方法）"><a href="#社区-关注-·-moment-v1-FollowService（3-个方法）" class="headerlink" title="社区-关注 · moment.v1.FollowService（3 个方法）"></a>社区-关注 · <code>moment.v1.FollowService</code>（3 个方法）</h2><h3 id="019-·-ListFollows-—-列出关注关系"><a href="#019-·-ListFollows-—-列出关注关系" class="headerlink" title="019 · ListFollows — 列出关注关系"></a>019 · ListFollows — 列出关注关系</h3><p><strong>服务</strong>：<code>moment.v1.FollowService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FollowService/ListFollows</code></p><ul><li><strong>API用途</strong>：分页列出某用户的关注&#x2F;粉丝列表（followers&#x2F;following）。</li><li><strong>这接口能干啥（大白话）</strong>：看某人的关注列表或粉丝列表。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFollowsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>followType</code></td><td>enum <code>FollowType</code></td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>followType</code>：<code>FOLLOW_TYPE_UNSPECIFIED</code>、<code>FOLLOW_TYPE_FOLLOWERS</code>、<code>FOLLOW_TYPE_FOLLOWINGS</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FollowService/ListFollows</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListFollowsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>userInfos</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="020-·-ModifyBlock-—-拉黑-解除拉黑"><a href="#020-·-ModifyBlock-—-拉黑-解除拉黑" class="headerlink" title="020 · ModifyBlock — 拉黑&#x2F;解除拉黑"></a>020 · ModifyBlock — 拉黑&#x2F;解除拉黑</h3><p><strong>服务</strong>：<code>moment.v1.FollowService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FollowService/ModifyBlock</code></p><ul><li><strong>API用途</strong>：拉黑或解除拉黑某用户，拉黑后互相不可见动态与评论。</li><li><strong>这接口能干啥（大白话）</strong>：拉黑某人，或把某人从黑名单放出来。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ModifyBlockRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userId</code></td><td>string</td></tr><tr><td><code>action</code></td><td>enum <code>BlockAction</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>action</code>：<code>BLOCK_ACTION_UNSPECIFIED</code>、<code>BLOCK_ACTION_BLOCK</code>、<code>BLOCK_ACTION_UNBLOCK</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FollowService/ModifyBlock</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ModifyBlockResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userId</code></td><td>string</td></tr><tr><td><code>blockStatus</code></td><td>enum <code>BlockStatus</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>blockStatus</code>：<code>BLOCK_STATUS_UNSPECIFIED</code>、<code>BLOCK_STATUS_BLOCKED</code>、<code>BLOCK_STATUS_NOT_BLOCKED</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="021-·-ModifyFollow-—-关注-取关"><a href="#021-·-ModifyFollow-—-关注-取关" class="headerlink" title="021 · ModifyFollow — 关注&#x2F;取关"></a>021 · ModifyFollow — 关注&#x2F;取关</h3><p><strong>服务</strong>：<code>moment.v1.FollowService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.FollowService/ModifyFollow</code></p><ul><li><strong>API用途</strong>：关注或取消关注某用户，action 决定方向。</li><li><strong>这接口能干啥（大白话）</strong>：关注或取关某人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ModifyFollowRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userId</code></td><td>string</td></tr><tr><td><code>action</code></td><td>enum <code>FollowAction</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>action</code>：<code>FOLLOW_ACTION_UNSPECIFIED</code>、<code>FOLLOW_ACTION_FOLLOW</code>、<code>FOLLOW_ACTION_UNFOLLOW</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.FollowService/ModifyFollow</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ModifyFollowResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userId</code></td><td>string</td></tr><tr><td><code>followStatus</code></td><td>enum <code>FollowStatus</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>followStatus</code>：<code>FOLLOW_STATUS_UNSPECIFIED</code>、<code>FOLLOW_STATUS_FOLLOWED</code>、<code>FOLLOW_STATUS_FOLLOWING</code>、<code>FOLLOW_STATUS_MUTUAL_FOLLOWING</code>、<code>FOLLOW_STATUS_NOT_FOLLOWING</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-话题-·-moment-v1-HashtagService（3-个方法）"><a href="#社区-话题-·-moment-v1-HashtagService（3-个方法）" class="headerlink" title="社区-话题 · moment.v1.HashtagService（3 个方法）"></a>社区-话题 · <code>moment.v1.HashtagService</code>（3 个方法）</h2><h3 id="022-·-GetHashtag-—-获取话题详情"><a href="#022-·-GetHashtag-—-获取话题详情" class="headerlink" title="022 · GetHashtag — 获取话题详情"></a>022 · GetHashtag — 获取话题详情</h3><p><strong>服务</strong>：<code>moment.v1.HashtagService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.HashtagService/GetHashtag</code></p><ul><li><strong>API用途</strong>：按话题 ID 获取话题详情（标题、简介、参与量、代表动态）。</li><li><strong>这接口能干啥（大白话）</strong>：看一个话题的详情（介绍、热度、代表动态）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetHashtagRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.HashtagService/GetHashtag</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetHashtagResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>hashtag</code></td><td>message <code>HashtagItem</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="023-·-ListHashtags-—-列出话题"><a href="#023-·-ListHashtags-—-列出话题" class="headerlink" title="023 · ListHashtags — 列出话题"></a>023 · ListHashtags — 列出话题</h3><p><strong>服务</strong>：<code>moment.v1.HashtagService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.HashtagService/ListHashtags</code></p><ul><li><strong>API用途</strong>：分页列出话题列表（热门&#x2F;推荐&#x2F;全部）。</li><li><strong>这接口能干啥（大白话）</strong>：列出话题列表。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListHashtagsRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.HashtagService/ListHashtags</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListHashtagsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>topUpHashtags</code></td><td>repeated</td></tr><tr><td><code>recentUsedHashtags</code></td><td>repeated</td></tr><tr><td><code>allHashtags</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="024-·-RecommendHashtags-—-推荐话题"><a href="#024-·-RecommendHashtags-—-推荐话题" class="headerlink" title="024 · RecommendHashtags — 推荐话题"></a>024 · RecommendHashtags — 推荐话题</h3><p><strong>服务</strong>：<code>moment.v1.HashtagService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.HashtagService/RecommendHashtags</code></p><ul><li><strong>API用途</strong>：基于输入文本或草稿推荐相关话题，发布动态时的话题联想。</li><li><strong>这接口能干啥（大白话）</strong>：你打字时帮你联想该加什么话题。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.RecommendHashtagsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>title</code></td><td>string</td></tr><tr><td><code>text</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.HashtagService/RecommendHashtags</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.RecommendHashtagsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>hashtags</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-兴趣-·-moment-v1-InterestService（2-个方法）"><a href="#社区-兴趣-·-moment-v1-InterestService（2-个方法）" class="headerlink" title="社区-兴趣 · moment.v1.InterestService（2 个方法）"></a>社区-兴趣 · <code>moment.v1.InterestService</code>（2 个方法）</h2><h3 id="025-·-ReportSelections-—-上报兴趣选择"><a href="#025-·-ReportSelections-—-上报兴趣选择" class="headerlink" title="025 · ReportSelections — 上报兴趣选择"></a>025 · ReportSelections — 上报兴趣选择</h3><p><strong>服务</strong>：<code>moment.v1.InterestService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.InterestService/ReportSelections</code></p><ul><li><strong>API用途</strong>：上报兴趣标签的曝光&#x2F;选择行为，用于推荐调优。</li><li><strong>这接口能干啥（大白话）</strong>：把你对兴趣标签的曝光&#x2F;选择行为回报给推荐。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ReportSelectionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>selections</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.InterestService/ReportSelections</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ReportSelectionsResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="026-·-SubmitSelections-—-提交兴趣选择"><a href="#026-·-SubmitSelections-—-提交兴趣选择" class="headerlink" title="026 · SubmitSelections — 提交兴趣选择"></a>026 · SubmitSelections — 提交兴趣选择</h3><p><strong>服务</strong>：<code>moment.v1.InterestService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.InterestService/SubmitSelections</code></p><ul><li><strong>API用途</strong>：新用户兴趣冷启动：提交所选兴趣标签。</li><li><strong>这接口能干啥（大白话）</strong>：新用户选兴趣标签，决定一开始给你推什么。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.SubmitSelectionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>selections</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.InterestService/SubmitSelections</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.SubmitSelectionsResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-动态-·-moment-v1-MomentService（6-个方法）"><a href="#社区-动态-·-moment-v1-MomentService（6-个方法）" class="headerlink" title="社区-动态 · moment.v1.MomentService（6 个方法）"></a>社区-动态 · <code>moment.v1.MomentService</code>（6 个方法）</h2><h3 id="027-·-CreateMoment-—-发布动态"><a href="#027-·-CreateMoment-—-发布动态" class="headerlink" title="027 · CreateMoment — 发布动态"></a>027 · CreateMoment — 发布动态</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/CreateMoment</code></p><ul><li><strong>API用途</strong>：发布一条社区动态（moment），支持图文、话题、@ 用户、关联对话分享卡片（chatShareId）。文本与图片分别通过 text &#x2F; images 上传；发布成功返回动态 ID。</li><li><strong>这接口能干啥（大白话）</strong>：发动态：配文字、图片、话题、@人，还能带上一条对话分享卡片。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateMomentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>text</code></td><td>string</td></tr><tr><td><code>title</code></td><td>string</td></tr><tr><td><code>chatShareId</code></td><td>string</td></tr><tr><td><code>visibility</code></td><td>enum <code>MomentVisibility</code></td></tr><tr><td><code>artifactShareId</code></td><td>string</td></tr><tr><td><code>images</code></td><td>repeated</td></tr><tr><td><code>mentions</code></td><td>repeated</td></tr><tr><td><code>links</code></td><td>repeated</td></tr><tr><td><code>hashtagIds</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>visibility</code>：<code>MOMENT_VISIBILITY_UNSPECIFIED</code>、<code>MOMENT_VISIBILITY_PUBLIC</code>、<code>MOMENT_VISIBILITY_SELF</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/CreateMoment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateMomentResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>moment</code></td><td>message <code>Moment</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="028-·-DeleteMoment-—-删除动态"><a href="#028-·-DeleteMoment-—-删除动态" class="headerlink" title="028 · DeleteMoment — 删除动态"></a>028 · DeleteMoment — 删除动态</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/DeleteMoment</code></p><ul><li><strong>API用途</strong>：删除自己发布的动态。仅作者本人可删；成功后该动态从信息流与个人主页移除。</li><li><strong>这接口能干啥（大白话）</strong>：删掉自己发的动态。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.DeleteMomentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/DeleteMoment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="029-·-GetChatShareCard-—-获取对话分享卡片"><a href="#029-·-GetChatShareCard-—-获取对话分享卡片" class="headerlink" title="029 · GetChatShareCard — 获取对话分享卡片"></a>029 · GetChatShareCard — 获取对话分享卡片</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/GetChatShareCard</code></p><ul><li><strong>API用途</strong>：获取动态内嵌的对话分享卡片（ChatShareCard）渲染数据。</li><li><strong>这接口能干啥（大白话）</strong>：把动态里内嵌的对话分享卡片渲染出来。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetChatShareCardRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/GetChatShareCard</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetChatShareCardResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareCard</code></td><td>message <code>ChatShareCard</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="030-·-ListMomentAskKimiQuestions-—-列出动态提问"><a href="#030-·-ListMomentAskKimiQuestions-—-列出动态提问" class="headerlink" title="030 · ListMomentAskKimiQuestions — 列出动态提问"></a>030 · ListMomentAskKimiQuestions — 列出动态提问</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/ListMomentAskKimiQuestions</code></p><ul><li><strong>API用途</strong>：获取某动态下“问 Kimi”生成的问题列表及其回答入口。</li><li><strong>这接口能干啥（大白话）</strong>：看别人在这条动态下问了 Kimi 什么问题、Kimi 怎么答的。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMomentAskKimiQuestionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>limit</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/ListMomentAskKimiQuestions</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMomentAskKimiQuestionsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>askKimiQuestions</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="031-·-ListSimilarMoments-—-列出相似动态"><a href="#031-·-ListSimilarMoments-—-列出相似动态" class="headerlink" title="031 · ListSimilarMoments — 列出相似动态"></a>031 · ListSimilarMoments — 列出相似动态</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/ListSimilarMoments</code></p><ul><li><strong>API用途</strong>：按当前动态内容&#x2F;话题召回相似动态列表，用于详情页“更多相似内容”推荐。</li><li><strong>这接口能干啥（大白话）</strong>：看“更多相似动态”，在动态详情页往下刷类似内容。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListSimilarMomentsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/ListSimilarMoments</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListSimilarMomentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>items</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="032-·-VoteMoment-—-动态点赞-投票"><a href="#032-·-VoteMoment-—-动态点赞-投票" class="headerlink" title="032 · VoteMoment — 动态点赞&#x2F;投票"></a>032 · VoteMoment — 动态点赞&#x2F;投票</h3><p><strong>服务</strong>：<code>moment.v1.MomentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MomentService/VoteMoment</code></p><ul><li><strong>API用途</strong>：对动态执行投票动作（点赞&#x2F;取消点赞&#x2F;点踩等），action 决定方向。这是社区“点赞”的核心接口。</li><li><strong>这接口能干啥（大白话）</strong>：给动态点赞、取消点赞或点踩。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.VoteMomentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>momentId</code></td><td>string</td></tr><tr><td><code>voteAction</code></td><td>enum <code>MomentVoteAction</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>voteAction</code>：<code>MOMENT_VOTE_ACTION_UNSPECIFIED</code>、<code>MOMENT_VOTE_ACTION_CANCEL_DISLIKE</code>、<code>MOMENT_VOTE_ACTION_CANCEL_LIKE</code>、<code>MOMENT_VOTE_ACTION_DISLIKE</code>、<code>MOMENT_VOTE_ACTION_LIKE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MomentService/VoteMoment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.VoteMomentResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-屏蔽-·-moment-v1-MuteService（4-个方法）"><a href="#社区-屏蔽-·-moment-v1-MuteService（4-个方法）" class="headerlink" title="社区-屏蔽 · moment.v1.MuteService（4 个方法）"></a>社区-屏蔽 · <code>moment.v1.MuteService</code>（4 个方法）</h2><h3 id="033-·-AppendMuteReasons-—-追加上报屏蔽原因"><a href="#033-·-AppendMuteReasons-—-追加上报屏蔽原因" class="headerlink" title="033 · AppendMuteReasons — 追加上报屏蔽原因"></a>033 · AppendMuteReasons — 追加上报屏蔽原因</h3><p><strong>服务</strong>：<code>moment.v1.MuteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MuteService/AppendMuteReasons</code></p><ul><li><strong>API用途</strong>：用户执行屏蔽时追加&#x2F;上报具体屏蔽原因，用于个性化推荐。</li><li><strong>这接口能干啥（大白话）</strong>：把你选的屏蔽原因上报给推荐系统。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.AppendMuteReasonsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>objectType</code></td><td>enum <code>MuteObjectType</code></td></tr><tr><td><code>objectId</code></td><td>string</td></tr><tr><td><code>advice</code></td><td>string</td></tr><tr><td><code>reasonIds</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>objectType</code>：<code>MUTE_OBJECT_TYPE_UNSPECIFIED</code>、<code>MUTE_OBJECT_TYPE_AIGC_MOMENT_CONTENT</code>、<code>MUTE_OBJECT_TYPE_BOT_COMMENT</code>、<code>MUTE_OBJECT_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MuteService/AppendMuteReasons</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.AppendMuteReasonsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>msg</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="034-·-ListMuteReasons-—-列出屏蔽原因"><a href="#034-·-ListMuteReasons-—-列出屏蔽原因" class="headerlink" title="034 · ListMuteReasons — 列出屏蔽原因"></a>034 · ListMuteReasons — 列出屏蔽原因</h3><p><strong>服务</strong>：<code>moment.v1.MuteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MuteService/ListMuteReasons</code></p><ul><li><strong>API用途</strong>：拉取可供选择的屏蔽原因枚举列表。</li><li><strong>这接口能干啥（大白话）</strong>：拉出“为什么不想看”的可选原因。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMuteReasonsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>objectType</code></td><td>enum <code>MuteObjectType</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>objectType</code>：<code>MUTE_OBJECT_TYPE_UNSPECIFIED</code>、<code>MUTE_OBJECT_TYPE_AIGC_MOMENT_CONTENT</code>、<code>MUTE_OBJECT_TYPE_BOT_COMMENT</code>、<code>MUTE_OBJECT_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MuteService/ListMuteReasons</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMuteReasonsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>reasons</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="035-·-Mute-—-屏蔽内容-用户"><a href="#035-·-Mute-—-屏蔽内容-用户" class="headerlink" title="035 · Mute — 屏蔽内容&#x2F;用户"></a>035 · Mute — 屏蔽内容&#x2F;用户</h3><p><strong>服务</strong>：<code>moment.v1.MuteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MuteService/Mute</code></p><ul><li><strong>API用途</strong>：屏蔽指定用户或内容（含屏蔽原因），屏蔽后不再出现于信息流。</li><li><strong>这接口能干啥（大白话）</strong>：不想再看到某人&#x2F;某内容，直接屏蔽。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.MuteRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>objectType</code></td><td>enum <code>MuteObjectType</code></td></tr><tr><td><code>objectId</code></td><td>string</td></tr><tr><td><code>reason</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>objectType</code>：<code>MUTE_OBJECT_TYPE_UNSPECIFIED</code>、<code>MUTE_OBJECT_TYPE_AIGC_MOMENT_CONTENT</code>、<code>MUTE_OBJECT_TYPE_BOT_COMMENT</code>、<code>MUTE_OBJECT_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MuteService/Mute</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.MuteResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>msg</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="036-·-UnMute-—-取消屏蔽"><a href="#036-·-UnMute-—-取消屏蔽" class="headerlink" title="036 · UnMute — 取消屏蔽"></a>036 · UnMute — 取消屏蔽</h3><p><strong>服务</strong>：<code>moment.v1.MuteService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.MuteService/UnMute</code></p><ul><li><strong>API用途</strong>：解除对某用户&#x2F;内容的屏蔽。</li><li><strong>这接口能干啥（大白话）</strong>：解除屏蔽。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.UnMuteRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>objectType</code></td><td>enum <code>MuteObjectType</code></td></tr><tr><td><code>objectId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>objectType</code>：<code>MUTE_OBJECT_TYPE_UNSPECIFIED</code>、<code>MUTE_OBJECT_TYPE_AIGC_MOMENT_CONTENT</code>、<code>MUTE_OBJECT_TYPE_BOT_COMMENT</code>、<code>MUTE_OBJECT_TYPE_MOMENT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.MuteService/UnMute</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.UnMuteResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区通知-·-moment-v1-NotificationService（5-个方法）"><a href="#社区通知-·-moment-v1-NotificationService（5-个方法）" class="headerlink" title="社区通知 · moment.v1.NotificationService（5 个方法）"></a>社区通知 · <code>moment.v1.NotificationService</code>（5 个方法）</h2><h3 id="037-·-GetReminderStatus-—-获取提醒状态"><a href="#037-·-GetReminderStatus-—-获取提醒状态" class="headerlink" title="037 · GetReminderStatus — 获取提醒状态"></a>037 · GetReminderStatus — 获取提醒状态</h3><p><strong>服务</strong>：<code>moment.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.NotificationService/GetReminderStatus</code></p><ul><li><strong>API用途</strong>：获取提醒的汇总状态（各类型未读数）。</li><li><strong>这接口能干啥（大白话）</strong>：看各类提醒的未读数（小红点数字）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetReminderStatusRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.NotificationService/GetReminderStatus</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetReminderStatusResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>hasUnread</code></td><td>bool</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="038-·-ListNotification-—-列出社区通知"><a href="#038-·-ListNotification-—-列出社区通知" class="headerlink" title="038 · ListNotification — 列出社区通知"></a>038 · ListNotification — 列出社区通知</h3><p><strong>服务</strong>：<code>moment.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.NotificationService/ListNotification</code></p><ul><li><strong>API用途</strong>：分页拉取社区通知（点赞&#x2F;评论&#x2F;关注等）。</li><li><strong>这接口能干啥（大白话）</strong>：看社区里的通知（谁点赞、谁评论、谁关注）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListNotificationRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>idGt</code></td><td>string</td></tr><tr><td><code>idLt</code></td><td>string</td></tr><tr><td><code>limit</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.NotificationService/ListNotification</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListNotificationResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>notifications</code></td><td>repeated</td></tr><tr><td><code>moments</code></td><td>repeated</td></tr><tr><td><code>comments</code></td><td>repeated</td></tr><tr><td><code>users</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="039-·-ListReminders-—-列出提醒"><a href="#039-·-ListReminders-—-列出提醒" class="headerlink" title="039 · ListReminders — 列出提醒"></a>039 · ListReminders — 列出提醒</h3><p><strong>服务</strong>：<code>moment.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.NotificationService/ListReminders</code></p><ul><li><strong>API用途</strong>：拉取社区提醒（未读消息&#x2F;待处理）列表。</li><li><strong>这接口能干啥（大白话）</strong>：看社区提醒列表。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListRemindersRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.NotificationService/ListReminders</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListRemindersResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>items</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="040-·-MarkRead-—-标记通知已读"><a href="#040-·-MarkRead-—-标记通知已读" class="headerlink" title="040 · MarkRead — 标记通知已读"></a>040 · MarkRead — 标记通知已读</h3><p><strong>服务</strong>：<code>moment.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.NotificationService/MarkRead</code></p><ul><li><strong>API用途</strong>：将指定社区通知标记为已读。</li><li><strong>这接口能干啥（大白话）</strong>：把社区通知标成已读。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>idLte</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.NotificationService/MarkRead</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="041-·-MarkReadForReminder-—-标记提醒已读"><a href="#041-·-MarkReadForReminder-—-标记提醒已读" class="headerlink" title="041 · MarkReadForReminder — 标记提醒已读"></a>041 · MarkReadForReminder — 标记提醒已读</h3><p><strong>服务</strong>：<code>moment.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.NotificationService/MarkReadForReminder</code></p><ul><li><strong>API用途</strong>：把某类型提醒标记为已读。</li><li><strong>这接口能干啥（大白话）</strong>：把某类提醒标成已读。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadForReminderRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.NotificationService/MarkReadForReminder</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.MarkReadForReminderResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区搜索-·-moment-v1-SearchService（5-个方法）"><a href="#社区搜索-·-moment-v1-SearchService（5-个方法）" class="headerlink" title="社区搜索 · moment.v1.SearchService（5 个方法）"></a>社区搜索 · <code>moment.v1.SearchService</code>（5 个方法）</h2><h3 id="042-·-ListHotHashtagsInSearch-—-搜索页热门话题"><a href="#042-·-ListHotHashtagsInSearch-—-搜索页热门话题" class="headerlink" title="042 · ListHotHashtagsInSearch — 搜索页热门话题"></a>042 · ListHotHashtagsInSearch — 搜索页热门话题</h3><p><strong>服务</strong>：<code>moment.v1.SearchService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.SearchService/ListHotHashtagsInSearch</code></p><ul><li><strong>API用途</strong>：搜索入口页展示的热门话题列表。</li><li><strong>这接口能干啥（大白话）</strong>：搜索页顶部展示的热门话题。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListHotHashtagsInSearchRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.SearchService/ListHotHashtagsInSearch</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListHotHashtagsInSearchResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>hashtags</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="043-·-SearchHashtags-—-搜索话题"><a href="#043-·-SearchHashtags-—-搜索话题" class="headerlink" title="043 · SearchHashtags — 搜索话题"></a>043 · SearchHashtags — 搜索话题</h3><p><strong>服务</strong>：<code>moment.v1.SearchService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.SearchService/SearchHashtags</code></p><ul><li><strong>API用途</strong>：按关键词搜索话题。</li><li><strong>这接口能干啥（大白话）</strong>：按关键词搜话题。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchHashtagsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.SearchService/SearchHashtags</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchHashtagsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>hashtags</code></td><td>repeated</td></tr><tr><td><code>relatedHashtags</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="044-·-SearchMoments-—-搜索动态"><a href="#044-·-SearchMoments-—-搜索动态" class="headerlink" title="044 · SearchMoments — 搜索动态"></a>044 · SearchMoments — 搜索动态</h3><p><strong>服务</strong>：<code>moment.v1.SearchService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.SearchService/SearchMoments</code></p><ul><li><strong>API用途</strong>：按关键词搜索动态，返回命中动态列表与高亮信息。</li><li><strong>这接口能干啥（大白话）</strong>：按关键词搜动态。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchMomentsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.SearchService/SearchMoments</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchMomentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>moments</code></td><td>repeated</td></tr><tr><td><code>relatedMoments</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="045-·-SearchUsers-—-搜索用户"><a href="#045-·-SearchUsers-—-搜索用户" class="headerlink" title="045 · SearchUsers — 搜索用户"></a>045 · SearchUsers — 搜索用户</h3><p><strong>服务</strong>：<code>moment.v1.SearchService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.SearchService/SearchUsers</code></p><ul><li><strong>API用途</strong>：按关键词搜索社区用户。</li><li><strong>这接口能干啥（大白话）</strong>：按关键词搜用户。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchUsersRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.SearchService/SearchUsers</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.SearchUsersResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>users</code></td><td>repeated</td></tr><tr><td><code>relatedUsers</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="046-·-SuggestSearchQuery-—-搜索联想词"><a href="#046-·-SuggestSearchQuery-—-搜索联想词" class="headerlink" title="046 · SuggestSearchQuery — 搜索联想词"></a>046 · SuggestSearchQuery — 搜索联想词</h3><p><strong>服务</strong>：<code>moment.v1.SearchService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.SearchService/SuggestSearchQuery</code></p><ul><li><strong>API用途</strong>：输入时返回搜索联想词&#x2F;补全建议。</li><li><strong>这接口能干啥（大白话）</strong>：搜索框里给联想词&#x2F;补全。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.SuggestSearchQueryRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.SearchService/SuggestSearchQuery</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.SuggestSearchQueryResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>suggestedQueries</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区-上传-·-moment-v1-UploadService（2-个方法）"><a href="#社区-上传-·-moment-v1-UploadService（2-个方法）" class="headerlink" title="社区-上传 · moment.v1.UploadService（2 个方法）"></a>社区-上传 · <code>moment.v1.UploadService</code>（2 个方法）</h2><h3 id="047-·-CreateFile-—-登记上传文件"><a href="#047-·-CreateFile-—-登记上传文件" class="headerlink" title="047 · CreateFile — 登记上传文件"></a>047 · CreateFile — 登记上传文件</h3><p><strong>服务</strong>：<code>moment.v1.UploadService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.UploadService/CreateFile</code></p><ul><li><strong>API用途</strong>：图片直传完成后，把对象存储 key 登记为社区文件，返回可引用的文件 ID&#x2F;URL。</li><li><strong>这接口能干啥（大白话）</strong>：图片传完后登记一下，拿到社区里能引用的文件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateFileRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>fileName</code></td><td>string</td></tr><tr><td><code>fileId</code></td><td>string</td></tr><tr><td><code>extra</code></td><td>message <code>ImageExtra</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.UploadService/CreateFile</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.CreateFileResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>fileId</code></td><td>string</td></tr><tr><td><code>fileName</code></td><td>string</td></tr><tr><td><code>size</code></td><td>int32</td></tr><tr><td><code>originUrl</code></td><td>string</td></tr><tr><td><code>thumbnailUrl</code></td><td>string</td></tr><tr><td><code>contentType</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="048-·-GeneratePresignedURL-—-获取上传预签名-URL"><a href="#048-·-GeneratePresignedURL-—-获取上传预签名-URL" class="headerlink" title="048 · GeneratePresignedURL — 获取上传预签名 URL"></a>048 · GeneratePresignedURL — 获取上传预签名 URL</h3><p><strong>服务</strong>：<code>moment.v1.UploadService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.UploadService/GeneratePresignedURL</code></p><ul><li><strong>API用途</strong>：为动态图片&#x2F;文件申请对象存储预签名直传 URL（PUT 到 OSS&#x2F;COS）。</li><li><strong>这接口能干啥（大白话）</strong>：发图前先拿一个直传地址，图片直接传到云存储。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GeneratePresignedURLRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>fileType</code></td><td>enum <code>FileType</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>fileType</code>：<code>FILE_TYPE_UNSPECIFIED</code>、<code>FILE_TYPE_FILE</code>、<code>FILE_TYPE_IMAGE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.UploadService/GeneratePresignedURL</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GeneratePresignedURLResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>uploadUrl</code></td><td>string</td></tr><tr><td><code>objectName</code></td><td>string</td></tr><tr><td><code>fileId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="社区用户-·-moment-v1-UserService（3-个方法）"><a href="#社区用户-·-moment-v1-UserService（3-个方法）" class="headerlink" title="社区用户 · moment.v1.UserService（3 个方法）"></a>社区用户 · <code>moment.v1.UserService</code>（3 个方法）</h2><h3 id="049-·-GetMe-—-获取我的社区资料"><a href="#049-·-GetMe-—-获取我的社区资料" class="headerlink" title="049 · GetMe — 获取我的社区资料"></a>049 · GetMe — 获取我的社区资料</h3><p><strong>服务</strong>：<code>moment.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.UserService/GetMe</code></p><ul><li><strong>API用途</strong>：获取当前登录用户的社区侧资料（昵称、头像、统计、关注数等）。</li><li><strong>这接口能干啥（大白话）</strong>：看自己的社区资料（昵称、头像、粉丝&#x2F;关注数）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetMeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>view</code></td><td>enum <code>UserProfileView</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>view</code>：<code>USER_PROFILE_VIEW_UNSPECIFIED</code>、<code>USER_PROFILE_VIEW_BASIC</code>、<code>USER_PROFILE_VIEW_FULL</code>、<code>USER_PROFILE_VIEW_LITE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.UserService/GetMe</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetMeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userBase</code></td><td>message <code>UserBase</code></td></tr><tr><td><code>userStat</code></td><td>message <code>UserStat</code></td></tr><tr><td><code>userInfo</code></td><td>message <code>UserInfo</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="050-·-GetUserProfile-—-获取用户主页"><a href="#050-·-GetUserProfile-—-获取用户主页" class="headerlink" title="050 · GetUserProfile — 获取用户主页"></a>050 · GetUserProfile — 获取用户主页</h3><p><strong>服务</strong>：<code>moment.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.UserService/GetUserProfile</code></p><ul><li><strong>API用途</strong>：按用户 ID 获取社区主页资料与关系状态（是否已关注&#x2F;是否拉黑&#x2F;是否互关）。</li><li><strong>这接口能干啥（大白话）</strong>：看别人的社区主页，顺带知道你有没有关注&#x2F;拉黑对方。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetUserProfileRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.UserService/GetUserProfile</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.GetUserProfileResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userBase</code></td><td>message <code>UserBase</code></td></tr><tr><td><code>userStat</code></td><td>message <code>UserStat</code></td></tr><tr><td><code>interactionStatus</code></td><td>message <code>UserRelationStatus</code></td></tr><tr><td><code>userInfo</code></td><td>message <code>UserInfo</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="051-·-ListMentionableBots-—-列出可-的机器人"><a href="#051-·-ListMentionableBots-—-列出可-的机器人" class="headerlink" title="051 · ListMentionableBots — 列出可 @ 的机器人"></a>051 · ListMentionableBots — 列出可 @ 的机器人</h3><p><strong>服务</strong>：<code>moment.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/moment.v1.UserService/ListMentionableBots</code></p><ul><li><strong>API用途</strong>：列出当前可在动态&#x2F;评论中 @ 的机器人（Kimi 智能体）列表。</li><li><strong>这接口能干啥（大白话）</strong>：列出发动态&#x2F;评论时能 @ 的机器人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMentionableBotsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>sceneType</code></td><td>enum <code>MentionableSceneType</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>sceneType</code>：<code>MENTIONABLE_SCENE_TYPE_UNSPECIFIED</code>、<code>MENTIONABLE_SCENE_TYPE_AGENT</code>、<code>MENTIONABLE_SCENE_TYPE_COMMENT_KIMI</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/moment.v1.UserService/ListMentionableBots</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.moment.v1.ListMentionableBotsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>bots</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="对话-·-kimi-gateway-chat-v1-ChatService（28-个方法）"><a href="#对话-·-kimi-gateway-chat-v1-ChatService（28-个方法）" class="headerlink" title="对话 · kimi.gateway.chat.v1.ChatService（28 个方法）"></a>对话 · <code>kimi.gateway.chat.v1.ChatService</code>（28 个方法）</h2><h3 id="052-·-BatchDeleteChats-—-批量删除会话"><a href="#052-·-BatchDeleteChats-—-批量删除会话" class="headerlink" title="052 · BatchDeleteChats — 批量删除会话"></a>052 · BatchDeleteChats — 批量删除会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/BatchDeleteChats</code></p><ul><li><strong>API用途</strong>：批量删除会话。</li><li><strong>这接口能干啥（大白话）</strong>：一次删掉多个会话。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.BatchDeleteChatsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/BatchDeleteChats</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.BatchDeleteChatsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatIds</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="053-·-CancelChat-—-取消对话"><a href="#053-·-CancelChat-—-取消对话" class="headerlink" title="053 · CancelChat — 取消对话"></a>053 · CancelChat — 取消对话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CancelChat</code></p><ul><li><strong>API用途</strong>：取消正在进行的生成。</li><li><strong>这接口能干啥（大白话）</strong>：正在生成时点“停止”就调它。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CancelChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CancelChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CancelChatResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="054-·-Chat-—-发起对话（流式）"><a href="#054-·-Chat-—-发起对话（流式）" class="headerlink" title="054 · Chat — 发起对话（流式）"></a>054 · Chat — 发起对话（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/Chat</code></p><ul><li><strong>API用途</strong>：服务端流式发起一轮对话，逐块返回 SSE&#x2F;Connect 流事件（思考、正文增量、工具调用、引用等）。</li><li><strong>这接口能干啥（大白话）</strong>：发消息聊天，回答是一点点“流”出来的（打字机效果）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>kimiplusId</code></td><td>string</td></tr><tr><td><code>scenario</code></td><td>enum <code>Scenario</code></td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td></tr><tr><td><code>options</code></td><td>message <code>ChatRequestOptions</code></td></tr><tr><td><code>projectId</code></td><td>string</td></tr><tr><td><code>tools</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scenario</code>：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/Chat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="055-·-ChatFromCase-—-案例对话（流式）"><a href="#055-·-ChatFromCase-—-案例对话（流式）" class="headerlink" title="055 · ChatFromCase — 案例对话（流式）"></a>055 · ChatFromCase — 案例对话（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ChatFromCase</code></p><ul><li><strong>API用途</strong>：从案例&#x2F;模板发起对话（流式）。</li><li><strong>这接口能干啥（大白话）</strong>：从案例&#x2F;模板一键开启一段对话。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ChatFromCaseRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>caseId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ChatFromCase</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="056-·-ContinueChat-—-继续对话（流式）"><a href="#056-·-ContinueChat-—-继续对话（流式）" class="headerlink" title="056 · ContinueChat — 继续对话（流式）"></a>056 · ContinueChat — 继续对话（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ContinueChat</code></p><ul><li><strong>API用途</strong>：对已中断&#x2F;待继续的对话继续生成（流式）。</li><li><strong>这接口能干啥（大白话）</strong>：对话被中断后接着往下生成。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ContinueChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ContinueChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="057-·-CreateChatFromShare-—-创建由分享创建的会话"><a href="#057-·-CreateChatFromShare-—-创建由分享创建的会话" class="headerlink" title="057 · CreateChatFromShare — 创建由分享创建的会话"></a>057 · CreateChatFromShare — 创建由分享创建的会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CreateChatFromShare</code></p><ul><li><strong>API用途</strong>：对话模块接口：创建由分享创建的会话（proto 方法 ChatService.CreateChatFromShare）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：新建由分享创建的会话。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CreateChatFromShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CreateChatFromShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CreateChatFromShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chat</code></td><td>message <code>Chat</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="058-·-CreateChatShare-—-创建对话分享"><a href="#058-·-CreateChatShare-—-创建对话分享" class="headerlink" title="058 · CreateChatShare — 创建对话分享"></a>058 · CreateChatShare — 创建对话分享</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CreateChatShare</code></p><ul><li><strong>API用途</strong>：对话模块接口：创建对话分享（proto 方法 ChatService.CreateChatShare）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：新建对话分享。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CreateChatShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/CreateChatShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.CreateChatShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>share</code></td><td>message <code>ChatShare</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="059-·-GetChat-—-获取会话"><a href="#059-·-GetChat-—-获取会话" class="headerlink" title="059 · GetChat — 获取会话"></a>059 · GetChat — 获取会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChat</code></p><ul><li><strong>API用途</strong>：获取单个会话详情及消息。</li><li><strong>这接口能干啥（大白话）</strong>：打开某个会话看内容。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chat</code></td><td>message <code>Chat</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="060-·-GetChatShare-—-获取对话分享"><a href="#060-·-GetChatShare-—-获取对话分享" class="headerlink" title="060 · GetChatShare — 获取对话分享"></a>060 · GetChatShare — 获取对话分享</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShare</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取对话分享（proto 方法 ChatService.GetChatShare）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看对话分享。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr><tr><td><code>messageOrder</code></td><td>enum <code>MessageOrder</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>messageOrder</code>：<code>MESSAGE_ORDER_UNSPECIFIED</code>、<code>MESSAGE_ORDER_ASC</code>、<code>MESSAGE_ORDER_DESC</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>share</code></td><td>message <code>ChatShare</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="061-·-GetChatShareMessage-—-获取对话分享消息"><a href="#061-·-GetChatShareMessage-—-获取对话分享消息" class="headerlink" title="061 · GetChatShareMessage — 获取对话分享消息"></a>061 · GetChatShareMessage — 获取对话分享消息</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShareMessage</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取对话分享消息（proto 方法 ChatService.GetChatShareMessage）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看对话分享消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShareMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareMessageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="062-·-GetChatShareScreenshot-—-获取对话分享截图"><a href="#062-·-GetChatShareScreenshot-—-获取对话分享截图" class="headerlink" title="062 · GetChatShareScreenshot — 获取对话分享截图"></a>062 · GetChatShareScreenshot — 获取对话分享截图</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShareScreenshot</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取对话分享截图（proto 方法 ChatService.GetChatShareScreenshot）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看对话分享截图。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareScreenshotRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr><tr><td><code>theme</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetChatShareScreenshot</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareScreenshotResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>screenshotUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="063-·-GetMessage-—-获取单条消息"><a href="#063-·-GetMessage-—-获取单条消息" class="headerlink" title="063 · GetMessage — 获取单条消息"></a>063 · GetMessage — 获取单条消息</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetMessage</code></p><ul><li><strong>API用途</strong>：获取一条消息详情。</li><li><strong>这接口能干啥（大白话）</strong>：看某一条消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetMessageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="064-·-GetMessageRecommendPrompts-—-获取消息推荐提示词"><a href="#064-·-GetMessageRecommendPrompts-—-获取消息推荐提示词" class="headerlink" title="064 · GetMessageRecommendPrompts — 获取消息推荐提示词"></a>064 · GetMessageRecommendPrompts — 获取消息推荐提示词</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetMessageRecommendPrompts</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取消息推荐提示词（proto 方法 ChatService.GetMessageRecommendPrompts）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看消息推荐提示词。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetMessageRecommendPromptsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetMessageRecommendPrompts</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetMessageRecommendPromptsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>prompts</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="065-·-GetToolBlock-—-获取工具块"><a href="#065-·-GetToolBlock-—-获取工具块" class="headerlink" title="065 · GetToolBlock — 获取工具块"></a>065 · GetToolBlock — 获取工具块</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetToolBlock</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取工具块（proto 方法 ChatService.GetToolBlock）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看工具块。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetToolBlockRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>toolCallId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetToolBlock</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetToolBlockResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>toolBlock</code></td><td>message <code>ToolBlock</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="066-·-GetUnreadChats-—-获取未读会话"><a href="#066-·-GetUnreadChats-—-获取未读会话" class="headerlink" title="066 · GetUnreadChats — 获取未读会话"></a>066 · GetUnreadChats — 获取未读会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetUnreadChats</code></p><ul><li><strong>API用途</strong>：对话模块接口：获取未读会话（proto 方法 ChatService.GetUnreadChats）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：查看未读会话。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetUnreadChatsRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/GetUnreadChats</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetUnreadChatsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>unreadCount</code></td><td>int32</td></tr><tr><td><code>chatIds</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="067-·-ListChats-—-列出会话"><a href="#067-·-ListChats-—-列出会话" class="headerlink" title="067 · ListChats — 列出会话"></a>067 · ListChats — 列出会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ListChats</code></p><ul><li><strong>API用途</strong>：分页拉取会话列表。</li><li><strong>这接口能干啥（大白话）</strong>：拉一页历史会话列表。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListChatsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>kimiPlusId</code></td><td>string</td></tr><tr><td><code>withMessageContent</code></td><td>bool</td></tr><tr><td><code>includePinned</code></td><td>bool</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ListChats</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListChatsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>chats</code></td><td>repeated</td></tr><tr><td><code>pinnedChats</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="068-·-ListMessages-—-列出消息"><a href="#068-·-ListMessages-—-列出消息" class="headerlink" title="068 · ListMessages — 列出消息"></a>068 · ListMessages — 列出消息</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ListMessages</code></p><ul><li><strong>API用途</strong>：分页拉取会话消息。</li><li><strong>这接口能干啥（大白话）</strong>：拉一页会话里的消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>direction</code></td><td>message</td></tr><tr><td><code>startMessageId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ListMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListMessagesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="069-·-MarkChatAsRead-—-调用会话已读标记"><a href="#069-·-MarkChatAsRead-—-调用会话已读标记" class="headerlink" title="069 · MarkChatAsRead — 调用会话已读标记"></a>069 · MarkChatAsRead — 调用会话已读标记</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/MarkChatAsRead</code></p><ul><li><strong>API用途</strong>：对话模块接口：调用会话已读标记（proto 方法 ChatService.MarkChatAsRead）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：调用 会话已读标记。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.MarkChatAsReadRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/MarkChatAsRead</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.MarkChatAsReadResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="070-·-MessageSpeech-—-消息语音合成"><a href="#070-·-MessageSpeech-—-消息语音合成" class="headerlink" title="070 · MessageSpeech — 消息语音合成"></a>070 · MessageSpeech — 消息语音合成</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/MessageSpeech</code></p><ul><li><strong>API用途</strong>：把消息正文合成为语音（TTS）。</li><li><strong>这接口能干啥（大白话）</strong>：把回答读出来（转语音）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.MessageSpeechRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>voiceId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/MessageSpeech</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="071-·-ProcessAskUserResult-—-调用提问结果"><a href="#071-·-ProcessAskUserResult-—-调用提问结果" class="headerlink" title="071 · ProcessAskUserResult — 调用提问结果"></a>071 · ProcessAskUserResult — 调用提问结果</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ProcessAskUserResult</code></p><ul><li><strong>API用途</strong>：对话模块接口：调用提问结果（proto 方法 ChatService.ProcessAskUserResult）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：调用 提问结果。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ProcessAskUserResultRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>artifactId</code></td><td>string</td></tr><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>answers</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ProcessAskUserResult</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ProcessAskUserResultResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="072-·-RegenerateMessage-—-重新生成（流式）"><a href="#072-·-RegenerateMessage-—-重新生成（流式）" class="headerlink" title="072 · RegenerateMessage — 重新生成（流式）"></a>072 · RegenerateMessage — 重新生成（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/RegenerateMessage</code></p><ul><li><strong>API用途</strong>：对指定消息重新生成回答（流式）。</li><li><strong>这接口能干啥（大白话）</strong>：对某条回答不满意，让它重新答一遍。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.RegenerateMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>kimiplusId</code></td><td>string</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td></tr><tr><td><code>scenario</code></td><td>enum <code>Scenario</code></td></tr><tr><td><code>options</code></td><td>message <code>ChatRequestOptions</code></td></tr><tr><td><code>tools</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scenario</code>：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/RegenerateMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="073-·-ReplayChatShareStream-—-回放分享对话流（流式）"><a href="#073-·-ReplayChatShareStream-—-回放分享对话流（流式）" class="headerlink" title="073 · ReplayChatShareStream — 回放分享对话流（流式）"></a>073 · ReplayChatShareStream — 回放分享对话流（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ReplayChatShareStream</code></p><ul><li><strong>API用途</strong>：流式回放某个对话分享内容。</li><li><strong>这接口能干啥（大白话）</strong>：回放某条对话分享的内容。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ReplayChatShareStreamRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr><tr><td><code>msgId</code></td><td>string</td></tr><tr><td><code>eventOffset</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ReplayChatShareStream</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="074-·-ReplyInteraction-—-调用交互回复"><a href="#074-·-ReplyInteraction-—-调用交互回复" class="headerlink" title="074 · ReplyInteraction — 调用交互回复"></a>074 · ReplyInteraction — 调用交互回复</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ReplyInteraction</code></p><ul><li><strong>API用途</strong>：对话模块接口：调用交互回复（proto 方法 ChatService.ReplyInteraction）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：调用 交互回复。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ReplyInteractionRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>interaction</code></td><td>message <code>InteractionReply</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ReplyInteraction</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ReplyInteractionResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="075-·-ResumeChat-—-恢复对话（流式）"><a href="#075-·-ResumeChat-—-恢复对话（流式）" class="headerlink" title="075 · ResumeChat — 恢复对话（流式）"></a>075 · ResumeChat — 恢复对话（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ResumeChat</code></p><ul><li><strong>API用途</strong>：断线后恢复正在进行的流式对话（流式）。</li><li><strong>这接口能干啥（大白话）</strong>：断网&#x2F;切后台回来，把没说完的对话接上。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ResumeChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>eventOffset</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ResumeChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="076-·-ShareChatToCommunity-—-分享对话发布到社区"><a href="#076-·-ShareChatToCommunity-—-分享对话发布到社区" class="headerlink" title="076 · ShareChatToCommunity — 分享对话发布到社区"></a>076 · ShareChatToCommunity — 分享对话发布到社区</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ShareChatToCommunity</code></p><ul><li><strong>API用途</strong>：对话模块接口：分享对话发布到社区（proto 方法 ChatService.ShareChatToCommunity）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：分享对话发布到社区。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ShareChatToCommunityRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/ShareChatToCommunity</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ShareChatToCommunityResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>share</code></td><td>message <code>ChatShare</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="077-·-SubscribeMessageStream-—-订阅消息流（流式）"><a href="#077-·-SubscribeMessageStream-—-订阅消息流（流式）" class="headerlink" title="077 · SubscribeMessageStream — 订阅消息流（流式）"></a>077 · SubscribeMessageStream — 订阅消息流（流式）</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：流式 · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/SubscribeMessageStream</code></p><ul><li><strong>API用途</strong>：订阅指定会话的消息事件流，用于多端同步。</li><li><strong>这接口能干啥（大白话）</strong>：订阅会话消息流，多端同步用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.SubscribeMessageStreamRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>eventOffset</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/SubscribeMessageStream</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/connect+json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-device-id</span><span class="punctuation">: </span>&lt;deviceId&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK；响应为 Connect 流帧，逐帧 JSON 解析</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>op</code>：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></li></ul><p>流式响应： <strong>无单一 Response 消息</strong>，为 Connect 事件帧序列（帧负载 &#x3D; <code>ChatResponse</code> 事件信封）。</p><p><strong>返回解析说明</strong></p><p>逐帧按行解析，按事件名（字段存在性）分派；<code>error</code> 帧需中断并展示错误；最后处理连接关闭&#x2F;超时重连；断线后可用 ContinueChat&#x2F;ResumeChat 续传。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>流式接口：需处理增量事件、心跳与断线重连。</p></li></ul><h3 id="078-·-UpdateChat-—-更新会话"><a href="#078-·-UpdateChat-—-更新会话" class="headerlink" title="078 · UpdateChat — 更新会话"></a>078 · UpdateChat — 更新会话</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/UpdateChat</code></p><ul><li><strong>API用途</strong>：对话模块接口：更新会话（proto 方法 ChatService.UpdateChat）。</li><li><strong>这接口能干啥（大白话）</strong>：对话：修改会话。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.UpdateChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chat</code></td><td>message <code>ChatBrief</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/UpdateChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.UpdateChatResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chat</code></td><td>message <code>ChatBrief</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="079-·-VoteMessage-—-消息点赞-点踩"><a href="#079-·-VoteMessage-—-消息点赞-点踩" class="headerlink" title="079 · VoteMessage — 消息点赞&#x2F;点踩"></a>079 · VoteMessage — 消息点赞&#x2F;点踩</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/VoteMessage</code></p><ul><li><strong>API用途</strong>：对模型回答点赞或点踩（反馈）。</li><li><strong>这接口能干啥（大白话）</strong>：给回答点赞&#x2F;点踩。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.VoteMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>voteType</code></td><td>enum <code>Vote</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>voteType</code>：<code>VOTE_UNSPECIFIED</code>、<code>VOTE_DOWN</code>、<code>VOTE_UP</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatService/VoteMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.VoteMessageResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="对话分享-·-kimi-gateway-chat-v1-ChatShareService（1-个方法）"><a href="#对话分享-·-kimi-gateway-chat-v1-ChatShareService（1-个方法）" class="headerlink" title="对话分享 · kimi.gateway.chat.v1.ChatShareService（1 个方法）"></a>对话分享 · <code>kimi.gateway.chat.v1.ChatShareService</code>（1 个方法）</h2><h3 id="080-·-GetChatShareDocx-—-获取对话分享文档"><a href="#080-·-GetChatShareDocx-—-获取对话分享文档" class="headerlink" title="080 · GetChatShareDocx — 获取对话分享文档"></a>080 · GetChatShareDocx — 获取对话分享文档</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.ChatShareService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatShareService/GetChatShareDocx</code></p><ul><li><strong>API用途</strong>：对话分享模块接口：获取对话分享文档（proto 方法 ChatShareService.GetChatShareDocx）。</li><li><strong>这接口能干啥（大白话）</strong>：对话分享：查看对话分享文档。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareDocxRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>shareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.ChatShareService/GetChatShareDocx</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetChatShareDocxResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>docxUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="Kimi-·-kimi-gateway-chat-v1-KimiPlusService（2-个方法）"><a href="#Kimi-·-kimi-gateway-chat-v1-KimiPlusService（2-个方法）" class="headerlink" title="Kimi+ · kimi.gateway.chat.v1.KimiPlusService（2 个方法）"></a>Kimi+ · <code>kimi.gateway.chat.v1.KimiPlusService</code>（2 个方法）</h2><h3 id="081-·-ListKimiPlus-—-列出Kimi"><a href="#081-·-ListKimiPlus-—-列出Kimi" class="headerlink" title="081 · ListKimiPlus — 列出Kimi+"></a>081 · ListKimiPlus — 列出Kimi+</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.KimiPlusService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.KimiPlusService/ListKimiPlus</code></p><ul><li><strong>API用途</strong>：Kimi+模块接口：列出Kimi+（proto 方法 KimiPlusService.ListKimiPlus）。</li><li><strong>这接口能干啥（大白话）</strong>：Kimi+：列出Kimi+（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListKimiPlusRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.KimiPlusService/ListKimiPlus</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListKimiPlusResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>kimiplus</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="082-·-ListPinnedKimiPlus-—-列出常用-Kimi"><a href="#082-·-ListPinnedKimiPlus-—-列出常用-Kimi" class="headerlink" title="082 · ListPinnedKimiPlus — 列出常用 Kimi+"></a>082 · ListPinnedKimiPlus — 列出常用 Kimi+</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.KimiPlusService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.KimiPlusService/ListPinnedKimiPlus</code></p><ul><li><strong>API用途</strong>：Kimi+模块接口：列出常用 Kimi+（proto 方法 KimiPlusService.ListPinnedKimiPlus）。</li><li><strong>这接口能干啥（大白话）</strong>：Kimi+：列出常用 Kimi+（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListPinnedKimiPlusRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.KimiPlusService/ListPinnedKimiPlus</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ListPinnedKimiPlusResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>kimiplus</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="提示词-·-kimi-gateway-chat-v1-PromptService（1-个方法）"><a href="#提示词-·-kimi-gateway-chat-v1-PromptService（1-个方法）" class="headerlink" title="提示词 · kimi.gateway.chat.v1.PromptService（1 个方法）"></a>提示词 · <code>kimi.gateway.chat.v1.PromptService</code>（1 个方法）</h2><h3 id="083-·-GetEnhancedPrompts-—-获取增强提示词"><a href="#083-·-GetEnhancedPrompts-—-获取增强提示词" class="headerlink" title="083 · GetEnhancedPrompts — 获取增强提示词"></a>083 · GetEnhancedPrompts — 获取增强提示词</h3><p><strong>服务</strong>：<code>kimi.gateway.chat.v1.PromptService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.chat.v1.PromptService/GetEnhancedPrompts</code></p><ul><li><strong>API用途</strong>：提示词模块接口：获取增强提示词（proto 方法 PromptService.GetEnhancedPrompts）。</li><li><strong>这接口能干啥（大白话）</strong>：提示词：查看增强提示词。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetEnhancedPromptsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>fileIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.chat.v1.PromptService/GetEnhancedPrompts</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.chat.v1.GetEnhancedPromptsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>placeholderPrompt</code></td><td>message <code>EnhancedPrompt</code></td></tr><tr><td><code>enhancedPrompts</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="IM-群聊-·-kimi-gateway-im-v1-IMService（15-个方法）"><a href="#IM-群聊-·-kimi-gateway-im-v1-IMService（15-个方法）" class="headerlink" title="IM 群聊 · kimi.gateway.im.v1.IMService（15 个方法）"></a>IM 群聊 · <code>kimi.gateway.im.v1.IMService</code>（15 个方法）</h2><h3 id="084-·-CreateInvitation-—-创建入群邀请"><a href="#084-·-CreateInvitation-—-创建入群邀请" class="headerlink" title="084 · CreateInvitation — 创建入群邀请"></a>084 · CreateInvitation — 创建入群邀请</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/CreateInvitation</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：创建入群邀请（proto 方法 IMService.CreateInvitation）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：新建入群邀请。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.CreateInvitationRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/CreateInvitation</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.CreateInvitationResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>ticket</code></td><td>string</td></tr><tr><td><code>invitationCoverUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="085-·-CreateRoom-—-创建群聊"><a href="#085-·-CreateRoom-—-创建群聊" class="headerlink" title="085 · CreateRoom — 创建群聊"></a>085 · CreateRoom — 创建群聊</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/CreateRoom</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：创建群聊（proto 方法 IMService.CreateRoom）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：新建群聊。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.CreateRoomRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td></tr><tr><td><code>instruction</code></td><td>string</td></tr><tr><td><code>botIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/CreateRoom</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.CreateRoomResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>room</code></td><td>message <code>Room</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="086-·-DeleteRoom-—-删除群聊"><a href="#086-·-DeleteRoom-—-删除群聊" class="headerlink" title="086 · DeleteRoom — 删除群聊"></a>086 · DeleteRoom — 删除群聊</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/DeleteRoom</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：删除群聊（proto 方法 IMService.DeleteRoom）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：删除群聊。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.DeleteRoomRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/DeleteRoom</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.DeleteRoomResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="087-·-GetRoom-—-获取群聊"><a href="#087-·-GetRoom-—-获取群聊" class="headerlink" title="087 · GetRoom — 获取群聊"></a>087 · GetRoom — 获取群聊</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetRoom</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：获取群聊（proto 方法 IMService.GetRoom）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：查看群聊。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetRoomRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetRoom</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetRoomResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>room</code></td><td>message <code>Room</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="088-·-GetRoomByInvitation-—-获取凭邀请入群"><a href="#088-·-GetRoomByInvitation-—-获取凭邀请入群" class="headerlink" title="088 · GetRoomByInvitation — 获取凭邀请入群"></a>088 · GetRoomByInvitation — 获取凭邀请入群</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetRoomByInvitation</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：获取凭邀请入群（proto 方法 IMService.GetRoomByInvitation）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：查看凭邀请入群。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetRoomByInvitationRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>ticket</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetRoomByInvitation</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetRoomByInvitationResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>room</code></td><td>message <code>Room</code></td></tr><tr><td><code>invitationCoverUrl</code></td><td>string</td></tr><tr><td><code>members</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="089-·-GetThread-—-获取会话线程"><a href="#089-·-GetThread-—-获取会话线程" class="headerlink" title="089 · GetThread — 获取会话线程"></a>089 · GetThread — 获取会话线程</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetThread</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：获取会话线程（proto 方法 IMService.GetThread）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：查看会话线程。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetThreadRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>threadId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/GetThread</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.GetThreadResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thread</code></td><td>message <code>Thread</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="090-·-InviteMembers-—-邀请成员"><a href="#090-·-InviteMembers-—-邀请成员" class="headerlink" title="090 · InviteMembers — 邀请成员"></a>090 · InviteMembers — 邀请成员</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/InviteMembers</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：邀请成员（proto 方法 IMService.InviteMembers）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：邀请群成员。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.InviteMembersRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr><tr><td><code>memberIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/InviteMembers</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.InviteMembersResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>members</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="091-·-ListMembers-—-列出成员"><a href="#091-·-ListMembers-—-列出成员" class="headerlink" title="091 · ListMembers — 列出成员"></a>091 · ListMembers — 列出成员</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListMembers</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：列出成员（proto 方法 IMService.ListMembers）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：列出群成员（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListMembersRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListMembers</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListMembersResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>members</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="092-·-ListMessages-—-列出消息"><a href="#092-·-ListMessages-—-列出消息" class="headerlink" title="092 · ListMessages — 列出消息"></a>092 · ListMessages — 列出消息</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListMessages</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：列出消息（proto 方法 IMService.ListMessages）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：列出消息（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>direction</code></td><td>message</td></tr><tr><td><code>startMessageId</code></td><td>string</td></tr><tr><td><code>includeStartMessage</code></td><td>bool</td></tr><tr><td><code>endMessageId</code></td><td>string</td></tr><tr><td><code>includeEndMessage</code></td><td>bool</td></tr><tr><td><code>noMarkAsRead</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListMessagesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="093-·-ListRooms-—-列出群聊"><a href="#093-·-ListRooms-—-列出群聊" class="headerlink" title="093 · ListRooms — 列出群聊"></a>093 · ListRooms — 列出群聊</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListRooms</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：列出群聊（proto 方法 IMService.ListRooms）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：列出群聊（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListRoomsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListRooms</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListRoomsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>rooms</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="094-·-ListTypingMembers-—-列出正在输入的成员"><a href="#094-·-ListTypingMembers-—-列出正在输入的成员" class="headerlink" title="094 · ListTypingMembers — 列出正在输入的成员"></a>094 · ListTypingMembers — 列出正在输入的成员</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListTypingMembers</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：列出正在输入的成员（proto 方法 IMService.ListTypingMembers）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：列出正在输入的成员（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListTypingMembersRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/ListTypingMembers</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.ListTypingMembersResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>members</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="095-·-RemoveMember-—-移除成员"><a href="#095-·-RemoveMember-—-移除成员" class="headerlink" title="095 · RemoveMember — 移除成员"></a>095 · RemoveMember — 移除成员</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/RemoveMember</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：移除成员（proto 方法 IMService.RemoveMember）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：移除群成员。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.RemoveMemberRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr><tr><td><code>memberId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/RemoveMember</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.RemoveMemberResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="096-·-SendMessage-—-发送消息"><a href="#096-·-SendMessage-—-发送消息" class="headerlink" title="096 · SendMessage — 发送消息"></a>096 · SendMessage — 发送消息</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/SendMessage</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：发送消息（proto 方法 IMService.SendMessage）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：发送消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.SendMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>blocks</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/SendMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.SendMessageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>messageId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="097-·-SetMemberRole-—-设置成员角色"><a href="#097-·-SetMemberRole-—-设置成员角色" class="headerlink" title="097 · SetMemberRole — 设置成员角色"></a>097 · SetMemberRole — 设置成员角色</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/SetMemberRole</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：设置成员角色（proto 方法 IMService.SetMemberRole）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：设置成员角色。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.SetMemberRoleRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>roomId</code></td><td>string</td></tr><tr><td><code>memberId</code></td><td>string</td></tr><tr><td><code>role</code></td><td>enum <code>MemberRole</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>role</code>：<code>MEMBER_ROLE_UNSPECIFIED</code>、<code>MEMBER_ROLE_AUDIENCE</code>、<code>MEMBER_ROLE_COORDINATOR</code>、<code>MEMBER_ROLE_MEMBER</code>、<code>MEMBER_ROLE_OWNER</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/SetMemberRole</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.SetMemberRoleResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="098-·-UpdateRoom-—-更新群聊"><a href="#098-·-UpdateRoom-—-更新群聊" class="headerlink" title="098 · UpdateRoom — 更新群聊"></a>098 · UpdateRoom — 更新群聊</h3><p><strong>服务</strong>：<code>kimi.gateway.im.v1.IMService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/UpdateRoom</code></p><ul><li><strong>API用途</strong>：IM 群聊模块接口：更新群聊（proto 方法 IMService.UpdateRoom）。</li><li><strong>这接口能干啥（大白话）</strong>：IM 群聊：修改群聊。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.UpdateRoomRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>room</code></td><td>message <code>Room</code></td></tr><tr><td><code>updateMask</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.im.v1.IMService/UpdateRoom</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.im.v1.UpdateRoomResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>room</code></td><td>message <code>Room</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="账号认证-·-account-gateway-v1-AuthService（8-个方法）"><a href="#账号认证-·-account-gateway-v1-AuthService（8-个方法）" class="headerlink" title="账号认证 · account.gateway.v1.AuthService（8 个方法）"></a>账号认证 · <code>account.gateway.v1.AuthService</code>（8 个方法）</h2><h3 id="099-·-BindPhone-—-绑定手机号"><a href="#099-·-BindPhone-—-绑定手机号" class="headerlink" title="099 · BindPhone — 绑定手机号"></a>099 · BindPhone — 绑定手机号</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/BindPhone</code></p><ul><li><strong>API用途</strong>：账号认证模块接口：绑定手机号（proto 方法 AuthService.BindPhone）。</li><li><strong>这接口能干啥（大白话）</strong>：登录鉴权：绑定手机号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ThirdPartyCredential</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thirdParty</code></td><td>enum <code>ThirdParty</code></td></tr><tr><td><code>code</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>thirdParty</code>：<code>THIRD_PARTY_UNSPECIFIED</code>、<code>THIRD_PARTY_APPLE</code>、<code>THIRD_PARTY_EMAIL</code>、<code>THIRD_PARTY_GOOGLE</code>、<code>THIRD_PARTY_HUAWEI</code>、<code>THIRD_PARTY_WECHAT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/BindPhone</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.BindPhoneResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr><tr><td><code>newUser</code></td><td>bool</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="100-·-ConfirmLoginQRCode-—-扫码登录-确认"><a href="#100-·-ConfirmLoginQRCode-—-扫码登录-确认" class="headerlink" title="100 · ConfirmLoginQRCode — 扫码登录-确认"></a>100 · ConfirmLoginQRCode — 扫码登录-确认</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/ConfirmLoginQRCode</code></p><ul><li><strong>API用途</strong>：PC&#x2F;Web 端二维码登录：确认登录。</li><li><strong>这接口能干啥（大白话）</strong>：扫码后确认，完成登录。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ConfirmLoginQRCodeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>code</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/ConfirmLoginQRCode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ConfirmLoginQRCodeResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="101-·-LoginWithOneClick-—-一键登录"><a href="#101-·-LoginWithOneClick-—-一键登录" class="headerlink" title="101 · LoginWithOneClick — 一键登录"></a>101 · LoginWithOneClick — 一键登录</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithOneClick</code></p><ul><li><strong>API用途</strong>：运营商一键登录（本机号码校验）。</li><li><strong>这接口能干啥（大白话）</strong>：运营商一键登录，不用输验证码。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LoginWithOneClickRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>token</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithOneClick</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LoginWithOneClickResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr><tr><td><code>newUser</code></td><td>bool</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="102-·-LoginWithSMS-—-短信验证码登录"><a href="#102-·-LoginWithSMS-—-短信验证码登录" class="headerlink" title="102 · LoginWithSMS — 短信验证码登录"></a>102 · LoginWithSMS — 短信验证码登录</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithSMS</code></p><ul><li><strong>API用途</strong>：手机号 + 短信验证码登录，返回 access&#x2F;refresh token。</li><li><strong>这接口能干啥（大白话）</strong>：手机号 + 短信验证码登录，成功后拿到登录凭证。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LoginWithSMSRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithSMS</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LoginWithSMSResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr><tr><td><code>newUser</code></td><td>bool</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="103-·-LoginWithThirdParty-—-第三方登录"><a href="#103-·-LoginWithThirdParty-—-第三方登录" class="headerlink" title="103 · LoginWithThirdParty — 第三方登录"></a>103 · LoginWithThirdParty — 第三方登录</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithThirdParty</code></p><ul><li><strong>API用途</strong>：微信&#x2F;QQ&#x2F;Apple 等第三方账号登录。</li><li><strong>这接口能干啥（大白话）</strong>：用微信&#x2F;QQ&#x2F;Apple 等第三方账号登录。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ThirdPartyCredential</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thirdParty</code></td><td>enum <code>ThirdParty</code></td></tr><tr><td><code>code</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>thirdParty</code>：<code>THIRD_PARTY_UNSPECIFIED</code>、<code>THIRD_PARTY_APPLE</code>、<code>THIRD_PARTY_EMAIL</code>、<code>THIRD_PARTY_GOOGLE</code>、<code>THIRD_PARTY_HUAWEI</code>、<code>THIRD_PARTY_WECHAT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/LoginWithThirdParty</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LoginWithThirdPartyResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr><tr><td><code>newUser</code></td><td>bool</td></tr><tr><td><code>userId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="104-·-Logout-—-登出"><a href="#104-·-Logout-—-登出" class="headerlink" title="104 · Logout — 登出"></a>104 · Logout — 登出</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/Logout</code></p><ul><li><strong>API用途</strong>：注销当前会话（走 &#x2F;api 前缀）。</li><li><strong>这接口能干啥（大白话）</strong>：退出登录（走 &#x2F;api 前缀）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LogoutRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/Logout</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.LogoutResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="105-·-RefreshToken-—-刷新-Token"><a href="#105-·-RefreshToken-—-刷新-Token" class="headerlink" title="105 · RefreshToken — 刷新 Token"></a>105 · RefreshToken — 刷新 Token</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/RefreshToken</code></p><ul><li><strong>API用途</strong>：用 refresh token 换取新的 access token（走 &#x2F;api 前缀）。</li><li><strong>这接口能干啥（大白话）</strong>：登录凭证过期时，用它换一套新的（走 &#x2F;api 前缀）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.RefreshTokenRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>refreshToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/RefreshToken</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.RefreshTokenResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="106-·-ScanLoginQRCode-—-扫码登录-扫码"><a href="#106-·-ScanLoginQRCode-—-扫码登录-扫码" class="headerlink" title="106 · ScanLoginQRCode — 扫码登录-扫码"></a>106 · ScanLoginQRCode — 扫码登录-扫码</h3><p><strong>服务</strong>：<code>account.gateway.v1.AuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.AuthService/ScanLoginQRCode</code></p><ul><li><strong>API用途</strong>：PC&#x2F;Web 端二维码登录：客户端扫码。</li><li><strong>这接口能干啥（大白话）</strong>：电脑上扫码登录的第一步。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ScanLoginQRCodeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>code</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.AuthService/ScanLoginQRCode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ScanLoginQRCodeResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h2 id="账号设备-·-account-gateway-v1-DeviceService（1-个方法）"><a href="#账号设备-·-account-gateway-v1-DeviceService（1-个方法）" class="headerlink" title="账号设备 · account.gateway.v1.DeviceService（1 个方法）"></a>账号设备 · <code>account.gateway.v1.DeviceService</code>（1 个方法）</h2><h3 id="107-·-RegisterDevice-—-注册设备"><a href="#107-·-RegisterDevice-—-注册设备" class="headerlink" title="107 · RegisterDevice — 注册设备"></a>107 · RegisterDevice — 注册设备</h3><p><strong>服务</strong>：<code>account.gateway.v1.DeviceService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.DeviceService/RegisterDevice</code></p><ul><li><strong>API用途</strong>：上报并注册设备信息，用于多端管理与风控。</li><li><strong>这接口能干啥（大白话）</strong>：把这台设备登记上来，方便多端管理和风控。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.RegisterDeviceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pushDevice</code></td><td>message <code>PushDevice</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.DeviceService/RegisterDevice</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.RegisterDeviceResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h2 id="短信验证码-·-account-gateway-v1-SMSService（2-个方法）"><a href="#短信验证码-·-account-gateway-v1-SMSService（2-个方法）" class="headerlink" title="短信验证码 · account.gateway.v1.SMSService（2 个方法）"></a>短信验证码 · <code>account.gateway.v1.SMSService</code>（2 个方法）</h2><h3 id="108-·-ListCountries-—-列出国家区号"><a href="#108-·-ListCountries-—-列出国家区号" class="headerlink" title="108 · ListCountries — 列出国家区号"></a>108 · ListCountries — 列出国家区号</h3><p><strong>服务</strong>：<code>account.gateway.v1.SMSService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.SMSService/ListCountries</code></p><ul><li><strong>API用途</strong>：拉取支持的国家&#x2F;地区与区号。</li><li><strong>这接口能干啥（大白话）</strong>：拉支持的国家和手机区号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ListCountriesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.SMSService/ListCountries</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ListCountriesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>defaultCountry</code></td><td>message <code>Country</code></td></tr><tr><td><code>countries</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h3 id="109-·-SendVerifyCode-—-发送短信验证码"><a href="#109-·-SendVerifyCode-—-发送短信验证码" class="headerlink" title="109 · SendVerifyCode — 发送短信验证码"></a>109 · SendVerifyCode — 发送短信验证码</h3><p><strong>服务</strong>：<code>account.gateway.v1.SMSService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/api/account.gateway.v1.SMSService/SendVerifyCode</code></p><ul><li><strong>API用途</strong>：向指定手机号发送短信验证码。</li><li><strong>这接口能干啥（大白话）</strong>：给手机号发短信验证码。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）；本接口注意：走 <code>/api</code> 前缀；登录&#x2F;短信类可免 <code>Authorization</code>；<code>RefreshToken</code> &#x2F; <code>Logout</code> 需携带 refresh token。</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.common.v1.Captcha</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>captchaId</code></td><td>string</td></tr><tr><td><code>validate</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/api/account.gateway.v1.SMSService/SendVerifyCode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.SendVerifyCodeResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>本接口走 <code>/api</code> 前缀（非 <code>/apiv2</code>）。</p></li></ul><h2 id="青少年模式-·-kimi-gateway-account-v1-MinorModeService（7-个方法）"><a href="#青少年模式-·-kimi-gateway-account-v1-MinorModeService（7-个方法）" class="headerlink" title="青少年模式 · kimi.gateway.account.v1.MinorModeService（7 个方法）"></a>青少年模式 · <code>kimi.gateway.account.v1.MinorModeService</code>（7 个方法）</h2><h3 id="110-·-BindGuardian-—-绑定监护人"><a href="#110-·-BindGuardian-—-绑定监护人" class="headerlink" title="110 · BindGuardian — 绑定监护人"></a>110 · BindGuardian — 绑定监护人</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/BindGuardian</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：绑定监护人（proto 方法 MinorModeService.BindGuardian）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：绑定监护人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.BindGuardianRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>passcode</code></td><td>string</td></tr><tr><td><code>passcodeConfirm</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/BindGuardian</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.BindGuardianResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>minorMode</code></td><td>message <code>MinorMode</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="111-·-GetMinorMode-—-获取青少年模式"><a href="#111-·-GetMinorMode-—-获取青少年模式" class="headerlink" title="111 · GetMinorMode — 获取青少年模式"></a>111 · GetMinorMode — 获取青少年模式</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/GetMinorMode</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：获取青少年模式（proto 方法 MinorModeService.GetMinorMode）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：查看青少年模式。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.GetMinorModeRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/GetMinorMode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.GetMinorModeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>minorMode</code></td><td>message <code>MinorMode</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="112-·-ResetPasscode-—-重置密码"><a href="#112-·-ResetPasscode-—-重置密码" class="headerlink" title="112 · ResetPasscode — 重置密码"></a>112 · ResetPasscode — 重置密码</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/ResetPasscode</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：重置密码（proto 方法 MinorModeService.ResetPasscode）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：重置密码。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ResetPasscodeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>passcode</code></td><td>string</td></tr><tr><td><code>passcodeConfirm</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/ResetPasscode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ResetPasscodeResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="113-·-UnbindGuardian-—-解绑监护人"><a href="#113-·-UnbindGuardian-—-解绑监护人" class="headerlink" title="113 · UnbindGuardian — 解绑监护人"></a>113 · UnbindGuardian — 解绑监护人</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/UnbindGuardian</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：解绑监护人（proto 方法 MinorModeService.UnbindGuardian）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：解绑监护人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UnbindGuardianRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/UnbindGuardian</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UnbindGuardianResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>minorMode</code></td><td>message <code>MinorMode</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="114-·-UpdateMinorMode-—-更新青少年模式"><a href="#114-·-UpdateMinorMode-—-更新青少年模式" class="headerlink" title="114 · UpdateMinorMode — 更新青少年模式"></a>114 · UpdateMinorMode — 更新青少年模式</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/UpdateMinorMode</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：更新青少年模式（proto 方法 MinorModeService.UpdateMinorMode）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：修改青少年模式。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UpdateMinorModeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>enabled</code></td><td>bool</td></tr><tr><td><code>passcode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/UpdateMinorMode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UpdateMinorModeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>minorMode</code></td><td>message <code>MinorMode</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="115-·-VerifyGuardianPhone-—-校验监护人手机号"><a href="#115-·-VerifyGuardianPhone-—-校验监护人手机号" class="headerlink" title="115 · VerifyGuardianPhone — 校验监护人手机号"></a>115 · VerifyGuardianPhone — 校验监护人手机号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/VerifyGuardianPhone</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：校验监护人手机号（proto 方法 MinorModeService.VerifyGuardianPhone）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：校验监护人手机号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyGuardianPhoneRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/VerifyGuardianPhone</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyGuardianPhoneResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="116-·-VerifyGuardianReset-—-校验监护人重置"><a href="#116-·-VerifyGuardianReset-—-校验监护人重置" class="headerlink" title="116 · VerifyGuardianReset — 校验监护人重置"></a>116 · VerifyGuardianReset — 校验监护人重置</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.MinorModeService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/VerifyGuardianReset</code></p><ul><li><strong>API用途</strong>：青少年模式模块接口：校验监护人重置（proto 方法 MinorModeService.VerifyGuardianReset）。</li><li><strong>这接口能干啥（大白话）</strong>：青少年模式：校验监护人重置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyGuardianResetRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.MinorModeService/VerifyGuardianReset</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyGuardianResetResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="账号安全-·-kimi-gateway-account-v1-SecurityService（8-个方法）"><a href="#账号安全-·-kimi-gateway-account-v1-SecurityService（8-个方法）" class="headerlink" title="账号安全 · kimi.gateway.account.v1.SecurityService（8 个方法）"></a>账号安全 · <code>kimi.gateway.account.v1.SecurityService</code>（8 个方法）</h2><h3 id="117-·-BindPhone-—-绑定手机号"><a href="#117-·-BindPhone-—-绑定手机号" class="headerlink" title="117 · BindPhone — 绑定手机号"></a>117 · BindPhone — 绑定手机号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/BindPhone</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：绑定手机号（proto 方法 SecurityService.BindPhone）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：绑定手机号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.BindPhoneRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/BindPhone</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.BindPhoneResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="118-·-BindThirdAccount-—-绑定第三方账号"><a href="#118-·-BindThirdAccount-—-绑定第三方账号" class="headerlink" title="118 · BindThirdAccount — 绑定第三方账号"></a>118 · BindThirdAccount — 绑定第三方账号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/BindThirdAccount</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：绑定第三方账号（proto 方法 SecurityService.BindThirdAccount）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：绑定第三方账号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.account.gateway.v1.ThirdPartyCredential</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thirdParty</code></td><td>enum <code>ThirdParty</code></td></tr><tr><td><code>code</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>thirdParty</code>：<code>THIRD_PARTY_UNSPECIFIED</code>、<code>THIRD_PARTY_APPLE</code>、<code>THIRD_PARTY_EMAIL</code>、<code>THIRD_PARTY_GOOGLE</code>、<code>THIRD_PARTY_HUAWEI</code>、<code>THIRD_PARTY_WECHAT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/BindThirdAccount</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.BindThirdAccountResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="119-·-DeactivateAccount-—-调用账号注销"><a href="#119-·-DeactivateAccount-—-调用账号注销" class="headerlink" title="119 · DeactivateAccount — 调用账号注销"></a>119 · DeactivateAccount — 调用账号注销</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/DeactivateAccount</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：调用账号注销（proto 方法 SecurityService.DeactivateAccount）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：注销账号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.DeactivateAccountRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/DeactivateAccount</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.DeactivateAccountResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="120-·-ListThirdAccounts-—-列出第三方账号"><a href="#120-·-ListThirdAccounts-—-列出第三方账号" class="headerlink" title="120 · ListThirdAccounts — 列出第三方账号"></a>120 · ListThirdAccounts — 列出第三方账号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/ListThirdAccounts</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：列出第三方账号（proto 方法 SecurityService.ListThirdAccounts）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：列出第三方账号（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ListThirdAccountsRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/ListThirdAccounts</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ListThirdAccountsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thirdAccounts</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="121-·-RebindPhone-—-换绑手机号"><a href="#121-·-RebindPhone-—-换绑手机号" class="headerlink" title="121 · RebindPhone — 换绑手机号"></a>121 · RebindPhone — 换绑手机号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/RebindPhone</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：换绑手机号（proto 方法 SecurityService.RebindPhone）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：换绑手机号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.RebindPhoneRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/RebindPhone</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.RebindPhoneResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="122-·-SendVerifyCode-—-发送验证码"><a href="#122-·-SendVerifyCode-—-发送验证码" class="headerlink" title="122 · SendVerifyCode — 发送验证码"></a>122 · SendVerifyCode — 发送验证码</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/SendVerifyCode</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：发送验证码（proto 方法 SecurityService.SendVerifyCode）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：发送验证码。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.SendVerifyCodeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>scene</code></td><td>enum <code>VerifyCodeScene</code></td></tr><tr><td><code>phone</code></td><td>message <code>PhoneNumber</code></td></tr><tr><td><code>captcha</code></td><td>message <code>Captcha</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scene</code>：<code>VERIFY_CODE_SCENE_UNSPECIFIED</code>、<code>VERIFY_CODE_SCENE_BIND_PHONE</code>、<code>VERIFY_CODE_SCENE_DEACTIVATE_ACCOUNT</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_BIND</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_RESET</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_UNBIND</code>、<code>VERIFY_CODE_SCENE_REBIND_PHONE</code>、<code>VERIFY_CODE_SCENE_VERIFY_CURRENT_PHONE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/SendVerifyCode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.SendVerifyCodeResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="123-·-UnbindThirdAccount-—-解绑第三方账号"><a href="#123-·-UnbindThirdAccount-—-解绑第三方账号" class="headerlink" title="123 · UnbindThirdAccount — 解绑第三方账号"></a>123 · UnbindThirdAccount — 解绑第三方账号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/UnbindThirdAccount</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：解绑第三方账号（proto 方法 SecurityService.UnbindThirdAccount）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：解绑第三方账号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UnbindThirdAccountRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>thirdParty</code></td><td>enum <code>ThirdParty</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>thirdParty</code>：<code>THIRD_PARTY_UNSPECIFIED</code>、<code>THIRD_PARTY_APPLE</code>、<code>THIRD_PARTY_EMAIL</code>、<code>THIRD_PARTY_GOOGLE</code>、<code>THIRD_PARTY_HUAWEI</code>、<code>THIRD_PARTY_WECHAT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/UnbindThirdAccount</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UnbindThirdAccountResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="124-·-VerifyCurrentPhone-—-校验当前手机号"><a href="#124-·-VerifyCurrentPhone-—-校验当前手机号" class="headerlink" title="124 · VerifyCurrentPhone — 校验当前手机号"></a>124 · VerifyCurrentPhone — 校验当前手机号</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.SecurityService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/VerifyCurrentPhone</code></p><ul><li><strong>API用途</strong>：账号安全模块接口：校验当前手机号（proto 方法 SecurityService.VerifyCurrentPhone）。</li><li><strong>这接口能干啥（大白话）</strong>：账号安全：校验当前手机号。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyCurrentPhoneRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>verifyCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.SecurityService/VerifyCurrentPhone</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.VerifyCurrentPhoneResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="用户-·-kimi-gateway-account-v1-UserService（4-个方法）"><a href="#用户-·-kimi-gateway-account-v1-UserService（4-个方法）" class="headerlink" title="用户 · kimi.gateway.account.v1.UserService（4 个方法）"></a>用户 · <code>kimi.gateway.account.v1.UserService</code>（4 个方法）</h2><h3 id="125-·-GetCurrentUser-—-获取当前用户"><a href="#125-·-GetCurrentUser-—-获取当前用户" class="headerlink" title="125 · GetCurrentUser — 获取当前用户"></a>125 · GetCurrentUser — 获取当前用户</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/GetCurrentUser</code></p><ul><li><strong>API用途</strong>：用户模块接口：获取当前用户（proto 方法 UserService.GetCurrentUser）。</li><li><strong>这接口能干啥（大白话）</strong>：用户：查看当前用户。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.GetCurrentUserRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/GetCurrentUser</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.GetCurrentUserResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>user</code></td><td>message <code>User</code></td></tr><tr><td><code>workspace</code></td><td>message <code>Workspace</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="126-·-ListWorkspaces-—-列出工作区"><a href="#126-·-ListWorkspaces-—-列出工作区" class="headerlink" title="126 · ListWorkspaces — 列出工作区"></a>126 · ListWorkspaces — 列出工作区</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/ListWorkspaces</code></p><ul><li><strong>API用途</strong>：用户模块接口：列出工作区（proto 方法 UserService.ListWorkspaces）。</li><li><strong>这接口能干啥（大白话）</strong>：用户：列出工作区（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ListWorkspacesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/ListWorkspaces</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.ListWorkspacesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>workspaces</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="127-·-SwitchWorkspace-—-切换工作区"><a href="#127-·-SwitchWorkspace-—-切换工作区" class="headerlink" title="127 · SwitchWorkspace — 切换工作区"></a>127 · SwitchWorkspace — 切换工作区</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/SwitchWorkspace</code></p><ul><li><strong>API用途</strong>：用户模块接口：切换工作区（proto 方法 UserService.SwitchWorkspace）。</li><li><strong>这接口能干啥（大白话）</strong>：用户：切换工作区。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.SwitchWorkspaceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>businessId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/SwitchWorkspace</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.SwitchWorkspaceResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>accessToken</code></td><td>string</td></tr><tr><td><code>refreshToken</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="128-·-UpdateProfile-—-更新资料"><a href="#128-·-UpdateProfile-—-更新资料" class="headerlink" title="128 · UpdateProfile — 更新资料"></a>128 · UpdateProfile — 更新资料</h3><p><strong>服务</strong>：<code>kimi.gateway.account.v1.UserService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/UpdateProfile</code></p><ul><li><strong>API用途</strong>：用户模块接口：更新资料（proto 方法 UserService.UpdateProfile）。</li><li><strong>这接口能干啥（大白话）</strong>：用户：修改资料。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UpdateProfileRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nickname</code></td><td>string</td></tr><tr><td><code>bio</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.account.v1.UserService/UpdateProfile</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.account.v1.UpdateProfileResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="Claw-文件-·-kimi-gateway-claw-v1-ClawFileService（1-个方法）"><a href="#Claw-文件-·-kimi-gateway-claw-v1-ClawFileService（1-个方法）" class="headerlink" title="Claw 文件 · kimi.gateway.claw.v1.ClawFileService（1 个方法）"></a>Claw 文件 · <code>kimi.gateway.claw.v1.ClawFileService</code>（1 个方法）</h2><h3 id="129-·-ListFiles-—-列出文件"><a href="#129-·-ListFiles-—-列出文件" class="headerlink" title="129 · ListFiles — 列出文件"></a>129 · ListFiles — 列出文件</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawFileService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawFileService/ListFiles</code></p><ul><li><strong>API用途</strong>：Claw 文件模块接口：列出文件（proto 方法 ClawFileService.ListFiles）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 文件：列出文件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListFilesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>botId</code></td><td>string</td></tr><tr><td><code>path</code></td><td>string</td></tr><tr><td><code>showHidden</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawFileService/ListFiles</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListFilesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>info</code></td><td>message <code>FileInfo</code></td></tr><tr><td><code>files</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="上下文-·-kimi-gateway-context-v1-ContextService（2-个方法）"><a href="#上下文-·-kimi-gateway-context-v1-ContextService（2-个方法）" class="headerlink" title="上下文 · kimi.gateway.context.v1.ContextService（2 个方法）"></a>上下文 · <code>kimi.gateway.context.v1.ContextService</code>（2 个方法）</h2><h3 id="130-·-GetGoal-—-获取目标"><a href="#130-·-GetGoal-—-获取目标" class="headerlink" title="130 · GetGoal — 获取目标"></a>130 · GetGoal — 获取目标</h3><p><strong>服务</strong>：<code>kimi.gateway.context.v1.ContextService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.context.v1.ContextService/GetGoal</code></p><ul><li><strong>API用途</strong>：上下文模块接口：获取目标（proto 方法 ContextService.GetGoal）。</li><li><strong>这接口能干啥（大白话）</strong>：上下文：查看目标。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.context.v1.GetGoalRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.context.v1.ContextService/GetGoal</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.context.v1.GetGoalResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>goal</code></td><td>message <code>Goal</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="131-·-UpdateGoal-—-更新目标"><a href="#131-·-UpdateGoal-—-更新目标" class="headerlink" title="131 · UpdateGoal — 更新目标"></a>131 · UpdateGoal — 更新目标</h3><p><strong>服务</strong>：<code>kimi.gateway.context.v1.ContextService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.context.v1.ContextService/UpdateGoal</code></p><ul><li><strong>API用途</strong>：上下文模块接口：更新目标（proto 方法 ContextService.UpdateGoal）。</li><li><strong>这接口能干啥（大白话）</strong>：上下文：修改目标。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.context.v1.UpdateGoalRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>objective</code></td><td>string</td></tr><tr><td><code>status</code></td><td>enum <code>Status</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>status</code>：<code>STATUS_UNSPECIFIED</code>、<code>STATUS_ACTIVE</code>、<code>STATUS_BLOCKED</code>、<code>STATUS_COMPLETED</code>、<code>STATUS_DELETED</code>、<code>STATUS_PAUSED</code>、<code>STATUS_TERMINATED</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.context.v1.ContextService/UpdateGoal</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.context.v1.UpdateGoalResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>goal</code></td><td>message <code>Goal</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="文档转换-·-kimi-gateway-converter-v1-ConverterService（2-个方法）"><a href="#文档转换-·-kimi-gateway-converter-v1-ConverterService（2-个方法）" class="headerlink" title="文档转换 · kimi.gateway.converter.v1.ConverterService（2 个方法）"></a>文档转换 · <code>kimi.gateway.converter.v1.ConverterService</code>（2 个方法）</h2><h3 id="132-·-ExportDocument-—-导出文档"><a href="#132-·-ExportDocument-—-导出文档" class="headerlink" title="132 · ExportDocument — 导出文档"></a>132 · ExportDocument — 导出文档</h3><p><strong>服务</strong>：<code>kimi.gateway.converter.v1.ConverterService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.converter.v1.ConverterService/ExportDocument</code></p><ul><li><strong>API用途</strong>：文档转换模块接口：导出文档（proto 方法 ConverterService.ExportDocument）。</li><li><strong>这接口能干啥（大白话）</strong>：文档转换：导出文档。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.converter.v1.ExportDocumentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>source</code></td><td>message <code>DocumentSource</code></td></tr><tr><td><code>exportType</code></td><td>enum <code>DocumentType</code></td></tr><tr><td><code>filename</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>exportType</code>：<code>DOCUMENT_TYPE_UNSPECIFIED</code>、<code>DOCUMENT_TYPE_DOCX</code>、<code>DOCUMENT_TYPE_MARKDOWN</code>、<code>DOCUMENT_TYPE_PDF</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.converter.v1.ConverterService/ExportDocument</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.converter.v1.ExportDocumentResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>jobId</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="133-·-GetExportDocumentJob-—-获取导出文档任务"><a href="#133-·-GetExportDocumentJob-—-获取导出文档任务" class="headerlink" title="133 · GetExportDocumentJob — 获取导出文档任务"></a>133 · GetExportDocumentJob — 获取导出文档任务</h3><p><strong>服务</strong>：<code>kimi.gateway.converter.v1.ConverterService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.converter.v1.ConverterService/GetExportDocumentJob</code></p><ul><li><strong>API用途</strong>：文档转换模块接口：获取导出文档任务（proto 方法 ConverterService.GetExportDocumentJob）。</li><li><strong>这接口能干啥（大白话）</strong>：文档转换：查看导出文档任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.converter.v1.GetExportDocumentJobRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.converter.v1.ConverterService/GetExportDocumentJob</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.converter.v1.GetExportDocumentJobResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>job</code></td><td>message <code>ExportDocumentJob</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="文件-·-kimi-gateway-file-v1-FileService（1-个方法）"><a href="#文件-·-kimi-gateway-file-v1-FileService（1-个方法）" class="headerlink" title="文件 · kimi.gateway.file.v1.FileService（1 个方法）"></a>文件 · <code>kimi.gateway.file.v1.FileService</code>（1 个方法）</h2><h3 id="134-·-GetFileParseProgress-—-获取文件解析进度"><a href="#134-·-GetFileParseProgress-—-获取文件解析进度" class="headerlink" title="134 · GetFileParseProgress — 获取文件解析进度"></a>134 · GetFileParseProgress — 获取文件解析进度</h3><p><strong>服务</strong>：<code>kimi.gateway.file.v1.FileService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.file.v1.FileService/GetFileParseProgress</code></p><ul><li><strong>API用途</strong>：文件模块接口：获取文件解析进度（proto 方法 FileService.GetFileParseProgress）。</li><li><strong>这接口能干啥（大白话）</strong>：文件：查看文件解析进度。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.file.v1.GetFileParseProgressRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>fileIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.file.v1.FileService/GetFileParseProgress</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.file.v1.GetFileParseProgressResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>progresses</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="存储-·-kimi-gateway-storage-v1-StorageService（1-个方法）"><a href="#存储-·-kimi-gateway-storage-v1-StorageService（1-个方法）" class="headerlink" title="存储 · kimi.gateway.storage.v1.StorageService（1 个方法）"></a>存储 · <code>kimi.gateway.storage.v1.StorageService</code>（1 个方法）</h2><h3 id="135-·-GetUserStorageQuota-—-获取用户存储配额"><a href="#135-·-GetUserStorageQuota-—-获取用户存储配额" class="headerlink" title="135 · GetUserStorageQuota — 获取用户存储配额"></a>135 · GetUserStorageQuota — 获取用户存储配额</h3><p><strong>服务</strong>：<code>kimi.gateway.storage.v1.StorageService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.storage.v1.StorageService/GetUserStorageQuota</code></p><ul><li><strong>API用途</strong>：存储模块接口：获取用户存储配额（proto 方法 StorageService.GetUserStorageQuota）。</li><li><strong>这接口能干啥（大白话）</strong>：存储：查看用户存储配额。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.storage.v1.GetUserStorageQuotaRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.storage.v1.StorageService/GetUserStorageQuota</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.storage.v1.GetUserStorageQuotaResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>quota</code></td><td>message <code>UserStorageQuota</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="应用发布-·-kimi-gateway-app-v1-AppService（4-个方法）"><a href="#应用发布-·-kimi-gateway-app-v1-AppService（4-个方法）" class="headerlink" title="应用发布 · kimi.gateway.app.v1.AppService（4 个方法）"></a>应用发布 · <code>kimi.gateway.app.v1.AppService</code>（4 个方法）</h2><h3 id="136-·-ListVersions-—-列出版本"><a href="#136-·-ListVersions-—-列出版本" class="headerlink" title="136 · ListVersions — 列出版本"></a>136 · ListVersions — 列出版本</h3><p><strong>服务</strong>：<code>kimi.gateway.app.v1.AppService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/ListVersions</code></p><ul><li><strong>API用途</strong>：应用发布模块接口：列出版本（proto 方法 AppService.ListVersions）。</li><li><strong>这接口能干啥（大白话）</strong>：应用发布：列出版本（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.ListVersionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/ListVersions</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.ListVersionsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>publishedVersionId</code></td><td>string</td></tr><tr><td><code>publishedUrl</code></td><td>string</td></tr><tr><td><code>publishState</code></td><td>enum <code>PublishState</code></td></tr><tr><td><code>publishingVersionId</code></td><td>string</td></tr><tr><td><code>versions</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>publishState</code>：<code>PUBLISH_STATE_UNSPECIFIED</code>、<code>PUBLISH_STATE_FAILED</code>、<code>PUBLISH_STATE_MODERATION_BLOCKED</code>、<code>PUBLISH_STATE_PUBLISHED</code>、<code>PUBLISH_STATE_PUBLISHING</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="137-·-PreviewApp-—-预览应用"><a href="#137-·-PreviewApp-—-预览应用" class="headerlink" title="137 · PreviewApp — 预览应用"></a>137 · PreviewApp — 预览应用</h3><p><strong>服务</strong>：<code>kimi.gateway.app.v1.AppService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/PreviewApp</code></p><ul><li><strong>API用途</strong>：应用发布模块接口：预览应用（proto 方法 AppService.PreviewApp）。</li><li><strong>这接口能干啥（大白话）</strong>：应用发布：预览应用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.PreviewAppRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>forceRestart</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/PreviewApp</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.PreviewAppResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>previewUrl</code></td><td>string</td></tr><tr><td><code>expireTime</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="138-·-PublishApp-—-发布应用"><a href="#138-·-PublishApp-—-发布应用" class="headerlink" title="138 · PublishApp — 发布应用"></a>138 · PublishApp — 发布应用</h3><p><strong>服务</strong>：<code>kimi.gateway.app.v1.AppService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/PublishApp</code></p><ul><li><strong>API用途</strong>：应用发布模块接口：发布应用（proto 方法 AppService.PublishApp）。</li><li><strong>这接口能干啥（大白话）</strong>：应用发布：发布应用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.PublishAppRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>versionId</code></td><td>string</td></tr><tr><td><code>customSlug</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/PublishApp</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.PublishAppResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>deployUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="139-·-UnpublishApp-—-取消发布应用"><a href="#139-·-UnpublishApp-—-取消发布应用" class="headerlink" title="139 · UnpublishApp — 取消发布应用"></a>139 · UnpublishApp — 取消发布应用</h3><p><strong>服务</strong>：<code>kimi.gateway.app.v1.AppService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/UnpublishApp</code></p><ul><li><strong>API用途</strong>：应用发布模块接口：取消发布应用（proto 方法 AppService.UnpublishApp）。</li><li><strong>这接口能干啥（大白话）</strong>：应用发布：下线应用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.UnpublishAppRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.app.v1.AppService/UnpublishApp</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.app.v1.UnpublishAppResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="App-支持-·-kimi-gateway-appsupport-v1-AppSupportService（1-个方法）"><a href="#App-支持-·-kimi-gateway-appsupport-v1-AppSupportService（1-个方法）" class="headerlink" title="App 支持 · kimi.gateway.appsupport.v1.AppSupportService（1 个方法）"></a>App 支持 · <code>kimi.gateway.appsupport.v1.AppSupportService</code>（1 个方法）</h2><h3 id="140-·-ScanQRCode-—-扫码二维码"><a href="#140-·-ScanQRCode-—-扫码二维码" class="headerlink" title="140 · ScanQRCode — 扫码二维码"></a>140 · ScanQRCode — 扫码二维码</h3><p><strong>服务</strong>：<code>kimi.gateway.appsupport.v1.AppSupportService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.appsupport.v1.AppSupportService/ScanQRCode</code></p><ul><li><strong>API用途</strong>：App 支持模块接口：扫码二维码（proto 方法 AppSupportService.ScanQRCode）。</li><li><strong>这接口能干啥（大白话）</strong>：应用支持：扫码二维码。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.appsupport.v1.ScanQRCodeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>qrCode</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.appsupport.v1.AppSupportService/ScanQRCode</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.appsupport.v1.ScanQRCodeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>urlScheme</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="产物分享-·-kimi-gateway-artifact-v1-ArtifactService（1-个方法）"><a href="#产物分享-·-kimi-gateway-artifact-v1-ArtifactService（1-个方法）" class="headerlink" title="产物分享 · kimi.gateway.artifact.v1.ArtifactService（1 个方法）"></a>产物分享 · <code>kimi.gateway.artifact.v1.ArtifactService</code>（1 个方法）</h2><h3 id="141-·-ShareArtifact-—-分享产物"><a href="#141-·-ShareArtifact-—-分享产物" class="headerlink" title="141 · ShareArtifact — 分享产物"></a>141 · ShareArtifact — 分享产物</h3><p><strong>服务</strong>：<code>kimi.gateway.artifact.v1.ArtifactService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.artifact.v1.ArtifactService/ShareArtifact</code></p><ul><li><strong>API用途</strong>：产物分享模块接口：分享产物（proto 方法 ArtifactService.ShareArtifact）。</li><li><strong>这接口能干啥（大白话）</strong>：产物分享：分享产物。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.artifact.v1.ShareArtifactRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>artifactId</code></td><td>string</td></tr><tr><td><code>version</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.artifact.v1.ArtifactService/ShareArtifact</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.artifact.v1.ShareArtifactResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>artifactShare</code></td><td>message <code>ArtifactShare</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="Claw-机器人-·-kimi-gateway-claw-v1-ClawService（4-个方法）"><a href="#Claw-机器人-·-kimi-gateway-claw-v1-ClawService（4-个方法）" class="headerlink" title="Claw 机器人 · kimi.gateway.claw.v1.ClawService（4 个方法）"></a>Claw 机器人 · <code>kimi.gateway.claw.v1.ClawService</code>（4 个方法）</h2><h3 id="142-·-CreateBot-—-创建机器人"><a href="#142-·-CreateBot-—-创建机器人" class="headerlink" title="142 · CreateBot — 创建机器人"></a>142 · CreateBot — 创建机器人</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/CreateBot</code></p><ul><li><strong>API用途</strong>：Claw 机器人模块接口：创建机器人（proto 方法 ClawService.CreateBot）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 机器人：新建机器人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.CreateBotRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td></tr><tr><td><code>description</code></td><td>string</td></tr><tr><td><code>type</code></td><td>enum <code>BotType</code></td></tr><tr><td><code>personality</code></td><td>enum <code>BotPersonality</code></td></tr><tr><td><code>backupId</code></td><td>string</td></tr><tr><td><code>scenarios</code></td><td>repeated</td></tr><tr><td><code>scenariosValue</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>type</code>：<code>BOT_TYPE_UNSPECIFIED</code>、<code>BOT_TYPE_ALIYUN</code>、<code>BOT_TYPE_ANDROID</code>、<code>BOT_TYPE_DESKTOP</code>、<code>BOT_TYPE_LOCAL</code>、<code>BOT_TYPE_REMOTE</code>、<code>BOT_TYPE_ROLLOUT</code>、<code>BOT_TYPE_VOLCENGINE</code></li><li><code>personality</code>：<code>BOT_PERSONALITY_UNSPECIFIED</code>、<code>BOT_PERSONALITY_HYPE_FRIEND</code>、<code>BOT_PERSONALITY_MEME_ZOOMER</code>、<code>BOT_PERSONALITY_STOIC_ADVISOR</code>、<code>BOT_PERSONALITY_THE_LISTENER</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/CreateBot</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.CreateBotResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>bot</code></td><td>message <code>Bot</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="143-·-CreateModelAPIKey-—-创建模型-API-Key"><a href="#143-·-CreateModelAPIKey-—-创建模型-API-Key" class="headerlink" title="143 · CreateModelAPIKey — 创建模型 API Key"></a>143 · CreateModelAPIKey — 创建模型 API Key</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/CreateModelAPIKey</code></p><ul><li><strong>API用途</strong>：Claw 机器人模块接口：创建模型 API Key（proto 方法 ClawService.CreateModelAPIKey）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 机器人：新建模型 API Key。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.CreateModelAPIKeyRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>type</code></td><td>enum <code>BotType</code></td></tr><tr><td><code>name</code></td><td>string</td></tr><tr><td><code>description</code></td><td>string</td></tr><tr><td><code>expireTime</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>type</code>：<code>BOT_TYPE_UNSPECIFIED</code>、<code>BOT_TYPE_ALIYUN</code>、<code>BOT_TYPE_ANDROID</code>、<code>BOT_TYPE_DESKTOP</code>、<code>BOT_TYPE_LOCAL</code>、<code>BOT_TYPE_REMOTE</code>、<code>BOT_TYPE_ROLLOUT</code>、<code>BOT_TYPE_VOLCENGINE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/CreateModelAPIKey</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.CreateModelAPIKeyResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>modelApiKey</code></td><td>message <code>ModelAPIKey</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="144-·-DeleteBot-—-删除机器人"><a href="#144-·-DeleteBot-—-删除机器人" class="headerlink" title="144 · DeleteBot — 删除机器人"></a>144 · DeleteBot — 删除机器人</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/DeleteBot</code></p><ul><li><strong>API用途</strong>：Claw 机器人模块接口：删除机器人（proto 方法 ClawService.DeleteBot）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 机器人：删除机器人。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.DeleteBotRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/DeleteBot</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.DeleteBotResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="145-·-ListBots-—-列出机器人"><a href="#145-·-ListBots-—-列出机器人" class="headerlink" title="145 · ListBots — 列出机器人"></a>145 · ListBots — 列出机器人</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/ListBots</code></p><ul><li><strong>API用途</strong>：Claw 机器人模块接口：列出机器人（proto 方法 ClawService.ListBots）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 机器人：列出机器人（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListBotsRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawService/ListBots</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListBotsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>bots</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="Claw-技能-·-kimi-gateway-claw-v1-ClawSkillService（4-个方法）"><a href="#Claw-技能-·-kimi-gateway-claw-v1-ClawSkillService（4-个方法）" class="headerlink" title="Claw 技能 · kimi.gateway.claw.v1.ClawSkillService（4 个方法）"></a>Claw 技能 · <code>kimi.gateway.claw.v1.ClawSkillService</code>（4 个方法）</h2><h3 id="146-·-DeleteRemoteSkill-—-删除远程技能"><a href="#146-·-DeleteRemoteSkill-—-删除远程技能" class="headerlink" title="146 · DeleteRemoteSkill — 删除远程技能"></a>146 · DeleteRemoteSkill — 删除远程技能</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawSkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/DeleteRemoteSkill</code></p><ul><li><strong>API用途</strong>：Claw 技能模块接口：删除远程技能（proto 方法 ClawSkillService.DeleteRemoteSkill）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 技能：删除远程技能。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.DeleteRemoteSkillRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>botId</code></td><td>string</td></tr><tr><td><code>remoteName</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/DeleteRemoteSkill</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.DeleteRemoteSkillResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="147-·-InstallSkillToRemote-—-安装技能同步到远程"><a href="#147-·-InstallSkillToRemote-—-安装技能同步到远程" class="headerlink" title="147 · InstallSkillToRemote — 安装技能同步到远程"></a>147 · InstallSkillToRemote — 安装技能同步到远程</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawSkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/InstallSkillToRemote</code></p><ul><li><strong>API用途</strong>：Claw 技能模块接口：安装技能同步到远程（proto 方法 ClawSkillService.InstallSkillToRemote）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 技能：安装技能同步到远程。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.InstallSkillToRemoteRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>botId</code></td><td>string</td></tr><tr><td><code>skillId</code></td><td>string</td></tr><tr><td><code>overrideName</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/InstallSkillToRemote</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.InstallSkillToRemoteResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>remoteName</code></td><td>string</td></tr><tr><td><code>skill</code></td><td>message <code>ClawSkill</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="148-·-ListClawSkills-—-列出Claw-技能"><a href="#148-·-ListClawSkills-—-列出Claw-技能" class="headerlink" title="148 · ListClawSkills — 列出Claw 技能"></a>148 · ListClawSkills — 列出Claw 技能</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawSkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/ListClawSkills</code></p><ul><li><strong>API用途</strong>：Claw 技能模块接口：列出Claw 技能（proto 方法 ClawSkillService.ListClawSkills）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 技能：列出Claw 技能（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListClawSkillsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>botId</code></td><td>string</td></tr><tr><td><code>query</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/ListClawSkills</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListClawSkillsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skills</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="149-·-ListRemoteSkills-—-列出远程技能"><a href="#149-·-ListRemoteSkills-—-列出远程技能" class="headerlink" title="149 · ListRemoteSkills — 列出远程技能"></a>149 · ListRemoteSkills — 列出远程技能</h3><p><strong>服务</strong>：<code>kimi.gateway.claw.v1.ClawSkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/ListRemoteSkills</code></p><ul><li><strong>API用途</strong>：Claw 技能模块接口：列出远程技能（proto 方法 ClawSkillService.ListRemoteSkills）。</li><li><strong>这接口能干啥（大白话）</strong>：Claw 技能：列出远程技能（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListRemoteSkillsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>botId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.claw.v1.ClawSkillService/ListRemoteSkills</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.claw.v1.ListRemoteSkillsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skills</code></td><td>repeated</td></tr><tr><td><code>skillJobs</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="配置-·-kimi-gateway-config-v1-ConfigService（3-个方法）"><a href="#配置-·-kimi-gateway-config-v1-ConfigService（3-个方法）" class="headerlink" title="配置 · kimi.gateway.config.v1.ConfigService（3 个方法）"></a>配置 · <code>kimi.gateway.config.v1.ConfigService</code>（3 个方法）</h2><h3 id="150-·-GetAvailableModels-—-获取可用模型"><a href="#150-·-GetAvailableModels-—-获取可用模型" class="headerlink" title="150 · GetAvailableModels — 获取可用模型"></a>150 · GetAvailableModels — 获取可用模型</h3><p><strong>服务</strong>：<code>kimi.gateway.config.v1.ConfigService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetAvailableModels</code></p><ul><li><strong>API用途</strong>：配置模块接口：获取可用模型（proto 方法 ConfigService.GetAvailableModels）。</li><li><strong>这接口能干啥（大白话）</strong>：配置：查看可用模型。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetAvailableModelsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>scene</code></td><td>enum <code>Scene</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scene</code>：<code>SCENE_UNSPECIFIED</code>、<code>SCENE_KIMI_WORK</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetAvailableModels</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetAvailableModelsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>defaultScenario</code></td><td>message <code>DefaultScenarioConfig</code></td></tr><tr><td><code>availableModels</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="151-·-GetConfig-—-获取配置"><a href="#151-·-GetConfig-—-获取配置" class="headerlink" title="151 · GetConfig — 获取配置"></a>151 · GetConfig — 获取配置</h3><p><strong>服务</strong>：<code>kimi.gateway.config.v1.ConfigService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetConfig</code></p><ul><li><strong>API用途</strong>：配置模块接口：获取配置（proto 方法 ConfigService.GetConfig）。</li><li><strong>这接口能干啥（大白话）</strong>：配置：查看配置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetConfigRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>syncToken</code></td><td>string</td></tr><tr><td><code>source</code></td><td>enum <code>ConfigSource</code></td></tr><tr><td><code>scriptContext</code></td><td>message <code>ScriptConfigContext</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>source</code>：<code>CONFIG_SOURCE_UNSPECIFIED</code>、<code>CONFIG_SOURCE_LEGACY</code>、<code>CONFIG_SOURCE_SCRIPT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetConfig</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetConfigResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>config</code></td><td>message <code>Config</code></td></tr><tr><td><code>syncToken</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="152-·-GetPrecheckConfig-—-获取预检配置"><a href="#152-·-GetPrecheckConfig-—-获取预检配置" class="headerlink" title="152 · GetPrecheckConfig — 获取预检配置"></a>152 · GetPrecheckConfig — 获取预检配置</h3><p><strong>服务</strong>：<code>kimi.gateway.config.v1.ConfigService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetPrecheckConfig</code></p><ul><li><strong>API用途</strong>：配置模块接口：获取预检配置（proto 方法 ConfigService.GetPrecheckConfig）。</li><li><strong>这接口能干啥（大白话）</strong>：配置：查看预检配置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetPrecheckConfigRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>scene</code></td><td>enum <code>Scene</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scene</code>：<code>SCENE_UNSPECIFIED</code>、<code>SCENE_SMS_CODE_SEND</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.config.v1.ConfigService/GetPrecheckConfig</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetPrecheckConfigResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>captcha</code></td><td>message <code>CaptchaConfig</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="设备-·-kimi-gateway-device-v1-DeviceService（3-个方法）"><a href="#设备-·-kimi-gateway-device-v1-DeviceService（3-个方法）" class="headerlink" title="设备 · kimi.gateway.device.v1.DeviceService（3 个方法）"></a>设备 · <code>kimi.gateway.device.v1.DeviceService</code>（3 个方法）</h2><h3 id="153-·-CountDevices-—-统计设备"><a href="#153-·-CountDevices-—-统计设备" class="headerlink" title="153 · CountDevices — 统计设备"></a>153 · CountDevices — 统计设备</h3><p><strong>服务</strong>：<code>kimi.gateway.device.v1.DeviceService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/CountDevices</code></p><ul><li><strong>API用途</strong>：设备模块接口：统计设备（proto 方法 DeviceService.CountDevices）。</li><li><strong>这接口能干啥（大白话）</strong>：设备：统计设备。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.CountDevicesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/CountDevices</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.CountDevicesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>count</code></td><td>int32</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="154-·-DeleteDevice-—-删除设备"><a href="#154-·-DeleteDevice-—-删除设备" class="headerlink" title="154 · DeleteDevice — 删除设备"></a>154 · DeleteDevice — 删除设备</h3><p><strong>服务</strong>：<code>kimi.gateway.device.v1.DeviceService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/DeleteDevice</code></p><ul><li><strong>API用途</strong>：设备模块接口：删除设备（proto 方法 DeviceService.DeleteDevice）。</li><li><strong>这接口能干啥（大白话）</strong>：设备：删除设备。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.DeleteDeviceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/DeleteDevice</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.DeleteDeviceResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="155-·-ListDevices-—-列出设备"><a href="#155-·-ListDevices-—-列出设备" class="headerlink" title="155 · ListDevices — 列出设备"></a>155 · ListDevices — 列出设备</h3><p><strong>服务</strong>：<code>kimi.gateway.device.v1.DeviceService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/ListDevices</code></p><ul><li><strong>API用途</strong>：设备模块接口：列出设备（proto 方法 DeviceService.ListDevices）。</li><li><strong>这接口能干啥（大白话）</strong>：设备：列出设备（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.ListDevicesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.device.v1.DeviceService/ListDevices</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.device.v1.ListDevicesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>devices</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="实验-·-kimi-gateway-experiment-v1-ExperimentService（1-个方法）"><a href="#实验-·-kimi-gateway-experiment-v1-ExperimentService（1-个方法）" class="headerlink" title="实验 · kimi.gateway.experiment.v1.ExperimentService（1 个方法）"></a>实验 · <code>kimi.gateway.experiment.v1.ExperimentService</code>（1 个方法）</h2><h3 id="156-·-GetExperiments-—-获取实验开关"><a href="#156-·-GetExperiments-—-获取实验开关" class="headerlink" title="156 · GetExperiments — 获取实验开关"></a>156 · GetExperiments — 获取实验开关</h3><p><strong>服务</strong>：<code>kimi.gateway.experiment.v1.ExperimentService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.experiment.v1.ExperimentService/GetExperiments</code></p><ul><li><strong>API用途</strong>：实验模块接口：获取实验开关（proto 方法 ExperimentService.GetExperiments）。</li><li><strong>这接口能干啥（大白话）</strong>：实验：查看实验开关。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.experiment.v1.GetExperimentsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>withImpression</code></td><td>bool</td></tr><tr><td><code>experimentNames</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.experiment.v1.ExperimentService/GetExperiments</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.experiment.v1.GetExperimentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>results</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="信息流-·-kimi-gateway-feed-v1-FeedService（1-个方法）"><a href="#信息流-·-kimi-gateway-feed-v1-FeedService（1-个方法）" class="headerlink" title="信息流 · kimi.gateway.feed.v1.FeedService（1 个方法）"></a>信息流 · <code>kimi.gateway.feed.v1.FeedService</code>（1 个方法）</h2><h3 id="157-·-ListFeeds-—-列出信息流"><a href="#157-·-ListFeeds-—-列出信息流" class="headerlink" title="157 · ListFeeds — 列出信息流"></a>157 · ListFeeds — 列出信息流</h3><p><strong>服务</strong>：<code>kimi.gateway.feed.v1.FeedService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.feed.v1.FeedService/ListFeeds</code></p><ul><li><strong>API用途</strong>：信息流模块接口：列出信息流（proto 方法 FeedService.ListFeeds）。</li><li><strong>这接口能干啥（大白话）</strong>：社区信息流：列出信息流（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.feed.v1.ListFeedsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>projectId</code></td><td>string</td></tr><tr><td><code>unread</code></td><td>bool</td></tr><tr><td><code>includePinned</code></td><td>bool</td></tr><tr><td><code>filterTypes</code></td><td>repeated</td></tr><tr><td><code>filterTypesValue</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.feed.v1.FeedService/ListFeeds</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.feed.v1.ListFeedsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>items</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="凭证签发-·-kimi-gateway-issuance-v1-IssuanceService（1-个方法）"><a href="#凭证签发-·-kimi-gateway-issuance-v1-IssuanceService（1-个方法）" class="headerlink" title="凭证签发 · kimi.gateway.issuance.v1.IssuanceService（1 个方法）"></a>凭证签发 · <code>kimi.gateway.issuance.v1.IssuanceService</code>（1 个方法）</h2><h3 id="158-·-GetCredential-—-获取凭证"><a href="#158-·-GetCredential-—-获取凭证" class="headerlink" title="158 · GetCredential — 获取凭证"></a>158 · GetCredential — 获取凭证</h3><p><strong>服务</strong>：<code>kimi.gateway.issuance.v1.IssuanceService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.issuance.v1.IssuanceService/GetCredential</code></p><ul><li><strong>API用途</strong>：凭证签发模块接口：获取凭证（proto 方法 IssuanceService.GetCredential）。</li><li><strong>这接口能干啥（大白话）</strong>：凭证：查看凭证。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.issuance.v1.GetCredentialRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>service</code></td><td>enum <code>Service</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>service</code>：<code>SERVICE_UNSPECIFIED</code>、<code>SERVICE_ASR</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.issuance.v1.IssuanceService/GetCredential</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.issuance.v1.GetCredentialResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>credential</code></td><td>message <code>Credential</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="MCP-OAuth-·-kimi-gateway-mcp-v1-MCPOAuthService（2-个方法）"><a href="#MCP-OAuth-·-kimi-gateway-mcp-v1-MCPOAuthService（2-个方法）" class="headerlink" title="MCP OAuth · kimi.gateway.mcp.v1.MCPOAuthService（2 个方法）"></a>MCP OAuth · <code>kimi.gateway.mcp.v1.MCPOAuthService</code>（2 个方法）</h2><h3 id="159-·-CreateMCPServerAuthorization-—-创建MCP-服务端授权"><a href="#159-·-CreateMCPServerAuthorization-—-创建MCP-服务端授权" class="headerlink" title="159 · CreateMCPServerAuthorization — 创建MCP 服务端授权"></a>159 · CreateMCPServerAuthorization — 创建MCP 服务端授权</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.MCPOAuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPOAuthService/CreateMCPServerAuthorization</code></p><ul><li><strong>API用途</strong>：MCP OAuth模块接口：创建MCP 服务端授权（proto 方法 MCPOAuthService.CreateMCPServerAuthorization）。</li><li><strong>这接口能干啥（大白话）</strong>：MCP 授权：新建MCP 服务端授权。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.CreateMCPServerAuthorizationRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>serverId</code></td><td>string</td></tr><tr><td><code>redirectUri</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPOAuthService/CreateMCPServerAuthorization</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.CreateMCPServerAuthorizationResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>authorization</code></td><td>message <code>MCPServerAuthorization</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="160-·-GetMCPServerAuthorization-—-获取MCP-服务端授权"><a href="#160-·-GetMCPServerAuthorization-—-获取MCP-服务端授权" class="headerlink" title="160 · GetMCPServerAuthorization — 获取MCP 服务端授权"></a>160 · GetMCPServerAuthorization — 获取MCP 服务端授权</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.MCPOAuthService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPOAuthService/GetMCPServerAuthorization</code></p><ul><li><strong>API用途</strong>：MCP OAuth模块接口：获取MCP 服务端授权（proto 方法 MCPOAuthService.GetMCPServerAuthorization）。</li><li><strong>这接口能干啥（大白话）</strong>：MCP 授权：查看MCP 服务端授权。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetMCPServerAuthorizationRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>requestId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPOAuthService/GetMCPServerAuthorization</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetMCPServerAuthorizationResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>authorization</code></td><td>message <code>MCPServerAuthorization</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="MCP-·-kimi-gateway-mcp-v1-MCPService（1-个方法）"><a href="#MCP-·-kimi-gateway-mcp-v1-MCPService（1-个方法）" class="headerlink" title="MCP · kimi.gateway.mcp.v1.MCPService（1 个方法）"></a>MCP · <code>kimi.gateway.mcp.v1.MCPService</code>（1 个方法）</h2><h3 id="161-·-SetMCPUserSettingStatus-—-设置MCP-授权状态"><a href="#161-·-SetMCPUserSettingStatus-—-设置MCP-授权状态" class="headerlink" title="161 · SetMCPUserSettingStatus — 设置MCP 授权状态"></a>161 · SetMCPUserSettingStatus — 设置MCP 授权状态</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.MCPService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPService/SetMCPUserSettingStatus</code></p><ul><li><strong>API用途</strong>：MCP模块接口：设置MCP 授权状态（proto 方法 MCPService.SetMCPUserSettingStatus）。</li><li><strong>这接口能干啥（大白话）</strong>：MCP：设置MCP 授权状态。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.SetMCPUserSettingStatusRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>enable</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.MCPService/SetMCPUserSettingStatus</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.SetMCPUserSettingStatusResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="OKC-产物-·-kimi-gateway-mcp-v1-OKCService（9-个方法）"><a href="#OKC-产物-·-kimi-gateway-mcp-v1-OKCService（9-个方法）" class="headerlink" title="OKC&#x2F;产物 · kimi.gateway.mcp.v1.OKCService（9 个方法）"></a>OKC&#x2F;产物 · <code>kimi.gateway.mcp.v1.OKCService</code>（9 个方法）</h2><h3 id="162-·-GetCitationsByChat-—-获取会话引用"><a href="#162-·-GetCitationsByChat-—-获取会话引用" class="headerlink" title="162 · GetCitationsByChat — 获取会话引用"></a>162 · GetCitationsByChat — 获取会话引用</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetCitationsByChat</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：获取会话引用（proto 方法 OKCService.GetCitationsByChat）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：查看会话引用。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetCitationsByChatRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetCitationsByChat</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetCitationsByChatResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>citations</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="163-·-GetDeploymentByChatShare-—-获取分享会话的部署"><a href="#163-·-GetDeploymentByChatShare-—-获取分享会话的部署" class="headerlink" title="163 · GetDeploymentByChatShare — 获取分享会话的部署"></a>163 · GetDeploymentByChatShare — 获取分享会话的部署</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetDeploymentByChatShare</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：获取分享会话的部署（proto 方法 OKCService.GetDeploymentByChatShare）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：查看分享会话的部署。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetDeploymentByChatShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareId</code></td><td>string</td></tr><tr><td><code>version</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetDeploymentByChatShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetDeploymentByChatShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>deployment</code></td><td>message <code>Deployment</code></td></tr><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="164-·-GetManifest-—-获取清单"><a href="#164-·-GetManifest-—-获取清单" class="headerlink" title="164 · GetManifest — 获取清单"></a>164 · GetManifest — 获取清单</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetManifest</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：获取清单（proto 方法 OKCService.GetManifest）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：查看清单。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetManifestRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetManifest</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetManifestResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>manifest</code></td><td>message <code>Manifest</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="165-·-GetOutputFileTree-—-获取产出文件树"><a href="#165-·-GetOutputFileTree-—-获取产出文件树" class="headerlink" title="165 · GetOutputFileTree — 获取产出文件树"></a>165 · GetOutputFileTree — 获取产出文件树</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetOutputFileTree</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：获取产出文件树（proto 方法 OKCService.GetOutputFileTree）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：查看产出文件树。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetOutputFileTreeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>chatShareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetOutputFileTree</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetOutputFileTreeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>root</code></td><td>message <code>FileTreeNode</code></td></tr><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="166-·-GetOutputFileTreeByShare-—-获取分享产出文件树"><a href="#166-·-GetOutputFileTreeByShare-—-获取分享产出文件树" class="headerlink" title="166 · GetOutputFileTreeByShare — 获取分享产出文件树"></a>166 · GetOutputFileTreeByShare — 获取分享产出文件树</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetOutputFileTreeByShare</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：获取分享产出文件树（proto 方法 OKCService.GetOutputFileTreeByShare）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：查看分享产出文件树。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetOutputFileTreeByShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/GetOutputFileTreeByShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.GetOutputFileTreeByShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>root</code></td><td>message <code>FileTreeNode</code></td></tr><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="167-·-PublishDeployment-—-发布部署"><a href="#167-·-PublishDeployment-—-发布部署" class="headerlink" title="167 · PublishDeployment — 发布部署"></a>167 · PublishDeployment — 发布部署</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/PublishDeployment</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：发布部署（proto 方法 OKCService.PublishDeployment）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：发布部署。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.PublishDeploymentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>version</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/PublishDeployment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.PublishDeploymentResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>url</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="168-·-ResolveFileURI-—-调用文件-URI"><a href="#168-·-ResolveFileURI-—-调用文件-URI" class="headerlink" title="168 · ResolveFileURI — 调用文件 URI"></a>168 · ResolveFileURI — 调用文件 URI</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/ResolveFileURI</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：调用文件 URI（proto 方法 OKCService.ResolveFileURI）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：解析文件 URI。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.ResolveFileURIRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>fileUri</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/ResolveFileURI</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.ResolveFileURIResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="169-·-ResolveFileURIByShare-—-调用分享文件-URI"><a href="#169-·-ResolveFileURIByShare-—-调用分享文件-URI" class="headerlink" title="169 · ResolveFileURIByShare — 调用分享文件 URI"></a>169 · ResolveFileURIByShare — 调用分享文件 URI</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/ResolveFileURIByShare</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：调用分享文件 URI（proto 方法 OKCService.ResolveFileURIByShare）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：解析分享的文件 URI。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.ResolveFileURIByShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatShareId</code></td><td>string</td></tr><tr><td><code>fileUri</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/ResolveFileURIByShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.ResolveFileURIByShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="170-·-UnpublishDeployment-—-取消发布部署"><a href="#170-·-UnpublishDeployment-—-取消发布部署" class="headerlink" title="170 · UnpublishDeployment — 取消发布部署"></a>170 · UnpublishDeployment — 取消发布部署</h3><p><strong>服务</strong>：<code>kimi.gateway.mcp.v1.OKCService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/UnpublishDeployment</code></p><ul><li><strong>API用途</strong>：OKC&#x2F;产物模块接口：取消发布部署（proto 方法 OKCService.UnpublishDeployment）。</li><li><strong>这接口能干啥（大白话）</strong>：OKC 产物：下线部署。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.UnpublishDeploymentRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.mcp.v1.OKCService/UnpublishDeployment</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.UnpublishDeploymentResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="会员-·-kimi-gateway-membership-v2-MembershipService（5-个方法）"><a href="#会员-·-kimi-gateway-membership-v2-MembershipService（5-个方法）" class="headerlink" title="会员 · kimi.gateway.membership.v2.MembershipService（5 个方法）"></a>会员 · <code>kimi.gateway.membership.v2.MembershipService</code>（5 个方法）</h2><h3 id="171-·-ClaimEventBalance-—-领取事件余额"><a href="#171-·-ClaimEventBalance-—-领取事件余额" class="headerlink" title="171 · ClaimEventBalance — 领取事件余额"></a>171 · ClaimEventBalance — 领取事件余额</h3><p><strong>服务</strong>：<code>kimi.gateway.membership.v2.MembershipService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/ClaimEventBalance</code></p><ul><li><strong>API用途</strong>：会员模块接口：领取事件余额（proto 方法 MembershipService.ClaimEventBalance）。</li><li><strong>这接口能干啥（大白话）</strong>：会员：领取事件余额。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.ClaimEventBalanceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>eventId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/ClaimEventBalance</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.ClaimEventBalanceResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="172-·-GetBalanceEventInfo-—-获取余额事件详情"><a href="#172-·-GetBalanceEventInfo-—-获取余额事件详情" class="headerlink" title="172 · GetBalanceEventInfo — 获取余额事件详情"></a>172 · GetBalanceEventInfo — 获取余额事件详情</h3><p><strong>服务</strong>：<code>kimi.gateway.membership.v2.MembershipService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetBalanceEventInfo</code></p><ul><li><strong>API用途</strong>：会员模块接口：获取余额事件详情（proto 方法 MembershipService.GetBalanceEventInfo）。</li><li><strong>这接口能干啥（大白话）</strong>：会员：查看余额事件详情。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetBalanceEventInfoRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>eventId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetBalanceEventInfo</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetBalanceEventInfoResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>eventId</code></td><td>string</td></tr><tr><td><code>subscriptionId</code></td><td>string</td></tr><tr><td><code>eventTitle</code></td><td>string</td></tr><tr><td><code>eventDesc</code></td><td>string</td></tr><tr><td><code>eventImgUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="173-·-GetSubscription-—-获取订阅"><a href="#173-·-GetSubscription-—-获取订阅" class="headerlink" title="173 · GetSubscription — 获取订阅"></a>173 · GetSubscription — 获取订阅</h3><p><strong>服务</strong>：<code>kimi.gateway.membership.v2.MembershipService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetSubscription</code></p><ul><li><strong>API用途</strong>：会员模块接口：获取订阅（proto 方法 MembershipService.GetSubscription）。</li><li><strong>这接口能干啥（大白话）</strong>：会员：查看订阅。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>domain</code></td><td>enum <code>Domain</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>domain</code>：<code>DOMAIN_UNSPECIFIED</code>、<code>DOMAIN_CODE</code>、<code>DOMAIN_KIMI</code>、<code>DOMAIN_NEXUS</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetSubscription</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>subscription</code></td><td>message <code>Subscription</code></td></tr><tr><td><code>nextSubscription</code></td><td>message <code>Subscription</code></td></tr><tr><td><code>bonus</code></td><td>message <code>Duration</code></td></tr><tr><td><code>bonusGoodsTitle</code></td><td>string</td></tr><tr><td><code>highestLevel</code></td><td>bool</td></tr><tr><td><code>usingBonus</code></td><td>bool</td></tr><tr><td><code>subscribed</code></td><td>bool</td></tr><tr><td><code>purchaseSubscription</code></td><td>message <code>Subscription</code></td></tr><tr><td><code>purchaseExpireSeconds</code></td><td>int32</td></tr><tr><td><code>purchaseExpireTime</code></td><td>string</td></tr><tr><td><code>balances</code></td><td>repeated</td></tr><tr><td><code>capabilities</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="174-·-GetSubscriptionStats-—-获取订阅统计"><a href="#174-·-GetSubscriptionStats-—-获取订阅统计" class="headerlink" title="174 · GetSubscriptionStats — 获取订阅统计"></a>174 · GetSubscriptionStats — 获取订阅统计</h3><p><strong>服务</strong>：<code>kimi.gateway.membership.v2.MembershipService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetSubscriptionStats</code></p><ul><li><strong>API用途</strong>：会员模块接口：获取订阅统计（proto 方法 MembershipService.GetSubscriptionStats）。</li><li><strong>这接口能干啥（大白话）</strong>：会员：查看订阅统计。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionStatsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>domain</code></td><td>enum <code>Domain</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>domain</code>：<code>DOMAIN_UNSPECIFIED</code>、<code>DOMAIN_CODE</code>、<code>DOMAIN_KIMI</code>、<code>DOMAIN_NEXUS</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/GetSubscriptionStats</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionStatsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>ratelimit5h</code></td><td>message <code>RateLimitStat</code></td></tr><tr><td><code>ratelimitCode5h</code></td><td>message <code>RateLimitStat</code></td></tr><tr><td><code>ratelimit7d</code></td><td>message <code>RateLimitStat</code></td></tr><tr><td><code>ratelimitCode7d</code></td><td>message <code>RateLimitStat</code></td></tr><tr><td><code>subscriptionBalance</code></td><td>message <code>Balance</code></td></tr><tr><td><code>notice</code></td><td>message <code>Notice</code></td></tr><tr><td><code>overdrawn</code></td><td>bool</td></tr><tr><td><code>eventId</code></td><td>string</td></tr><tr><td><code>giftBalances</code></td><td>repeated</td></tr><tr><td><code>boosterWallets</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="175-·-ListBalanceActions-—-列出余额事件"><a href="#175-·-ListBalanceActions-—-列出余额事件" class="headerlink" title="175 · ListBalanceActions — 列出余额事件"></a>175 · ListBalanceActions — 列出余额事件</h3><p><strong>服务</strong>：<code>kimi.gateway.membership.v2.MembershipService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/ListBalanceActions</code></p><ul><li><strong>API用途</strong>：会员模块接口：列出余额事件（proto 方法 MembershipService.ListBalanceActions）。</li><li><strong>这接口能干啥（大白话）</strong>：会员：列出余额事件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.ListBalanceActionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>filter</code></td><td>message <code>Filter</code></td></tr><tr><td><code>domain</code></td><td>enum <code>Domain</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>domain</code>：<code>DOMAIN_UNSPECIFIED</code>、<code>DOMAIN_CODE</code>、<code>DOMAIN_KIMI</code>、<code>DOMAIN_NEXUS</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.membership.v2.MembershipService/ListBalanceActions</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.membership.v2.ListBalanceActionsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>actions</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="长期记忆-·-kimi-gateway-memory-v1-MemoryService（2-个方法）"><a href="#长期记忆-·-kimi-gateway-memory-v1-MemoryService（2-个方法）" class="headerlink" title="长期记忆 · kimi.gateway.memory.v1.MemoryService（2 个方法）"></a>长期记忆 · <code>kimi.gateway.memory.v1.MemoryService</code>（2 个方法）</h2><h3 id="176-·-DeleteMemory-—-删除记忆"><a href="#176-·-DeleteMemory-—-删除记忆" class="headerlink" title="176 · DeleteMemory — 删除记忆"></a>176 · DeleteMemory — 删除记忆</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.MemoryService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.MemoryService/DeleteMemory</code></p><ul><li><strong>API用途</strong>：长期记忆模块接口：删除记忆（proto 方法 MemoryService.DeleteMemory）。</li><li><strong>这接口能干啥（大白话）</strong>：长期记忆：删除记忆。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.DeleteMemoryRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>memoryId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.MemoryService/DeleteMemory</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.DeleteMemoryResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="177-·-ListMemories-—-列出长期记忆"><a href="#177-·-ListMemories-—-列出长期记忆" class="headerlink" title="177 · ListMemories — 列出长期记忆"></a>177 · ListMemories — 列出长期记忆</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.MemoryService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.MemoryService/ListMemories</code></p><ul><li><strong>API用途</strong>：长期记忆模块接口：列出长期记忆（proto 方法 MemoryService.ListMemories）。</li><li><strong>这接口能干啥（大白话）</strong>：长期记忆：列出长期记忆（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.ListMemoriesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.MemoryService/ListMemories</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.ListMemoriesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>totalCount</code></td><td>int32</td></tr><tr><td><code>memoryLimit</code></td><td>int32</td></tr><tr><td><code>memories</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="记忆仓库-·-kimi-gateway-memory-v1-VaultService（4-个方法）"><a href="#记忆仓库-·-kimi-gateway-memory-v1-VaultService（4-个方法）" class="headerlink" title="记忆仓库 · kimi.gateway.memory.v1.VaultService（4 个方法）"></a>记忆仓库 · <code>kimi.gateway.memory.v1.VaultService</code>（4 个方法）</h2><h3 id="178-·-GetDreamStatus-—-获取梦境状态"><a href="#178-·-GetDreamStatus-—-获取梦境状态" class="headerlink" title="178 · GetDreamStatus — 获取梦境状态"></a>178 · GetDreamStatus — 获取梦境状态</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.VaultService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetDreamStatus</code></p><ul><li><strong>API用途</strong>：记忆仓库模块接口：获取梦境状态（proto 方法 VaultService.GetDreamStatus）。</li><li><strong>这接口能干啥（大白话）</strong>：记忆仓库：查看梦境状态。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetDreamStatusRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetDreamStatus</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetDreamStatusResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>dreamVault</code></td><td>message <code>DreamVaultState</code></td></tr><tr><td><code>featureAvailable</code></td><td>bool</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="179-·-GetVaultPage-—-获取仓库页"><a href="#179-·-GetVaultPage-—-获取仓库页" class="headerlink" title="179 · GetVaultPage — 获取仓库页"></a>179 · GetVaultPage — 获取仓库页</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.VaultService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetVaultPage</code></p><ul><li><strong>API用途</strong>：记忆仓库模块接口：获取仓库页（proto 方法 VaultService.GetVaultPage）。</li><li><strong>这接口能干啥（大白话）</strong>：记忆仓库：查看仓库页。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetVaultPageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>sandboxUri</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetVaultPage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetVaultPageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>markdown</code></td><td>string</td></tr><tr><td><code>outgoingLinks</code></td><td>repeated</td></tr><tr><td><code>backlinks</code></td><td>repeated</td></tr><tr><td><code>citations</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="180-·-GetVaultTree-—-获取仓库树"><a href="#180-·-GetVaultTree-—-获取仓库树" class="headerlink" title="180 · GetVaultTree — 获取仓库树"></a>180 · GetVaultTree — 获取仓库树</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.VaultService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetVaultTree</code></p><ul><li><strong>API用途</strong>：记忆仓库模块接口：获取仓库树（proto 方法 VaultService.GetVaultTree）。</li><li><strong>这接口能干啥（大白话）</strong>：记忆仓库：查看仓库树。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetVaultTreeRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/GetVaultTree</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.GetVaultTreeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>root</code></td><td>message <code>FileTreeNode</code></td></tr><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="181-·-ResetDreamVault-—-重置梦境仓库"><a href="#181-·-ResetDreamVault-—-重置梦境仓库" class="headerlink" title="181 · ResetDreamVault — 重置梦境仓库"></a>181 · ResetDreamVault — 重置梦境仓库</h3><p><strong>服务</strong>：<code>kimi.gateway.memory.v1.VaultService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/ResetDreamVault</code></p><ul><li><strong>API用途</strong>：记忆仓库模块接口：重置梦境仓库（proto 方法 VaultService.ResetDreamVault）。</li><li><strong>这接口能干啥（大白话）</strong>：记忆仓库：重置梦境仓库。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.ResetDreamVaultRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.memory.v1.VaultService/ResetDreamVault</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.memory.v1.ResetDreamVaultResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="杂项-·-kimi-gateway-misc-v1-MiscService（1-个方法）"><a href="#杂项-·-kimi-gateway-misc-v1-MiscService（1-个方法）" class="headerlink" title="杂项 · kimi.gateway.misc.v1.MiscService（1 个方法）"></a>杂项 · <code>kimi.gateway.misc.v1.MiscService</code>（1 个方法）</h2><h3 id="182-·-GetDataSourceLocalizedInfo-—-获取数据源本地化信息"><a href="#182-·-GetDataSourceLocalizedInfo-—-获取数据源本地化信息" class="headerlink" title="182 · GetDataSourceLocalizedInfo — 获取数据源本地化信息"></a>182 · GetDataSourceLocalizedInfo — 获取数据源本地化信息</h3><p><strong>服务</strong>：<code>kimi.gateway.misc.v1.MiscService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.misc.v1.MiscService/GetDataSourceLocalizedInfo</code></p><ul><li><strong>API用途</strong>：杂项模块接口：获取数据源本地化信息（proto 方法 MiscService.GetDataSourceLocalizedInfo）。</li><li><strong>这接口能干啥（大白话）</strong>：杂项：查看数据源本地化信息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.misc.v1.GetDataSourceLocalizedInfoRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.misc.v1.MiscService/GetDataSourceLocalizedInfo</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.misc.v1.GetDataSourceLocalizedInfoResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>infos</code></td><td>map</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="通知-·-kimi-gateway-notification-v1-NotificationService（2-个方法）"><a href="#通知-·-kimi-gateway-notification-v1-NotificationService（2-个方法）" class="headerlink" title="通知 · kimi.gateway.notification.v1.NotificationService（2 个方法）"></a>通知 · <code>kimi.gateway.notification.v1.NotificationService</code>（2 个方法）</h2><h3 id="183-·-ListUserNotifications-—-列出用户通知"><a href="#183-·-ListUserNotifications-—-列出用户通知" class="headerlink" title="183 · ListUserNotifications — 列出用户通知"></a>183 · ListUserNotifications — 列出用户通知</h3><p><strong>服务</strong>：<code>kimi.gateway.notification.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.notification.v1.NotificationService/ListUserNotifications</code></p><ul><li><strong>API用途</strong>：通知模块接口：列出用户通知（proto 方法 NotificationService.ListUserNotifications）。</li><li><strong>这接口能干啥（大白话）</strong>：社区通知：列出用户通知（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.notification.v1.ListUserNotificationsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>unread</code></td><td>bool</td></tr><tr><td><code>hide</code></td><td>bool</td></tr><tr><td><code>types</code></td><td>repeated</td></tr><tr><td><code>typesValue</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.notification.v1.NotificationService/ListUserNotifications</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.notification.v1.ListUserNotificationsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>unreadCount</code></td><td>int32</td></tr><tr><td><code>userNotifications</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="184-·-MarkNotificationsRead-—-调用通知已读标记"><a href="#184-·-MarkNotificationsRead-—-调用通知已读标记" class="headerlink" title="184 · MarkNotificationsRead — 调用通知已读标记"></a>184 · MarkNotificationsRead — 调用通知已读标记</h3><p><strong>服务</strong>：<code>kimi.gateway.notification.v1.NotificationService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.notification.v1.NotificationService/MarkNotificationsRead</code></p><ul><li><strong>API用途</strong>：通知模块接口：调用通知已读标记（proto 方法 NotificationService.MarkNotificationsRead）。</li><li><strong>这接口能干啥（大白话）</strong>：社区通知：调用 通知已读标记。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.notification.v1.MarkNotificationsReadRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>all</code></td><td>bool</td></tr><tr><td><code>ids</code></td><td>repeated</td></tr><tr><td><code>types</code></td><td>repeated</td></tr><tr><td><code>typesValue</code></td><td>repeated</td></tr><tr><td><code>extras</code></td><td>map</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.notification.v1.NotificationService/MarkNotificationsRead</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.notification.v1.MarkNotificationsReadResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>markedCount</code></td><td>int32</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="商品-·-kimi-gateway-order-v1-GoodsService（1-个方法）"><a href="#商品-·-kimi-gateway-order-v1-GoodsService（1-个方法）" class="headerlink" title="商品 · kimi.gateway.order.v1.GoodsService（1 个方法）"></a>商品 · <code>kimi.gateway.order.v1.GoodsService</code>（1 个方法）</h2><h3 id="185-·-ListGoods-—-列出商品"><a href="#185-·-ListGoods-—-列出商品" class="headerlink" title="185 · ListGoods — 列出商品"></a>185 · ListGoods — 列出商品</h3><p><strong>服务</strong>：<code>kimi.gateway.order.v1.GoodsService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.order.v1.GoodsService/ListGoods</code></p><ul><li><strong>API用途</strong>：商品模块接口：列出商品（proto 方法 GoodsService.ListGoods）。</li><li><strong>这接口能干啥（大白话）</strong>：商品：列出商品（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.ListGoodsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>discountId</code></td><td>string</td></tr><tr><td><code>paymentChannel</code></td><td>enum <code>PaymentChannel</code></td></tr><tr><td><code>domains</code></td><td>repeated</td></tr><tr><td><code>domainsValue</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>paymentChannel</code>：<code>PAYMENT_CHANNEL_UNSPECIFIED</code>、<code>PAYMENT_CHANNEL_AIRWALLEX</code>、<code>PAYMENT_CHANNEL_ALIPAY</code>、<code>PAYMENT_CHANNEL_APPLE</code>、<code>PAYMENT_CHANNEL_GOOGLE_PLAY</code>、<code>PAYMENT_CHANNEL_PAYERMAX</code>、<code>PAYMENT_CHANNEL_STRIPE</code>、<code>PAYMENT_CHANNEL_WECHAT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.order.v1.GoodsService/ListGoods</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.ListGoodsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>recommendChannel</code></td><td>enum <code>PaymentChannel</code></td></tr><tr><td><code>goods</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>recommendChannel</code>：<code>PAYMENT_CHANNEL_UNSPECIFIED</code>、<code>PAYMENT_CHANNEL_AIRWALLEX</code>、<code>PAYMENT_CHANNEL_ALIPAY</code>、<code>PAYMENT_CHANNEL_APPLE</code>、<code>PAYMENT_CHANNEL_GOOGLE_PLAY</code>、<code>PAYMENT_CHANNEL_PAYERMAX</code>、<code>PAYMENT_CHANNEL_STRIPE</code>、<code>PAYMENT_CHANNEL_WECHAT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="订阅-·-kimi-gateway-order-v1-SubscriptionService（4-个方法）"><a href="#订阅-·-kimi-gateway-order-v1-SubscriptionService（4-个方法）" class="headerlink" title="订阅 · kimi.gateway.order.v1.SubscriptionService（4 个方法）"></a>订阅 · <code>kimi.gateway.order.v1.SubscriptionService</code>（4 个方法）</h2><h3 id="186-·-CreateSubscription-—-创建订阅"><a href="#186-·-CreateSubscription-—-创建订阅" class="headerlink" title="186 · CreateSubscription — 创建订阅"></a>186 · CreateSubscription — 创建订阅</h3><p><strong>服务</strong>：<code>kimi.gateway.order.v1.SubscriptionService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/CreateSubscription</code></p><ul><li><strong>API用途</strong>：订阅模块接口：创建订阅（proto 方法 SubscriptionService.CreateSubscription）。</li><li><strong>这接口能干啥（大白话）</strong>：订阅：新建订阅。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.CreateSubscriptionRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>goodsId</code></td><td>string</td></tr><tr><td><code>subscriptionAction</code></td><td>enum <code>SubscriptionAction</code></td></tr><tr><td><code>paymentChannel</code></td><td>enum <code>PaymentChannel</code></td></tr><tr><td><code>discountId</code></td><td>string</td></tr><tr><td><code>trackingMsg</code></td><td>string</td></tr><tr><td><code>domain</code></td><td>enum <code>Domain</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>subscriptionAction</code>：<code>SUBSCRIPTION_ACTION_UNSPECIFIED</code>、<code>SUBSCRIPTION_ACTION_CREATE</code>、<code>SUBSCRIPTION_ACTION_DOWNGRADE</code>、<code>SUBSCRIPTION_ACTION_RESUME</code>、<code>SUBSCRIPTION_ACTION_UPGRADE</code></li><li><code>paymentChannel</code>：<code>PAYMENT_CHANNEL_UNSPECIFIED</code>、<code>PAYMENT_CHANNEL_AIRWALLEX</code>、<code>PAYMENT_CHANNEL_ALIPAY</code>、<code>PAYMENT_CHANNEL_APPLE</code>、<code>PAYMENT_CHANNEL_GOOGLE_PLAY</code>、<code>PAYMENT_CHANNEL_PAYERMAX</code>、<code>PAYMENT_CHANNEL_STRIPE</code>、<code>PAYMENT_CHANNEL_WECHAT</code></li><li><code>domain</code>：<code>DOMAIN_UNSPECIFIED</code>、<code>DOMAIN_CODE</code>、<code>DOMAIN_KIMI</code>、<code>DOMAIN_NEXUS</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/CreateSubscription</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.CreateSubscriptionResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>subscription</code></td><td>message <code>Subscription</code></td></tr><tr><td><code>redirectUrl</code></td><td>string</td></tr><tr><td><code>orderId</code></td><td>string</td></tr><tr><td><code>wechatPassthroughParams</code></td><td>message <code>WechatPassthroughParams</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="187-·-GetDiscountURL-—-获取折扣链接"><a href="#187-·-GetDiscountURL-—-获取折扣链接" class="headerlink" title="187 · GetDiscountURL — 获取折扣链接"></a>187 · GetDiscountURL — 获取折扣链接</h3><p><strong>服务</strong>：<code>kimi.gateway.order.v1.SubscriptionService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/GetDiscountURL</code></p><ul><li><strong>API用途</strong>：订阅模块接口：获取折扣链接（proto 方法 SubscriptionService.GetDiscountURL）。</li><li><strong>这接口能干啥（大白话）</strong>：订阅：查看折扣链接。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.chat.v1.ToolContentGoods</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>goods</code></td><td>message <code>Goods</code></td></tr><tr><td><code>discountId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/GetDiscountURL</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.GetDiscountURLResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>discountUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="188-·-GetPricePoster-—-获取价格海报"><a href="#188-·-GetPricePoster-—-获取价格海报" class="headerlink" title="188 · GetPricePoster — 获取价格海报"></a>188 · GetPricePoster — 获取价格海报</h3><p><strong>服务</strong>：<code>kimi.gateway.order.v1.SubscriptionService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/GetPricePoster</code></p><ul><li><strong>API用途</strong>：订阅模块接口：获取价格海报（proto 方法 SubscriptionService.GetPricePoster）。</li><li><strong>这接口能干啥（大白话）</strong>：订阅：查看价格海报。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.GetPricePosterRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/GetPricePoster</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.GetPricePosterResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pricePoster</code></td><td>map</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="189-·-VeryDiscountUser-—-调用超值折扣用户"><a href="#189-·-VeryDiscountUser-—-调用超值折扣用户" class="headerlink" title="189 · VeryDiscountUser — 调用超值折扣用户"></a>189 · VeryDiscountUser — 调用超值折扣用户</h3><p><strong>服务</strong>：<code>kimi.gateway.order.v1.SubscriptionService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/VeryDiscountUser</code></p><ul><li><strong>API用途</strong>：订阅模块接口：调用超值折扣用户（proto 方法 SubscriptionService.VeryDiscountUser）。</li><li><strong>这接口能干啥（大白话）</strong>：订阅：调用 超值折扣用户。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.VeryDiscountUserRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>discountId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.order.v1.SubscriptionService/VeryDiscountUser</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.order.v1.VeryDiscountUserResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>sameUser</code></td><td>bool</td></tr><tr><td><code>discountUserStatus</code></td><td>enum <code>DiscountUserStatus</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>discountUserStatus</code>：<code>DISCOUNT_USER_STATUS_UNSPECIFIED</code>、<code>DISCOUNT_USER_STATUS_DISCOUNT_BONUS</code>、<code>DISCOUNT_USER_STATUS_DISCOUNT_MEMBER</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="置顶-·-kimi-gateway-pin-v1-PinService（3-个方法）"><a href="#置顶-·-kimi-gateway-pin-v1-PinService（3-个方法）" class="headerlink" title="置顶 · kimi.gateway.pin.v1.PinService（3 个方法）"></a>置顶 · <code>kimi.gateway.pin.v1.PinService</code>（3 个方法）</h2><h3 id="190-·-ListPinResources-—-列出置顶资源"><a href="#190-·-ListPinResources-—-列出置顶资源" class="headerlink" title="190 · ListPinResources — 列出置顶资源"></a>190 · ListPinResources — 列出置顶资源</h3><p><strong>服务</strong>：<code>kimi.gateway.pin.v1.PinService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/ListPinResources</code></p><ul><li><strong>API用途</strong>：置顶模块接口：列出置顶资源（proto 方法 PinService.ListPinResources）。</li><li><strong>这接口能干啥（大白话）</strong>：置顶：列出置顶资源（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.ListPinResourcesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>resourceTypes</code></td><td>repeated</td></tr><tr><td><code>resourceTypesValue</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/ListPinResources</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.ListPinResourcesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>resources</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="191-·-PinResource-—-调用置顶资源"><a href="#191-·-PinResource-—-调用置顶资源" class="headerlink" title="191 · PinResource — 调用置顶资源"></a>191 · PinResource — 调用置顶资源</h3><p><strong>服务</strong>：<code>kimi.gateway.pin.v1.PinService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/PinResource</code></p><ul><li><strong>API用途</strong>：置顶模块接口：调用置顶资源（proto 方法 PinService.PinResource）。</li><li><strong>这接口能干啥（大白话）</strong>：置顶：置顶资源。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.PinResourceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>resourceType</code></td><td>enum <code>PinResourceType</code></td></tr><tr><td><code>resourceId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>resourceType</code>：<code>PIN_RESOURCE_TYPE_UNSPECIFIED</code>、<code>PIN_RESOURCE_TYPE_CHAT</code>、<code>PIN_RESOURCE_TYPE_PROJECT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/PinResource</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.PinResourceResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>resource</code></td><td>message <code>Resource</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="192-·-UnpinResource-—-调用置顶资源"><a href="#192-·-UnpinResource-—-调用置顶资源" class="headerlink" title="192 · UnpinResource — 调用置顶资源"></a>192 · UnpinResource — 调用置顶资源</h3><p><strong>服务</strong>：<code>kimi.gateway.pin.v1.PinService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/UnpinResource</code></p><ul><li><strong>API用途</strong>：置顶模块接口：调用置顶资源（proto 方法 PinService.UnpinResource）。</li><li><strong>这接口能干啥（大白话）</strong>：置顶：取消置顶资源。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.UnpinResourceRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>resourceType</code></td><td>enum <code>PinResourceType</code></td></tr><tr><td><code>resourceId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>resourceType</code>：<code>PIN_RESOURCE_TYPE_UNSPECIFIED</code>、<code>PIN_RESOURCE_TYPE_CHAT</code>、<code>PIN_RESOURCE_TYPE_PROJECT</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.pin.v1.PinService/UnpinResource</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.pin.v1.UnpinResourceResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>resource</code></td><td>message <code>Resource</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="插件-·-kimi-gateway-plugin-v1-PluginService（7-个方法）"><a href="#插件-·-kimi-gateway-plugin-v1-PluginService（7-个方法）" class="headerlink" title="插件 · kimi.gateway.plugin.v1.PluginService（7 个方法）"></a>插件 · <code>kimi.gateway.plugin.v1.PluginService</code>（7 个方法）</h2><h3 id="193-·-GetPlugin-—-获取插件"><a href="#193-·-GetPlugin-—-获取插件" class="headerlink" title="193 · GetPlugin — 获取插件"></a>193 · GetPlugin — 获取插件</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/GetPlugin</code></p><ul><li><strong>API用途</strong>：插件模块接口：获取插件（proto 方法 PluginService.GetPlugin）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：查看插件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.GetPluginRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/GetPlugin</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.GetPluginResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>plugin</code></td><td>message <code>Plugin</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="194-·-InstallPlugin-—-安装插件"><a href="#194-·-InstallPlugin-—-安装插件" class="headerlink" title="194 · InstallPlugin — 安装插件"></a>194 · InstallPlugin — 安装插件</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/InstallPlugin</code></p><ul><li><strong>API用途</strong>：插件模块接口：安装插件（proto 方法 PluginService.InstallPlugin）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：安装插件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.InstallPluginRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/InstallPlugin</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.InstallPluginResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>plugin</code></td><td>message <code>Plugin</code></td></tr><tr><td><code>oauthRequiredMcpSettingIds</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="195-·-ListAvailablePlugins-—-列出可用插件"><a href="#195-·-ListAvailablePlugins-—-列出可用插件" class="headerlink" title="195 · ListAvailablePlugins — 列出可用插件"></a>195 · ListAvailablePlugins — 列出可用插件</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListAvailablePlugins</code></p><ul><li><strong>API用途</strong>：插件模块接口：列出可用插件（proto 方法 PluginService.ListAvailablePlugins）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：列出可用插件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListAvailablePluginsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>categoryId</code></td><td>string</td></tr><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>clientRuntime</code></td><td>message <code>ClientRuntime</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListAvailablePlugins</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListAvailablePluginsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>totalSize</code></td><td>int32</td></tr><tr><td><code>plugins</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="196-·-ListInstalledPlugins-—-列出已安装插件"><a href="#196-·-ListInstalledPlugins-—-列出已安装插件" class="headerlink" title="196 · ListInstalledPlugins — 列出已安装插件"></a>196 · ListInstalledPlugins — 列出已安装插件</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListInstalledPlugins</code></p><ul><li><strong>API用途</strong>：插件模块接口：列出已安装插件（proto 方法 PluginService.ListInstalledPlugins）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：列出已安装插件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListInstalledPluginsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>clientRuntime</code></td><td>message <code>ClientRuntime</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListInstalledPlugins</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListInstalledPluginsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>totalSize</code></td><td>int32</td></tr><tr><td><code>plugins</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="197-·-ListPluginCategories-—-列出插件分类"><a href="#197-·-ListPluginCategories-—-列出插件分类" class="headerlink" title="197 · ListPluginCategories — 列出插件分类"></a>197 · ListPluginCategories — 列出插件分类</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListPluginCategories</code></p><ul><li><strong>API用途</strong>：插件模块接口：列出插件分类（proto 方法 PluginService.ListPluginCategories）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：列出插件分类（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListPluginCategoriesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListPluginCategories</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListPluginCategoriesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>categories</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="198-·-ListPluginSections-—-列出插件分区"><a href="#198-·-ListPluginSections-—-列出插件分区" class="headerlink" title="198 · ListPluginSections — 列出插件分区"></a>198 · ListPluginSections — 列出插件分区</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListPluginSections</code></p><ul><li><strong>API用途</strong>：插件模块接口：列出插件分区（proto 方法 PluginService.ListPluginSections）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：列出插件分区（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListPluginSectionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>clientRuntime</code></td><td>message <code>ClientRuntime</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/ListPluginSections</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.ListPluginSectionsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>installed</code></td><td>message <code>PluginSection</code></td></tr><tr><td><code>sections</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="199-·-UninstallPlugin-—-卸载插件"><a href="#199-·-UninstallPlugin-—-卸载插件" class="headerlink" title="199 · UninstallPlugin — 卸载插件"></a>199 · UninstallPlugin — 卸载插件</h3><p><strong>服务</strong>：<code>kimi.gateway.plugin.v1.PluginService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/UninstallPlugin</code></p><ul><li><strong>API用途</strong>：插件模块接口：卸载插件（proto 方法 PluginService.UninstallPlugin）。</li><li><strong>这接口能干啥（大白话）</strong>：插件：卸载插件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.UninstallPluginRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.plugin.v1.PluginService/UninstallPlugin</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.plugin.v1.UninstallPluginResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="项目-·-kimi-gateway-project-v1-ProjectService（9-个方法）"><a href="#项目-·-kimi-gateway-project-v1-ProjectService（9-个方法）" class="headerlink" title="项目 · kimi.gateway.project.v1.ProjectService（9 个方法）"></a>项目 · <code>kimi.gateway.project.v1.ProjectService</code>（9 个方法）</h2><h3 id="200-·-CreateProject-—-创建项目"><a href="#200-·-CreateProject-—-创建项目" class="headerlink" title="200 · CreateProject — 创建项目"></a>200 · CreateProject — 创建项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/CreateProject</code></p><ul><li><strong>API用途</strong>：项目模块接口：创建项目（proto 方法 ProjectService.CreateProject）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：新建项目。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.CreateProjectRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td></tr><tr><td><code>prompt</code></td><td>string</td></tr><tr><td><code>description</code></td><td>string</td></tr><tr><td><code>iconUrl</code></td><td>string</td></tr><tr><td><code>useMemory</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/CreateProject</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.CreateProjectResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>project</code></td><td>message <code>Project</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="201-·-DeleteProject-—-删除项目"><a href="#201-·-DeleteProject-—-删除项目" class="headerlink" title="201 · DeleteProject — 删除项目"></a>201 · DeleteProject — 删除项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/DeleteProject</code></p><ul><li><strong>API用途</strong>：项目模块接口：删除项目（proto 方法 ProjectService.DeleteProject）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：删除项目。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.DeleteProjectRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/DeleteProject</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.DeleteProjectResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>project</code></td><td>message <code>Project</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="202-·-DeleteProjectFile-—-删除项目文件"><a href="#202-·-DeleteProjectFile-—-删除项目文件" class="headerlink" title="202 · DeleteProjectFile — 删除项目文件"></a>202 · DeleteProjectFile — 删除项目文件</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/DeleteProjectFile</code></p><ul><li><strong>API用途</strong>：项目模块接口：删除项目文件（proto 方法 ProjectService.DeleteProjectFile）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：删除项目文件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.DeleteProjectFileRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr><tr><td><code>path</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/DeleteProjectFile</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="203-·-GetProject-—-获取项目"><a href="#203-·-GetProject-—-获取项目" class="headerlink" title="203 · GetProject — 获取项目"></a>203 · GetProject — 获取项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/GetProject</code></p><ul><li><strong>API用途</strong>：项目模块接口：获取项目（proto 方法 ProjectService.GetProject）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：查看项目。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.GetProjectRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/GetProject</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.GetProjectResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>project</code></td><td>message <code>Project</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="204-·-ListProjectFiles-—-列出项目文件"><a href="#204-·-ListProjectFiles-—-列出项目文件" class="headerlink" title="204 · ListProjectFiles — 列出项目文件"></a>204 · ListProjectFiles — 列出项目文件</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjectFiles</code></p><ul><li><strong>API用途</strong>：项目模块接口：列出项目文件（proto 方法 ProjectService.ListProjectFiles）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：列出项目文件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectFilesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr><tr><td><code>path</code></td><td>string</td></tr><tr><td><code>showHidden</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjectFiles</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectFilesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>info</code></td><td>message <code>FileInfo</code></td></tr><tr><td><code>files</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="205-·-ListProjectUploadFiles-—-列出项目待上传文件"><a href="#205-·-ListProjectUploadFiles-—-列出项目待上传文件" class="headerlink" title="205 · ListProjectUploadFiles — 列出项目待上传文件"></a>205 · ListProjectUploadFiles — 列出项目待上传文件</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjectUploadFiles</code></p><ul><li><strong>API用途</strong>：项目模块接口：列出项目待上传文件（proto 方法 ProjectService.ListProjectUploadFiles）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：列出项目待上传文件（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectUploadFilesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjectUploadFiles</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectUploadFilesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>info</code></td><td>message <code>FileInfo</code></td></tr><tr><td><code>files</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="206-·-ListProjects-—-列出项目"><a href="#206-·-ListProjects-—-列出项目" class="headerlink" title="206 · ListProjects — 列出项目"></a>206 · ListProjects — 列出项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjects</code></p><ul><li><strong>API用途</strong>：项目模块接口：列出项目（proto 方法 ProjectService.ListProjects）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：列出项目（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>includePinned</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/ListProjects</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.ListProjectsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>projectCountUsed</code></td><td>string</td></tr><tr><td><code>projectCountLimit</code></td><td>string</td></tr><tr><td><code>availableCount</code></td><td>string</td></tr><tr><td><code>projects</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="207-·-SetAvailableProjects-—-设置可用项目"><a href="#207-·-SetAvailableProjects-—-设置可用项目" class="headerlink" title="207 · SetAvailableProjects — 设置可用项目"></a>207 · SetAvailableProjects — 设置可用项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/SetAvailableProjects</code></p><ul><li><strong>API用途</strong>：项目模块接口：设置可用项目（proto 方法 ProjectService.SetAvailableProjects）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：设置可用项目。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.SetAvailableProjectsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectIds</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/SetAvailableProjects</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.SetAvailableProjectsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>projectCountUsed</code></td><td>repeated</td></tr><tr><td><code>projectCountLimit</code></td><td>string</td></tr><tr><td><code>projects</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="208-·-UpdateProject-—-更新项目"><a href="#208-·-UpdateProject-—-更新项目" class="headerlink" title="208 · UpdateProject — 更新项目"></a>208 · UpdateProject — 更新项目</h3><p><strong>服务</strong>：<code>kimi.gateway.project.v1.ProjectService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/UpdateProject</code></p><ul><li><strong>API用途</strong>：项目模块接口：更新项目（proto 方法 ProjectService.UpdateProject）。</li><li><strong>这接口能干啥（大白话）</strong>：项目：修改项目。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.Project</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>name</code></td><td>string</td></tr><tr><td><code>prompt</code></td><td>string</td></tr><tr><td><code>iconUrl</code></td><td>string</td></tr><tr><td><code>description</code></td><td>string</td></tr><tr><td><code>createTime</code></td><td>string</td></tr><tr><td><code>updateTime</code></td><td>string</td></tr><tr><td><code>useMemory</code></td><td>bool</td></tr><tr><td><code>availability</code></td><td>enum <code>ProjectAvailability</code></td></tr><tr><td><code>unreadCount</code></td><td>int32</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>availability</code>：<code>PROJECT_AVAILABILITY_UNSPECIFIED</code>、<code>PROJECT_AVAILABILITY_AVAILABLE</code>、<code>PROJECT_AVAILABILITY_READ_ONLY</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.project.v1.ProjectService/UpdateProject</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.project.v1.UpdateProjectResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>project</code></td><td>message <code>Project</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="营销素材-·-kimi-gateway-promotionalasset-v1-PromotionalAssetService（1-个方法）"><a href="#营销素材-·-kimi-gateway-promotionalasset-v1-PromotionalAssetService（1-个方法）" class="headerlink" title="营销素材 · kimi.gateway.promotionalasset.v1.PromotionalAssetService（1 个方法）"></a>营销素材 · <code>kimi.gateway.promotionalasset.v1.PromotionalAssetService</code>（1 个方法）</h2><h3 id="209-·-ListPromotionalAssets-—-列出营销素材"><a href="#209-·-ListPromotionalAssets-—-列出营销素材" class="headerlink" title="209 · ListPromotionalAssets — 列出营销素材"></a>209 · ListPromotionalAssets — 列出营销素材</h3><p><strong>服务</strong>：<code>kimi.gateway.promotionalasset.v1.PromotionalAssetService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.promotionalasset.v1.PromotionalAssetService/ListPromotionalAssets</code></p><ul><li><strong>API用途</strong>：营销素材模块接口：列出营销素材（proto 方法 PromotionalAssetService.ListPromotionalAssets）。</li><li><strong>这接口能干啥（大白话）</strong>：营销素材：列出营销素材（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.promotionalasset.v1.ListPromotionalAssetsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pages</code></td><td>repeated</td></tr><tr><td><code>pagesValue</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.promotionalasset.v1.PromotionalAssetService/ListPromotionalAssets</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.promotionalasset.v1.ListPromotionalAssetsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>doodles</code></td><td>repeated</td></tr><tr><td><code>cards</code></td><td>repeated</td></tr><tr><td><code>homeBanners</code></td><td>repeated</td></tr><tr><td><code>persistentActivityCards</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="风控-·-kimi-gateway-riskcontrol-v1-RiskControlService（1-个方法）"><a href="#风控-·-kimi-gateway-riskcontrol-v1-RiskControlService（1-个方法）" class="headerlink" title="风控 · kimi.gateway.riskcontrol.v1.RiskControlService（1 个方法）"></a>风控 · <code>kimi.gateway.riskcontrol.v1.RiskControlService</code>（1 个方法）</h2><h3 id="210-·-ReportEvent-—-上报事件"><a href="#210-·-ReportEvent-—-上报事件" class="headerlink" title="210 · ReportEvent — 上报事件"></a>210 · ReportEvent — 上报事件</h3><p><strong>服务</strong>：<code>kimi.gateway.riskcontrol.v1.RiskControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.riskcontrol.v1.RiskControlService/ReportEvent</code></p><ul><li><strong>API用途</strong>：风控模块接口：上报事件（proto 方法 RiskControlService.ReportEvent）。</li><li><strong>这接口能干啥（大白话）</strong>：风控：上报事件。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.riskcontrol.v1.ReportEventRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>customPayload</code></td><td>message <code>CustomPayload</code></td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.riskcontrol.v1.RiskControlService/ReportEvent</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.riskcontrol.v1.ReportEventResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="技能任务-·-kimi-gateway-skill-v1-SkillJobService（4-个方法）"><a href="#技能任务-·-kimi-gateway-skill-v1-SkillJobService（4-个方法）" class="headerlink" title="技能任务 · kimi.gateway.skill.v1.SkillJobService（4 个方法）"></a>技能任务 · <code>kimi.gateway.skill.v1.SkillJobService</code>（4 个方法）</h2><h3 id="211-·-CreateSkillJob-—-创建技能任务"><a href="#211-·-CreateSkillJob-—-创建技能任务" class="headerlink" title="211 · CreateSkillJob — 创建技能任务"></a>211 · CreateSkillJob — 创建技能任务</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillJobService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/CreateSkillJob</code></p><ul><li><strong>API用途</strong>：技能任务模块接口：创建技能任务（proto 方法 SkillJobService.CreateSkillJob）。</li><li><strong>这接口能干啥（大白话）</strong>：技能任务：新建技能任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.CreateSkillJobRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>string</td></tr><tr><td><code>targetType</code></td><td>enum <code>SkillJobType</code></td></tr><tr><td><code>botId</code></td><td>string</td></tr><tr><td><code>fileIds</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>targetType</code>：<code>SKILL_JOB_TYPE_UNSPECIFIED</code>、<code>SKILL_JOB_TYPE_CLAW_SKILL</code>、<code>SKILL_JOB_TYPE_KIMI_SKILL</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/CreateSkillJob</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.CreateSkillJobResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>job</code></td><td>message <code>SkillJob</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="212-·-DeleteSkillJob-—-删除技能任务"><a href="#212-·-DeleteSkillJob-—-删除技能任务" class="headerlink" title="212 · DeleteSkillJob — 删除技能任务"></a>212 · DeleteSkillJob — 删除技能任务</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillJobService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/DeleteSkillJob</code></p><ul><li><strong>API用途</strong>：技能任务模块接口：删除技能任务（proto 方法 SkillJobService.DeleteSkillJob）。</li><li><strong>这接口能干啥（大白话）</strong>：技能任务：删除技能任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.DeleteSkillJobRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>jobId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/DeleteSkillJob</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.DeleteSkillJobResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>job</code></td><td>message <code>SkillJob</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="213-·-GetSkillJob-—-获取技能任务"><a href="#213-·-GetSkillJob-—-获取技能任务" class="headerlink" title="213 · GetSkillJob — 获取技能任务"></a>213 · GetSkillJob — 获取技能任务</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillJobService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/GetSkillJob</code></p><ul><li><strong>API用途</strong>：技能任务模块接口：获取技能任务（proto 方法 SkillJobService.GetSkillJob）。</li><li><strong>这接口能干啥（大白话）</strong>：技能任务：查看技能任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillJobRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>jobId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/GetSkillJob</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillJobResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>job</code></td><td>message <code>SkillJob</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="214-·-RetrySkillJob-—-重试技能任务"><a href="#214-·-RetrySkillJob-—-重试技能任务" class="headerlink" title="214 · RetrySkillJob — 重试技能任务"></a>214 · RetrySkillJob — 重试技能任务</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillJobService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/RetrySkillJob</code></p><ul><li><strong>API用途</strong>：技能任务模块接口：重试技能任务（proto 方法 SkillJobService.RetrySkillJob）。</li><li><strong>这接口能干啥（大白话）</strong>：技能任务：重试技能任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.RetrySkillJobRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>jobId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillJobService/RetrySkillJob</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.RetrySkillJobResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>job</code></td><td>message <code>SkillJob</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="技能-·-kimi-gateway-skill-v1-SkillService（7-个方法）"><a href="#技能-·-kimi-gateway-skill-v1-SkillService（7-个方法）" class="headerlink" title="技能 · kimi.gateway.skill.v1.SkillService（7 个方法）"></a>技能 · <code>kimi.gateway.skill.v1.SkillService</code>（7 个方法）</h2><h3 id="215-·-GetSkill-—-获取技能"><a href="#215-·-GetSkill-—-获取技能" class="headerlink" title="215 · GetSkill — 获取技能"></a>215 · GetSkill — 获取技能</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/GetSkill</code></p><ul><li><strong>API用途</strong>：技能模块接口：获取技能（proto 方法 SkillService.GetSkill）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：查看技能。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skillId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/GetSkill</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skill</code></td><td>message <code>Skill</code></td></tr><tr><td><code>hasNameConflict</code></td><td>bool</td></tr><tr><td><code>canUpdate</code></td><td>bool</td></tr><tr><td><code>activeVersion</code></td><td>int32</td></tr><tr><td><code>latestVersion</code></td><td>int32</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="216-·-GetSkillFileTree-—-获取技能文件树"><a href="#216-·-GetSkillFileTree-—-获取技能文件树" class="headerlink" title="216 · GetSkillFileTree — 获取技能文件树"></a>216 · GetSkillFileTree — 获取技能文件树</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/GetSkillFileTree</code></p><ul><li><strong>API用途</strong>：技能模块接口：获取技能文件树（proto 方法 SkillService.GetSkillFileTree）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：查看技能文件树。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillFileTreeRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skillId</code></td><td>string</td></tr><tr><td><code>versionNo</code></td><td>int32</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/GetSkillFileTree</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.GetSkillFileTreeResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>root</code></td><td>message <code>FileTreeNode</code></td></tr><tr><td><code>downloadUrl</code></td><td>string</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="217-·-InstallSkill-—-安装技能"><a href="#217-·-InstallSkill-—-安装技能" class="headerlink" title="217 · InstallSkill — 安装技能"></a>217 · InstallSkill — 安装技能</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/InstallSkill</code></p><ul><li><strong>API用途</strong>：技能模块接口：安装技能（proto 方法 SkillService.InstallSkill）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：安装技能。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.InstallSkillRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skillId</code></td><td>string</td></tr><tr><td><code>overrideName</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/InstallSkill</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.InstallSkillResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skill</code></td><td>message <code>Skill</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="218-·-ListInstalledSkills-—-列出已装技能"><a href="#218-·-ListInstalledSkills-—-列出已装技能" class="headerlink" title="218 · ListInstalledSkills — 列出已装技能"></a>218 · ListInstalledSkills — 列出已装技能</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListInstalledSkills</code></p><ul><li><strong>API用途</strong>：技能模块接口：列出已装技能（proto 方法 SkillService.ListInstalledSkills）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：列出已装技能（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListInstalledSkillsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>category</code></td><td>enum <code>Category</code></td></tr><tr><td><code>skillUseCaseId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>category</code>：<code>CATEGORY_UNSPECIFIED</code>、<code>CATEGORY_AGENT</code>、<code>CATEGORY_CLAW</code>、<code>CATEGORY_SWARM</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListInstalledSkills</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListInstalledSkillsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skills</code></td><td>repeated</td></tr><tr><td><code>generatingTasks</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="219-·-ListSkillUseCases-—-列出技能使用场景"><a href="#219-·-ListSkillUseCases-—-列出技能使用场景" class="headerlink" title="219 · ListSkillUseCases — 列出技能使用场景"></a>219 · ListSkillUseCases — 列出技能使用场景</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListSkillUseCases</code></p><ul><li><strong>API用途</strong>：技能模块接口：列出技能使用场景（proto 方法 SkillService.ListSkillUseCases）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：列出技能使用场景（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListSkillUseCasesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListSkillUseCases</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListSkillUseCasesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>useCases</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="220-·-ListSkills-—-列出技能"><a href="#220-·-ListSkills-—-列出技能" class="headerlink" title="220 · ListSkills — 列出技能"></a>220 · ListSkills — 列出技能</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListSkills</code></p><ul><li><strong>API用途</strong>：技能模块接口：列出技能（proto 方法 SkillService.ListSkills）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：列出技能（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListSkillsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>category</code></td><td>enum <code>Category</code></td></tr><tr><td><code>skillUseCaseId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>category</code>：<code>CATEGORY_UNSPECIFIED</code>、<code>CATEGORY_AGENT</code>、<code>CATEGORY_CLAW</code>、<code>CATEGORY_SWARM</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/ListSkills</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.ListSkillsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>totalCount</code></td><td>int32</td></tr><tr><td><code>skills</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="221-·-RemoveSkill-—-移除技能"><a href="#221-·-RemoveSkill-—-移除技能" class="headerlink" title="221 · RemoveSkill — 移除技能"></a>221 · RemoveSkill — 移除技能</h3><p><strong>服务</strong>：<code>kimi.gateway.skill.v1.SkillService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/RemoveSkill</code></p><ul><li><strong>API用途</strong>：技能模块接口：移除技能（proto 方法 SkillService.RemoveSkill）。</li><li><strong>这接口能干啥（大白话）</strong>：技能：移除技能。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.RemoveSkillRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>skillId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.skill.v1.SkillService/RemoveSkill</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.skill.v1.RemoveSkillResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="幻灯片-·-kimi-gateway-slides-v1-SlidesService（1-个方法）"><a href="#幻灯片-·-kimi-gateway-slides-v1-SlidesService（1-个方法）" class="headerlink" title="幻灯片 · kimi.gateway.slides.v1.SlidesService（1 个方法）"></a>幻灯片 · <code>kimi.gateway.slides.v1.SlidesService</code>（1 个方法）</h2><h3 id="222-·-GetSlides-—-获取幻灯片"><a href="#222-·-GetSlides-—-获取幻灯片" class="headerlink" title="222 · GetSlides — 获取幻灯片"></a>222 · GetSlides — 获取幻灯片</h3><p><strong>服务</strong>：<code>kimi.gateway.slides.v1.SlidesService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.slides.v1.SlidesService/GetSlides</code></p><ul><li><strong>API用途</strong>：幻灯片模块接口：获取幻灯片（proto 方法 SlidesService.GetSlides）。</li><li><strong>这接口能干啥（大白话）</strong>：幻灯片：查看幻灯片。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.slides.v1.GetSlidesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.slides.v1.SlidesService/GetSlides</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.slides.v1.GetSlidesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>slides</code></td><td>message <code>Slides</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="展示位-·-kimi-gateway-suggest-v1-OpenShowcaseService（1-个方法）"><a href="#展示位-·-kimi-gateway-suggest-v1-OpenShowcaseService（1-个方法）" class="headerlink" title="展示位 · kimi.gateway.suggest.v1.OpenShowcaseService（1 个方法）"></a>展示位 · <code>kimi.gateway.suggest.v1.OpenShowcaseService</code>（1 个方法）</h2><h3 id="223-·-GetShowcaseByID-—-获取展示位详情"><a href="#223-·-GetShowcaseByID-—-获取展示位详情" class="headerlink" title="223 · GetShowcaseByID — 获取展示位详情"></a>223 · GetShowcaseByID — 获取展示位详情</h3><p><strong>服务</strong>：<code>kimi.gateway.suggest.v1.OpenShowcaseService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.OpenShowcaseService/GetShowcaseByID</code></p><ul><li><strong>API用途</strong>：展示位模块接口：获取展示位详情（proto 方法 OpenShowcaseService.GetShowcaseByID）。</li><li><strong>这接口能干啥（大白话）</strong>：展示位：查看展示位详情。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.GetShowcaseByIDRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.OpenShowcaseService/GetShowcaseByID</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.GetShowcaseByIDResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>showcase</code></td><td>message <code>Showcase</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="展示位-·-kimi-gateway-suggest-v1-ShowcaseService（2-个方法）"><a href="#展示位-·-kimi-gateway-suggest-v1-ShowcaseService（2-个方法）" class="headerlink" title="展示位 · kimi.gateway.suggest.v1.ShowcaseService（2 个方法）"></a>展示位 · <code>kimi.gateway.suggest.v1.ShowcaseService</code>（2 个方法）</h2><h3 id="224-·-ListDefaultShowcases-—-列出默认展示位"><a href="#224-·-ListDefaultShowcases-—-列出默认展示位" class="headerlink" title="224 · ListDefaultShowcases — 列出默认展示位"></a>224 · ListDefaultShowcases — 列出默认展示位</h3><p><strong>服务</strong>：<code>kimi.gateway.suggest.v1.ShowcaseService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.ShowcaseService/ListDefaultShowcases</code></p><ul><li><strong>API用途</strong>：展示位模块接口：列出默认展示位（proto 方法 ShowcaseService.ListDefaultShowcases）。</li><li><strong>这接口能干啥（大白话）</strong>：展示位：列出默认展示位（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListDefaultShowcasesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>scenario</code></td><td>enum <code>Scenario</code></td></tr><tr><td><code>categoryName</code></td><td>string</td></tr><tr><td><code>limit</code></td><td>int32</td></tr><tr><td><code>kimiPlusId</code></td><td>string</td></tr><tr><td><code>agentModeType</code></td><td>enum <code>Type</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>scenario</code>：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code></li><li><code>agentModeType</code>：<code>TYPE_UNSPECIFIED</code>、<code>TYPE_NORMAL</code>、<code>TYPE_ULTRA</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.ShowcaseService/ListDefaultShowcases</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListDefaultShowcasesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>showcases</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="225-·-ListMobileHomepageShowcases-—-列出移动首页展示位"><a href="#225-·-ListMobileHomepageShowcases-—-列出移动首页展示位" class="headerlink" title="225 · ListMobileHomepageShowcases — 列出移动首页展示位"></a>225 · ListMobileHomepageShowcases — 列出移动首页展示位</h3><p><strong>服务</strong>：<code>kimi.gateway.suggest.v1.ShowcaseService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.ShowcaseService/ListMobileHomepageShowcases</code></p><ul><li><strong>API用途</strong>：展示位模块接口：列出移动首页展示位（proto 方法 ShowcaseService.ListMobileHomepageShowcases）。</li><li><strong>这接口能干啥（大白话）</strong>：展示位：列出移动首页展示位（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListMobileHomepageShowcasesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>isCommunityEnabled</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.ShowcaseService/ListMobileHomepageShowcases</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListMobileHomepageShowcasesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>recId</code></td><td>string</td></tr><tr><td><code>showcases</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="推荐-·-kimi-gateway-suggest-v1-SuggestService（2-个方法）"><a href="#推荐-·-kimi-gateway-suggest-v1-SuggestService（2-个方法）" class="headerlink" title="推荐 · kimi.gateway.suggest.v1.SuggestService（2 个方法）"></a>推荐 · <code>kimi.gateway.suggest.v1.SuggestService</code>（2 个方法）</h2><h3 id="226-·-ClaimPopupExposure-—-领取弹窗曝光"><a href="#226-·-ClaimPopupExposure-—-领取弹窗曝光" class="headerlink" title="226 · ClaimPopupExposure — 领取弹窗曝光"></a>226 · ClaimPopupExposure — 领取弹窗曝光</h3><p><strong>服务</strong>：<code>kimi.gateway.suggest.v1.SuggestService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.SuggestService/ClaimPopupExposure</code></p><ul><li><strong>API用途</strong>：推荐模块接口：领取弹窗曝光（proto 方法 SuggestService.ClaimPopupExposure）。</li><li><strong>这接口能干啥（大白话）</strong>：推荐：领取弹窗曝光。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ClaimPopupExposureRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>popupName</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.SuggestService/ClaimPopupExposure</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ClaimPopupExposureResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="227-·-ListPopups-—-列出弹窗"><a href="#227-·-ListPopups-—-列出弹窗" class="headerlink" title="227 · ListPopups — 列出弹窗"></a>227 · ListPopups — 列出弹窗</h3><p><strong>服务</strong>：<code>kimi.gateway.suggest.v1.SuggestService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.SuggestService/ListPopups</code></p><ul><li><strong>API用途</strong>：推荐模块接口：列出弹窗（proto 方法 SuggestService.ListPopups）。</li><li><strong>这接口能干啥（大白话）</strong>：推荐：列出弹窗（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListPopupsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>deviceLanguage</code></td><td>string</td></tr><tr><td><code>scenario</code></td><td>message</td></tr><tr><td><code>pwaInstallable</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.suggest.v1.SuggestService/ListPopups</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.ListPopupsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>popups</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="多智能体-·-kimi-gateway-swarm-v1-SwarmService（4-个方法）"><a href="#多智能体-·-kimi-gateway-swarm-v1-SwarmService（4-个方法）" class="headerlink" title="多智能体 · kimi.gateway.swarm.v1.SwarmService（4 个方法）"></a>多智能体 · <code>kimi.gateway.swarm.v1.SwarmService</code>（4 个方法）</h2><h3 id="228-·-ListAgentMessages-—-列出智能体消息"><a href="#228-·-ListAgentMessages-—-列出智能体消息" class="headerlink" title="228 · ListAgentMessages — 列出智能体消息"></a>228 · ListAgentMessages — 列出智能体消息</h3><p><strong>服务</strong>：<code>kimi.gateway.swarm.v1.SwarmService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgentMessages</code></p><ul><li><strong>API用途</strong>：多智能体模块接口：列出智能体消息（proto 方法 SwarmService.ListAgentMessages）。</li><li><strong>这接口能干啥（大白话）</strong>：多智能体：列出智能体消息（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>agentId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgentMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentMessagesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="229-·-ListAgentMessagesByShare-—-列出分享会话的智能体消息"><a href="#229-·-ListAgentMessagesByShare-—-列出分享会话的智能体消息" class="headerlink" title="229 · ListAgentMessagesByShare — 列出分享会话的智能体消息"></a>229 · ListAgentMessagesByShare — 列出分享会话的智能体消息</h3><p><strong>服务</strong>：<code>kimi.gateway.swarm.v1.SwarmService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgentMessagesByShare</code></p><ul><li><strong>API用途</strong>：多智能体模块接口：列出分享会话的智能体消息（proto 方法 SwarmService.ListAgentMessagesByShare）。</li><li><strong>这接口能干啥（大白话）</strong>：多智能体：列出分享会话的智能体消息（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentMessagesByShareRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>agentId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>shareId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgentMessagesByShare</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentMessagesByShareResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="230-·-ListAgents-—-列出智能体"><a href="#230-·-ListAgents-—-列出智能体" class="headerlink" title="230 · ListAgents — 列出智能体"></a>230 · ListAgents — 列出智能体</h3><p><strong>服务</strong>：<code>kimi.gateway.swarm.v1.SwarmService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgents</code></p><ul><li><strong>API用途</strong>：多智能体模块接口：列出智能体（proto 方法 SwarmService.ListAgents）。</li><li><strong>这接口能干啥（大白话）</strong>：多智能体：列出智能体（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>includeTerminated</code></td><td>bool</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/ListAgents</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.ListAgentsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>agents</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="231-·-StopAgents-—-停止智能体"><a href="#231-·-StopAgents-—-停止智能体" class="headerlink" title="231 · StopAgents — 停止智能体"></a>231 · StopAgents — 停止智能体</h3><p><strong>服务</strong>：<code>kimi.gateway.swarm.v1.SwarmService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/StopAgents</code></p><ul><li><strong>API用途</strong>：多智能体模块接口：停止智能体（proto 方法 SwarmService.StopAgents）。</li><li><strong>这接口能干啥（大白话）</strong>：多智能体：停止智能体。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.StopAgentsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.swarm.v1.SwarmService/StopAgents</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.swarm.v1.StopAgentsResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="触发器-·-kimi-gateway-trigger-v1-TriggerService（8-个方法）"><a href="#触发器-·-kimi-gateway-trigger-v1-TriggerService（8-个方法）" class="headerlink" title="触发器 · kimi.gateway.trigger.v1.TriggerService（8 个方法）"></a>触发器 · <code>kimi.gateway.trigger.v1.TriggerService</code>（8 个方法）</h2><h3 id="232-·-CreateTask-—-创建任务"><a href="#232-·-CreateTask-—-创建任务" class="headerlink" title="232 · CreateTask — 创建任务"></a>232 · CreateTask — 创建任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/CreateTask</code></p><ul><li><strong>API用途</strong>：触发器模块接口：创建任务（proto 方法 TriggerService.CreateTask）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：新建任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.CreateTaskRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>type</code></td><td>enum <code>TaskType</code></td></tr><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>title</code></td><td>string</td></tr><tr><td><code>cronExpr</code></td><td>string</td></tr><tr><td><code>nextTime</code></td><td>string</td></tr><tr><td><code>payload</code></td><td>message <code>TaskPayload</code></td></tr><tr><td><code>expiredAt</code></td><td>string</td></tr><tr><td><code>projectId</code></td><td>string</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>type</code>：<code>TASK_TYPE_UNSPECIFIED</code>、<code>TASK_TYPE_CRON</code>、<code>TASK_TYPE_ONCE</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/CreateTask</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.CreateTaskResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>task</code></td><td>message <code>Task</code></td></tr><tr><td><code>pauseReason</code></td><td>message <code>ErrorDetail</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="233-·-DeleteTask-—-删除任务"><a href="#233-·-DeleteTask-—-删除任务" class="headerlink" title="233 · DeleteTask — 删除任务"></a>233 · DeleteTask — 删除任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/DeleteTask</code></p><ul><li><strong>API用途</strong>：触发器模块接口：删除任务（proto 方法 TriggerService.DeleteTask）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：删除任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.DeleteTaskRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>taskId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/DeleteTask</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.DeleteTaskResponse</code></p><p>（空消息，无字段）</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="234-·-GetTask-—-获取任务"><a href="#234-·-GetTask-—-获取任务" class="headerlink" title="234 · GetTask — 获取任务"></a>234 · GetTask — 获取任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/GetTask</code></p><ul><li><strong>API用途</strong>：触发器模块接口：获取任务（proto 方法 TriggerService.GetTask）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：查看任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.GetTaskRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>taskId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/GetTask</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.GetTaskResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>task</code></td><td>message <code>Task</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="235-·-ListTaskExecutions-—-列出任务执行记录"><a href="#235-·-ListTaskExecutions-—-列出任务执行记录" class="headerlink" title="235 · ListTaskExecutions — 列出任务执行记录"></a>235 · ListTaskExecutions — 列出任务执行记录</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/ListTaskExecutions</code></p><ul><li><strong>API用途</strong>：触发器模块接口：列出任务执行记录（proto 方法 TriggerService.ListTaskExecutions）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：列出任务执行记录（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.ListTaskExecutionsRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>taskId</code></td><td>string</td></tr><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/ListTaskExecutions</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.ListTaskExecutionsResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>executions</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="236-·-ListTasks-—-列出任务"><a href="#236-·-ListTasks-—-列出任务" class="headerlink" title="236 · ListTasks — 列出任务"></a>236 · ListTasks — 列出任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/ListTasks</code></p><ul><li><strong>API用途</strong>：触发器模块接口：列出任务（proto 方法 TriggerService.ListTasks）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：列出任务（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.ListTasksRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>pageSize</code></td><td>int32</td></tr><tr><td><code>pageToken</code></td><td>string</td></tr><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>projectId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/ListTasks</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.ListTasksResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>nextPageToken</code></td><td>string</td></tr><tr><td><code>tasks</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="237-·-MarkExecutionRead-—-调用执行已读标记"><a href="#237-·-MarkExecutionRead-—-调用执行已读标记" class="headerlink" title="237 · MarkExecutionRead — 调用执行已读标记"></a>237 · MarkExecutionRead — 调用执行已读标记</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/MarkExecutionRead</code></p><ul><li><strong>API用途</strong>：触发器模块接口：调用执行已读标记（proto 方法 TriggerService.MarkExecutionRead）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：标记已读。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.MarkExecutionReadRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>taskId</code></td><td>string</td></tr><tr><td><code>executionId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/MarkExecutionRead</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.MarkExecutionReadResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>execution</code></td><td>message <code>TaskExecution</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="238-·-RunTask-—-执行任务"><a href="#238-·-RunTask-—-执行任务" class="headerlink" title="238 · RunTask — 执行任务"></a>238 · RunTask — 执行任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/RunTask</code></p><ul><li><strong>API用途</strong>：触发器模块接口：执行任务（proto 方法 TriggerService.RunTask）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：执行任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.RunTaskRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>taskId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/RunTask</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.RunTaskResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>execution</code></td><td>message <code>TaskExecution</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="239-·-UpdateTask-—-更新任务"><a href="#239-·-UpdateTask-—-更新任务" class="headerlink" title="239 · UpdateTask — 更新任务"></a>239 · UpdateTask — 更新任务</h3><p><strong>服务</strong>：<code>kimi.gateway.trigger.v1.TriggerService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/UpdateTask</code></p><ul><li><strong>API用途</strong>：触发器模块接口：更新任务（proto 方法 TriggerService.UpdateTask）。</li><li><strong>这接口能干啥（大白话）</strong>：定时任务：修改任务。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.UpdateTaskRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>task</code></td><td>message <code>Task</code></td></tr><tr><td><code>updateMask</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.trigger.v1.TriggerService/UpdateTask</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.trigger.v1.UpdateTaskResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>task</code></td><td>message <code>Task</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="语音合成-·-kimi-gateway-tts-v1-TTSService（1-个方法）"><a href="#语音合成-·-kimi-gateway-tts-v1-TTSService（1-个方法）" class="headerlink" title="语音合成 · kimi.gateway.tts.v1.TTSService（1 个方法）"></a>语音合成 · <code>kimi.gateway.tts.v1.TTSService</code>（1 个方法）</h2><h3 id="240-·-ListVoices-—-列出音色"><a href="#240-·-ListVoices-—-列出音色" class="headerlink" title="240 · ListVoices — 列出音色"></a>240 · ListVoices — 列出音色</h3><p><strong>服务</strong>：<code>kimi.gateway.tts.v1.TTSService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.tts.v1.TTSService/ListVoices</code></p><ul><li><strong>API用途</strong>：语音合成模块接口：列出音色（proto 方法 TTSService.ListVoices）。</li><li><strong>这接口能干啥（大白话）</strong>：语音合成：列出音色（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.tts.v1.ListVoicesRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.tts.v1.TTSService/ListVoices</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.tts.v1.ListVoicesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>voices</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="网站别名-·-kimi-gateway-websites-v1-WebsiteSlugService（3-个方法）"><a href="#网站别名-·-kimi-gateway-websites-v1-WebsiteSlugService（3-个方法）" class="headerlink" title="网站别名 · kimi.gateway.websites.v1.WebsiteSlugService（3 个方法）"></a>网站别名 · <code>kimi.gateway.websites.v1.WebsiteSlugService</code>（3 个方法）</h2><h3 id="241-·-GetWebsiteSlug-—-获取网站别名"><a href="#241-·-GetWebsiteSlug-—-获取网站别名" class="headerlink" title="241 · GetWebsiteSlug — 获取网站别名"></a>241 · GetWebsiteSlug — 获取网站别名</h3><p><strong>服务</strong>：<code>kimi.gateway.websites.v1.WebsiteSlugService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/GetWebsiteSlug</code></p><ul><li><strong>API用途</strong>：网站别名模块接口：获取网站别名（proto 方法 WebsiteSlugService.GetWebsiteSlug）。</li><li><strong>这接口能干啥（大白话）</strong>：网站别名：查看网站别名。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.GetWebsiteSlugRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/GetWebsiteSlug</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.GetWebsiteSlugResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>info</code></td><td>message <code>WebsiteSlug</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="242-·-SetWebsiteSlug-—-设置网站别名"><a href="#242-·-SetWebsiteSlug-—-设置网站别名" class="headerlink" title="242 · SetWebsiteSlug — 设置网站别名"></a>242 · SetWebsiteSlug — 设置网站别名</h3><p><strong>服务</strong>：<code>kimi.gateway.websites.v1.WebsiteSlugService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/SetWebsiteSlug</code></p><ul><li><strong>API用途</strong>：网站别名模块接口：设置网站别名（proto 方法 WebsiteSlugService.SetWebsiteSlug）。</li><li><strong>这接口能干啥（大白话）</strong>：网站别名：设置网站别名。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.SetWebsiteSlugRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>slug</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/SetWebsiteSlug</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.SetWebsiteSlugResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>info</code></td><td>message <code>WebsiteSlug</code></td></tr><tr><td><code>reason</code></td><td>enum <code>WebsiteSlugReason</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>reason</code>：<code>WEBSITE_SLUG_REASON_UNSPECIFIED</code>、<code>WEBSITE_SLUG_REASON_ALL_NUMERIC</code>、<code>WEBSITE_SLUG_REASON_ALREADY_TAKEN</code>、<code>WEBSITE_SLUG_REASON_CONFLICT</code>、<code>WEBSITE_SLUG_REASON_INVALID_FORMAT</code>、<code>WEBSITE_SLUG_REASON_MODERATION_UNAVAILABLE</code>、<code>WEBSITE_SLUG_REASON_OK</code>、<code>WEBSITE_SLUG_REASON_RESERVED_SHORTID_NAMESPACE</code>、<code>WEBSITE_SLUG_REASON_RESERVED_WORD</code>、<code>WEBSITE_SLUG_REASON_SENSITIVE_CONTENT</code>、<code>WEBSITE_SLUG_REASON_STARTS_OR_ENDS_WITH_HYPHEN</code>、<code>WEBSITE_SLUG_REASON_TOO_LONG</code>、<code>WEBSITE_SLUG_REASON_TOO_SHORT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="243-·-ValidateWebsiteSlug-—-调用网站别名"><a href="#243-·-ValidateWebsiteSlug-—-调用网站别名" class="headerlink" title="243 · ValidateWebsiteSlug — 调用网站别名"></a>243 · ValidateWebsiteSlug — 调用网站别名</h3><p><strong>服务</strong>：<code>kimi.gateway.websites.v1.WebsiteSlugService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/ValidateWebsiteSlug</code></p><ul><li><strong>API用途</strong>：网站别名模块接口：调用网站别名（proto 方法 WebsiteSlugService.ValidateWebsiteSlug）。</li><li><strong>这接口能干啥（大白话）</strong>：网站别名：校验网站别名。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.ValidateWebsiteSlugRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>slug</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.websites.v1.WebsiteSlugService/ValidateWebsiteSlug</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.gateway.websites.v1.ValidateWebsiteSlugResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>available</code></td><td>bool</td></tr><tr><td><code>reason</code></td><td>enum <code>WebsiteSlugReason</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>reason</code>：<code>WEBSITE_SLUG_REASON_UNSPECIFIED</code>、<code>WEBSITE_SLUG_REASON_ALL_NUMERIC</code>、<code>WEBSITE_SLUG_REASON_ALREADY_TAKEN</code>、<code>WEBSITE_SLUG_REASON_CONFLICT</code>、<code>WEBSITE_SLUG_REASON_INVALID_FORMAT</code>、<code>WEBSITE_SLUG_REASON_MODERATION_UNAVAILABLE</code>、<code>WEBSITE_SLUG_REASON_OK</code>、<code>WEBSITE_SLUG_REASON_RESERVED_SHORTID_NAMESPACE</code>、<code>WEBSITE_SLUG_REASON_RESERVED_WORD</code>、<code>WEBSITE_SLUG_REASON_SENSITIVE_CONTENT</code>、<code>WEBSITE_SLUG_REASON_STARTS_OR_ENDS_WITH_HYPHEN</code>、<code>WEBSITE_SLUG_REASON_TOO_LONG</code>、<code>WEBSITE_SLUG_REASON_TOO_SHORT</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="远程控制-·-kimi-gateway-work-v1-RemoteControlService（6-个方法）"><a href="#远程控制-·-kimi-gateway-work-v1-RemoteControlService（6-个方法）" class="headerlink" title="远程控制 · kimi.gateway.work.v1.RemoteControlService（6 个方法）"></a>远程控制 · <code>kimi.gateway.work.v1.RemoteControlService</code>（6 个方法）</h2><h3 id="244-·-CreatePairing-—-创建配对"><a href="#244-·-CreatePairing-—-创建配对" class="headerlink" title="244 · CreatePairing — 创建配对"></a>244 · CreatePairing — 创建配对</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/CreatePairing</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：创建配对（proto 方法 RemoteControlService.CreatePairing）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：新建配对。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/CreatePairing</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="245-·-CreateWebSocketTicket-—-创建WebSocket-票据"><a href="#245-·-CreateWebSocketTicket-—-创建WebSocket-票据" class="headerlink" title="245 · CreateWebSocketTicket — 创建WebSocket 票据"></a>245 · CreateWebSocketTicket — 创建WebSocket 票据</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/CreateWebSocketTicket</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：创建WebSocket 票据（proto 方法 RemoteControlService.CreateWebSocketTicket）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：新建WebSocket 票据。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/CreateWebSocketTicket</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="246-·-GetPairing-—-获取配对"><a href="#246-·-GetPairing-—-获取配对" class="headerlink" title="246 · GetPairing — 获取配对"></a>246 · GetPairing — 获取配对</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/GetPairing</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：获取配对（proto 方法 RemoteControlService.GetPairing）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：查看配对。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/GetPairing</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="247-·-ListClients-—-列出客户端"><a href="#247-·-ListClients-—-列出客户端" class="headerlink" title="247 · ListClients — 列出客户端"></a>247 · ListClients — 列出客户端</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/ListClients</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：列出客户端（proto 方法 RemoteControlService.ListClients）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：列出已连客户端（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/ListClients</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="248-·-ListServers-—-列出服务端"><a href="#248-·-ListServers-—-列出服务端" class="headerlink" title="248 · ListServers — 列出服务端"></a>248 · ListServers — 列出服务端</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/ListServers</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：列出服务端（proto 方法 RemoteControlService.ListServers）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：列出可连服务端（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/ListServers</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="249-·-RevokeClient-—-调用客户端授权"><a href="#249-·-RevokeClient-—-调用客户端授权" class="headerlink" title="249 · RevokeClient — 调用客户端授权"></a>249 · RevokeClient — 调用客户端授权</h3><p><strong>服务</strong>：<code>kimi.gateway.work.v1.RemoteControlService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/RevokeClient</code></p><ul><li><strong>API用途</strong>：远程控制模块接口：调用客户端授权（proto 方法 RemoteControlService.RevokeClient）。</li><li><strong>这接口能干啥（大白话）</strong>：远程控制：撤销客户端。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong></p><p>（无独立 Request 消息；请求体为空对象 <code>{}</code>）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.gateway.work.v1.RemoteControlService/RevokeClient</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="发件箱-·-kimi-outbox-v1-OutboxService（9-个方法）"><a href="#发件箱-·-kimi-outbox-v1-OutboxService（9-个方法）" class="headerlink" title="发件箱 · kimi.outbox.v1.OutboxService（9 个方法）"></a>发件箱 · <code>kimi.outbox.v1.OutboxService</code>（9 个方法）</h2><h3 id="250-·-ClearOutboxMessages-—-调用发件箱消息"><a href="#250-·-ClearOutboxMessages-—-调用发件箱消息" class="headerlink" title="250 · ClearOutboxMessages — 调用发件箱消息"></a>250 · ClearOutboxMessages — 调用发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ClearOutboxMessages</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：调用发件箱消息（proto 方法 OutboxService.ClearOutboxMessages）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：清空发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ClearOutboxMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ClearOutboxMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="251-·-CreateOutboxMessage-—-创建发件箱消息"><a href="#251-·-CreateOutboxMessage-—-创建发件箱消息" class="headerlink" title="251 · CreateOutboxMessage — 创建发件箱消息"></a>251 · CreateOutboxMessage — 创建发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/CreateOutboxMessage</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：创建发件箱消息（proto 方法 OutboxService.CreateOutboxMessage）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：新建发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.chat.v1.ChatMessage</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>parentId</code></td><td>string</td></tr><tr><td><code>role</code></td><td>enum <code>Lup/ib;</code></td></tr><tr><td><code>status</code></td><td>enum <code>MessageStatus</code></td></tr><tr><td><code>refs</code></td><td>message <code>Refs</code></td></tr><tr><td><code>scenario</code></td><td>enum <code>Scenario</code></td></tr><tr><td><code>kimiPlus</code></td><td>message <code>KimiPlusBrief</code></td></tr><tr><td><code>vote</code></td><td>enum <code>Vote</code></td></tr><tr><td><code>error</code></td><td>message <code>Error</code></td></tr><tr><td><code>createTime</code></td><td>string</td></tr><tr><td><code>isGoal</code></td><td>bool</td></tr><tr><td><code>childrenMessageIds</code></td><td>repeated</td></tr><tr><td><code>blocks</code></td><td>repeated</td></tr><tr><td><code>references</code></td><td>repeated</td></tr><tr><td><code>labels</code></td><td>repeated</td></tr><tr><td><code>labelsValue</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>role</code>：<code>ROLE_UNSPECIFIED</code>、<code>assistant</code>、<code>system</code>、<code>user</code></li><li><code>status</code>：<code>MESSAGE_STATUS_UNSPECIFIED</code>、<code>MESSAGE_STATUS_CANCELLED</code>、<code>MESSAGE_STATUS_COMPLETED</code>、<code>MESSAGE_STATUS_ERROR</code>、<code>MESSAGE_STATUS_GENERATING</code>、<code>MESSAGE_STATUS_PENDING</code>、<code>MESSAGE_STATUS_TRUNCATED</code></li><li><code>scenario</code>：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code></li><li><code>vote</code>：<code>VOTE_UNSPECIFIED</code>、<code>VOTE_DOWN</code>、<code>VOTE_UP</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/CreateOutboxMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.CreateOutboxMessageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>outboxMessage</code></td><td>message <code>OutboxMessage</code></td></tr><tr><td><code>status</code></td><td>enum <code>OutboxStatus</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>status</code>：<code>OUTBOX_STATUS_UNSPECIFIED</code>、<code>OUTBOX_STATUS_ACTIVE</code>、<code>OUTBOX_STATUS_PAUSED</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>创建类接口需注意幂等&#x2F;防重复提交。</p></li></ul><h3 id="252-·-DeleteOutboxMessage-—-删除发件箱消息"><a href="#252-·-DeleteOutboxMessage-—-删除发件箱消息" class="headerlink" title="252 · DeleteOutboxMessage — 删除发件箱消息"></a>252 · DeleteOutboxMessage — 删除发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/DeleteOutboxMessage</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：删除发件箱消息（proto 方法 OutboxService.DeleteOutboxMessage）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：删除发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.DeleteOutboxMessageRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/DeleteOutboxMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong></p><p>无独立 Response 消息；通常返回空对象 <code>{}</code>（删除&#x2F;无返回体类接口）。</p><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>删除类操作不可逆，客户端应二次确认。</p></li></ul><h3 id="253-·-ListOutboxMessages-—-列出发件箱消息"><a href="#253-·-ListOutboxMessages-—-列出发件箱消息" class="headerlink" title="253 · ListOutboxMessages — 列出发件箱消息"></a>253 · ListOutboxMessages — 列出发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ListOutboxMessages</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：列出发件箱消息（proto 方法 OutboxService.ListOutboxMessages）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：列出发件箱消息（列表分页）。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ListOutboxMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ListOutboxMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ListOutboxMessagesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>status</code></td><td>enum <code>OutboxStatus</code></td></tr><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>status</code>：<code>OUTBOX_STATUS_UNSPECIFIED</code>、<code>OUTBOX_STATUS_ACTIVE</code>、<code>OUTBOX_STATUS_PAUSED</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="254-·-ReorderOutboxMessages-—-重排发件箱消息"><a href="#254-·-ReorderOutboxMessages-—-重排发件箱消息" class="headerlink" title="254 · ReorderOutboxMessages — 重排发件箱消息"></a>254 · ReorderOutboxMessages — 重排发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ReorderOutboxMessages</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：重排发件箱消息（proto 方法 OutboxService.ReorderOutboxMessages）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：重新排序发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ReorderOutboxMessagesRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr><tr><td><code>ids</code></td><td>repeated</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ReorderOutboxMessages</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ReorderOutboxMessagesResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>messages</code></td><td>repeated</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="255-·-ResumeOutbox-—-恢复发件箱"><a href="#255-·-ResumeOutbox-—-恢复发件箱" class="headerlink" title="255 · ResumeOutbox — 恢复发件箱"></a>255 · ResumeOutbox — 恢复发件箱</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ResumeOutbox</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：恢复发件箱（proto 方法 OutboxService.ResumeOutbox）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：继续发件箱。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ResumeOutboxRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/ResumeOutbox</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.ResumeOutboxResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>status</code></td><td>enum <code>OutboxStatus</code></td></tr><tr><td><code>dispatched</code></td><td>message <code>OutboxMessage</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>status</code>：<code>OUTBOX_STATUS_UNSPECIFIED</code>、<code>OUTBOX_STATUS_ACTIVE</code>、<code>OUTBOX_STATUS_PAUSED</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="256-·-SendOutboxMessageNow-—-发送发件箱消息"><a href="#256-·-SendOutboxMessageNow-—-发送发件箱消息" class="headerlink" title="256 · SendOutboxMessageNow — 发送发件箱消息"></a>256 · SendOutboxMessageNow — 发送发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/SendOutboxMessageNow</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：发送发件箱消息（proto 方法 OutboxService.SendOutboxMessageNow）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：发送发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.SendOutboxMessageNowRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/SendOutboxMessageNow</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.SendOutboxMessageNowResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>interrupted</code></td><td>bool</td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="257-·-StopOutbox-—-停止发件箱"><a href="#257-·-StopOutbox-—-停止发件箱" class="headerlink" title="257 · StopOutbox — 停止发件箱"></a>257 · StopOutbox — 停止发件箱</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/StopOutbox</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：停止发件箱（proto 方法 OutboxService.StopOutbox）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：停止发件箱。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.StopOutboxRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>chatId</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/StopOutbox</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.StopOutboxResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>status</code></td><td>enum <code>OutboxStatus</code></td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>status</code>：<code>OUTBOX_STATUS_UNSPECIFIED</code>、<code>OUTBOX_STATUS_ACTIVE</code>、<code>OUTBOX_STATUS_PAUSED</code></li></ul><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="258-·-UpdateOutboxMessage-—-更新发件箱消息"><a href="#258-·-UpdateOutboxMessage-—-更新发件箱消息" class="headerlink" title="258 · UpdateOutboxMessage — 更新发件箱消息"></a>258 · UpdateOutboxMessage — 更新发件箱消息</h3><p><strong>服务</strong>：<code>kimi.outbox.v1.OutboxService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/UpdateOutboxMessage</code></p><ul><li><strong>API用途</strong>：发件箱模块接口：更新发件箱消息（proto 方法 OutboxService.UpdateOutboxMessage）。</li><li><strong>这接口能干啥（大白话）</strong>：发件箱：修改发件箱消息。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.chat.v1.ChatMessage</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>parentId</code></td><td>string</td></tr><tr><td><code>role</code></td><td>enum <code>Lup/ib;</code></td></tr><tr><td><code>status</code></td><td>enum <code>MessageStatus</code></td></tr><tr><td><code>refs</code></td><td>message <code>Refs</code></td></tr><tr><td><code>scenario</code></td><td>enum <code>Scenario</code></td></tr><tr><td><code>kimiPlus</code></td><td>message <code>KimiPlusBrief</code></td></tr><tr><td><code>vote</code></td><td>enum <code>Vote</code></td></tr><tr><td><code>error</code></td><td>message <code>Error</code></td></tr><tr><td><code>createTime</code></td><td>string</td></tr><tr><td><code>isGoal</code></td><td>bool</td></tr><tr><td><code>childrenMessageIds</code></td><td>repeated</td></tr><tr><td><code>blocks</code></td><td>repeated</td></tr><tr><td><code>references</code></td><td>repeated</td></tr><tr><td><code>labels</code></td><td>repeated</td></tr><tr><td><code>labelsValue</code></td><td>repeated</td></tr></tbody></table><p><strong>字段取值</strong>：</p><ul><li><code>role</code>：<code>ROLE_UNSPECIFIED</code>、<code>assistant</code>、<code>system</code>、<code>user</code></li><li><code>status</code>：<code>MESSAGE_STATUS_UNSPECIFIED</code>、<code>MESSAGE_STATUS_CANCELLED</code>、<code>MESSAGE_STATUS_COMPLETED</code>、<code>MESSAGE_STATUS_ERROR</code>、<code>MESSAGE_STATUS_GENERATING</code>、<code>MESSAGE_STATUS_PENDING</code>、<code>MESSAGE_STATUS_TRUNCATED</code></li><li><code>scenario</code>：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code></li><li><code>vote</code>：<code>VOTE_UNSPECIFIED</code>、<code>VOTE_DOWN</code>、<code>VOTE_UP</code></li></ul><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.outbox.v1.OutboxService/UpdateOutboxMessage</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.outbox.v1.UpdateOutboxMessageResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>outboxMessage</code></td><td>message <code>OutboxMessage</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="用户设置-·-kimi-usersetting-v1-UserSettingService（2-个方法）"><a href="#用户设置-·-kimi-usersetting-v1-UserSettingService（2-个方法）" class="headerlink" title="用户设置 · kimi.usersetting.v1.UserSettingService（2 个方法）"></a>用户设置 · <code>kimi.usersetting.v1.UserSettingService</code>（2 个方法）</h2><h3 id="259-·-GetUserSetting-—-获取设置"><a href="#259-·-GetUserSetting-—-获取设置" class="headerlink" title="259 · GetUserSetting — 获取设置"></a>259 · GetUserSetting — 获取设置</h3><p><strong>服务</strong>：<code>kimi.usersetting.v1.UserSettingService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.usersetting.v1.UserSettingService/GetUserSetting</code></p><ul><li><strong>API用途</strong>：用户设置模块接口：获取设置（proto 方法 UserSettingService.GetUserSetting）。</li><li><strong>这接口能干啥（大白话）</strong>：设置：查看设置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.usersetting.v1.GetUserSettingRequest</code></p><p>（空消息，无字段）</p><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.usersetting.v1.UserSettingService/GetUserSetting</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.usersetting.v1.GetUserSettingResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userSetting</code></td><td>message <code>UserSetting</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h3 id="260-·-UpdateUserSetting-—-更新设置"><a href="#260-·-UpdateUserSetting-—-更新设置" class="headerlink" title="260 · UpdateUserSetting — 更新设置"></a>260 · UpdateUserSetting — 更新设置</h3><p><strong>服务</strong>：<code>kimi.usersetting.v1.UserSettingService</code> · <strong>协议</strong>：Unary · <strong>HTTP</strong>：POST</p><p><strong>地址</strong>：<code>https://www.kimi.com/apiv2/kimi.usersetting.v1.UserSettingService/UpdateUserSetting</code></p><ul><li><strong>API用途</strong>：用户设置模块接口：更新设置（proto 方法 UserSettingService.UpdateUserSetting）。</li><li><strong>这接口能干啥（大白话）</strong>：设置：修改设置。</li></ul><p><strong>请求头</strong>：全局通用 18 项（见「3. 全局通用请求头」）</p><p><strong>请求体</strong> — <code>com.moonshot.kimi.proto.kimi.usersetting.v1.UpdateUserSettingRequest</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userSetting</code></td><td>message <code>UserSetting</code></td></tr><tr><td><code>updateMask</code></td><td>string</td></tr></tbody></table><p><strong>调用示例</strong></p><div class="code-container" data-rel="Http"><figure class="iseeu highlight http"><table><tr><td class="code"><pre><span class="line">POST https://www.kimi.com/apiv2/kimi.usersetting.v1.UserSettingService/UpdateUserSetting</span><br><span class="line"><span class="attribute">Content-Type</span><span class="punctuation">: </span>application/json</span><br><span class="line"><span class="attribute">Authorization</span><span class="punctuation">: </span>Bearer &lt;accessToken&gt;</span><br><span class="line"><span class="attribute">x-msh-platform</span><span class="punctuation">: </span>android</span><br><span class="line"><span class="attribute">x-msh-version</span><span class="punctuation">: </span>3.1.0</span><br><span class="line"><span class="attribute">X-Language</span><span class="punctuation">: </span>zh-CN</span><br><span class="line"><span class="attribute">X-Msh-Shield-Data</span><span class="punctuation">: </span>&lt;risk&gt;</span><br><span class="line">Body(JSON): &#123; ...&lt;Request 字段&gt;... &#125;</span><br><span class="line">--&gt; 200 OK, body = JSON(&lt;Response&gt;)</span><br></pre></td></tr></table></figure></div><p><strong>返回格式</strong> — <code>com.moonshot.kimi.proto.kimi.usersetting.v1.UpdateUserSettingResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>userSetting</code></td><td>message <code>UserSetting</code></td></tr></tbody></table><p><strong>返回解析说明</strong></p><p>按 proto JSON 解析为 Response 对象；<code>code != 0</code> 时读取 <code>message</code> 与 <code>details</code>；<code>401/403</code> 触发 token 刷新或登录引导；<code>429</code> 触发退避重试。</p><p><strong>特殊备注</strong></p><ul><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li><li><p>所有请求必须携带设备头（<code>x-msh-*</code>）与风控头（<code>X-Msh-Shield-Data</code>），否则可能被风控拦截。</p></li></ul><h2 id="附录"><a href="#附录" class="headerlink" title="附录"></a>附录</h2><h3 id="附录-A：protobuf-消息定义汇总"><a href="#附录-A：protobuf-消息定义汇总" class="headerlink" title="附录 A：protobuf 消息定义汇总"></a>附录 A：protobuf 消息定义汇总</h3><p>共 909 个消息。字段来自序列化器 descriptor 元素与字段声明签名还原。</p><p><strong>com.moonshot.kimi.proto.account.gateway.v1</strong></p><ul><li><p><strong>BindPhoneRequest</strong>：<code>thirdParty</code> message ｜ <code>phone</code> message ｜ <code>verifyCode</code> string ｜ <code>wechatPhoneCode</code> string</p></li><li><p><strong>BindPhoneResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string ｜ <code>newUser</code> bool ｜ <code>userId</code> string</p></li><li><p><strong>ConfirmLoginQRCodeRequest</strong>：<code>code</code> string</p></li><li><p><strong>ConfirmLoginQRCodeResponse</strong>：（空消息）</p></li><li><p><strong>Country</strong>：<code>name</code> string ｜ <code>countryCode</code> string ｜ <code>locale</code> string</p></li><li><p><strong>ListCountriesRequest</strong>：（空消息）</p></li><li><p><strong>ListCountriesResponse</strong>：<code>defaultCountry</code> message ｜ <code>countries</code> repeated</p></li><li><p><strong>LoginWithOneClickRequest</strong>：<code>token</code> string</p></li><li><p><strong>LoginWithOneClickResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string ｜ <code>newUser</code> bool ｜ <code>userId</code> string</p></li><li><p><strong>LoginWithSMSRequest</strong>：<code>phone</code> message ｜ <code>verifyCode</code> string</p></li><li><p><strong>LoginWithSMSResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string ｜ <code>newUser</code> bool ｜ <code>userId</code> string</p></li><li><p><strong>LoginWithThirdPartyRequest</strong>：<code>credential</code> message</p></li><li><p><strong>LoginWithThirdPartyResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string ｜ <code>newUser</code> bool ｜ <code>userId</code> string</p></li><li><p><strong>LogoutRequest</strong>：（空消息）</p></li><li><p><strong>LogoutResponse</strong>：（空消息）</p></li><li><p><strong>RefreshTokenRequest</strong>：<code>refreshToken</code> string</p></li><li><p><strong>RefreshTokenResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string</p></li><li><p><strong>RegisterDeviceRequest</strong>：<code>pushDevice</code> message</p></li><li><p><strong>RegisterDeviceResponse</strong>：（空消息）</p></li><li><p><strong>ScanLoginQRCodeRequest</strong>：<code>code</code> string</p></li><li><p><strong>ScanLoginQRCodeResponse</strong>：（空消息）</p></li><li><p><strong>SendVerifyCodeRequest</strong>：<code>scene</code> enum ｜ <code>phone</code> message ｜ <code>captcha</code> message</p></li><li><p><strong>SendVerifyCodeResponse</strong>：（空消息）</p></li><li><p><strong>ThirdAccount</strong>：<code>thirdParty</code> enum ｜ <code>unionId</code> string ｜ <code>nickname</code> string ｜ <code>avatar</code> string ｜ <code>email</code> string ｜ <code>bindTime</code> string</p></li><li><p><strong>ThirdPartyCredential</strong>：<code>thirdParty</code> enum ｜ <code>code</code> string<br><strong>com.moonshot.kimi.proto.account.gateway.v1.RegisterDeviceRequest</strong></p></li><li><p><strong>PushDevice</strong>：<code>id</code> string ｜ <code>provider</code> enum<br><strong>com.moonshot.kimi.proto.common.action.v1</strong></p></li><li><p><strong>BoosterAction</strong>：<code>needTopup</code> bool ｜ <code>needEnable</code> bool ｜ <code>source</code> string</p></li><li><p><strong>PaywallAction</strong>：<code>needUpgrade</code> bool ｜ <code>upgradeTo</code> enum ｜ <code>source</code> string<br><strong>com.moonshot.kimi.proto.common.error.v1</strong></p></li><li><p><strong>ErrorDetail</strong>：<code>reason</code> enum ｜ <code>localizedMessage</code> message ｜ <code>paywall</code> message<br><strong>com.moonshot.kimi.proto.google.rpc</strong></p></li><li><p><strong>LocalizedMessage</strong>：<code>locale</code> string ｜ <code>message</code> string<br><strong>com.moonshot.kimi.proto.growth.pay.v1</strong></p></li><li><p><strong>WechatPassthroughParams</strong>：<code>miniprogramUsername</code> string ｜ <code>miniprogramPath</code> string<br><strong>com.moonshot.kimi.proto.kimi.artifact.v1</strong></p></li><li><p><strong>ArtifactShare</strong>：<code>id</code> string ｜ <code>path</code> string ｜ <code>type</code> enum ｜ <code>title</code> string ｜ <code>content</code> string ｜ <code>isActive</code> bool ｜ <code>shareTime</code> string ｜ <code>version</code> string ｜ <code>artifactId</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1</strong></p></li><li><p><strong>AIPPTBlock</strong>：<code>status</code> string ｜ <code>designId</code> string ｜ <code>coverUrl</code> string ｜ <code>pptTaskId</code> string ｜ <code>title</code> string ｜ <code>pdfSizeByte</code> int32 ｜ <code>pptSizeByte</code> int32 ｜ <code>pptDownloadUrl</code> string ｜ <code>pdfDownloadUrl</code> string</p></li><li><p><strong>AgentMessageBlock</strong>：<code>agentId</code> string ｜ <code>agentIcon</code> string ｜ <code>agentName</code> string ｜ <code>content</code> string</p></li><li><p><strong>ArtifactBlock</strong>：<code>artifactId</code> string ｜ <code>type</code> enum ｜ <code>version</code> string ｜ <code>content</code> string ｜ <code>path</code> string ｜ <code>title</code> string</p></li><li><p><strong>Block</strong>：<code>id</code> string ｜ <code>parentId</code> string ｜ <code>messageId</code> string ｜ <code>text</code> message ｜ <code>search</code> message ｜ <code>file</code> message ｜ <code>think</code> message ｜ <code>exception</code> message ｜ <code>memory</code> message ｜ <code>contractReview</code> message ｜ <code>tool</code> message ｜ <code>artifact</code> message ｜ <code>slidesView</code> message ｜ <code>stage</code> message ｜ <code>multiStage</code> message ｜ <code>elemeMenuCard</code> message ｜ <code>elemeOrderCard</code> message ｜ <code>videoCards</code> message ｜ <code>visualEdit</code> message ｜ <code>websitesTemplate</code> message ｜ <code>slidesAnnotation</code> message ｜ <code>explorerResearch</code> message ｜ <code>explorerResearchReanswer</code> message ｜ <code>aippt</code> message ｜ <code>contentViewZhidemaiCard</code> message ｜ <code>resourceLink</code> message ｜ <code>imRoomSystem</code> message ｜ <code>agentMessage</code> message ｜ <code>error</code> message ｜ <code>createTime</code> string</p></li><li><p><strong>Card</strong>：<code>title</code> string ｜ <code>abstract</code> string</p></li><li><p><strong>Chat</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>messageContent</code> string ｜ <code>kimiPlus</code> message ｜ <code>projectId</code> string ｜ <code>project</code> message ｜ <code>pinned</code> bool ｜ <code>lastRequest</code> message ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>source</code> message ｜ <code>status</code> enum ｜ <code>statusText</code> string ｜ <code>goal</code> message ｜ <code>model</code> string ｜ <code>labels</code> repeated ｜ <code>labelsValue</code> repeated ｜ <code>files</code> repeated</p></li><li><p><strong>ChatBrief</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>labels</code> repeated ｜ <code>labelsValue</code> repeated</p></li><li><p><strong>ChatMessage</strong>：<code>id</code> string ｜ <code>parentId</code> string ｜ <code>role</code> enum ｜ <code>status</code> enum ｜ <code>refs</code> message ｜ <code>scenario</code> enum ｜ <code>kimiPlus</code> message ｜ <code>vote</code> enum ｜ <code>error</code> message ｜ <code>createTime</code> string ｜ <code>isGoal</code> bool ｜ <code>childrenMessageIds</code> repeated ｜ <code>blocks</code> repeated ｜ <code>references</code> repeated ｜ <code>labels</code> repeated ｜ <code>labelsValue</code> repeated</p></li><li><p><strong>ChatRequestOptions</strong>：<code>lbs</code> message ｜ <code>voiceId</code> string ｜ <code>thinking</code> bool ｜ <code>systemPrompt</code> string ｜ <code>slides</code> message ｜ <code>kimiClaw</code> message ｜ <code>enablePlugin</code> bool ｜ <code>reasoningEffort</code> enum ｜ <code>contextLength</code> enum ｜ <code>model</code> string ｜ <code>arena</code> message</p></li><li><p><strong>ChatShare</strong>：<code>id</code> string ｜ <code>chat</code> message ｜ <code>creator</code> message ｜ <code>createTime</code> string ｜ <code>url</code> string ｜ <code>card</code> message ｜ <code>messages</code> repeated</p></li><li><p><strong>ChatShareCreator</strong>：<code>name</code> string ｜ <code>avatarUrl</code> string</p></li><li><p><strong>ChatSource</strong>：<code>type</code> enum ｜ <code>projectId</code> string ｜ <code>momentId</code> string ｜ <code>kimiplusId</code> string</p></li><li><p><strong>CodeReference</strong>：<code>path</code> string</p></li><li><p><strong>ContentViewZhidemaiBlock</strong>：<code>source</code> string ｜ <code>list</code> repeated</p></li><li><p><strong>ContractReviewBlock</strong>：<code>status</code> enum ｜ <code>id</code> string ｜ <code>url</code> string</p></li><li><p><strong>DreamVaultPageRef</strong>：<code>sandboxUri</code> string</p></li><li><p><strong>EditOperation</strong>：<code>instruction</code> string ｜ <code>visualSelection</code> message ｜ <code>codeReference</code> message</p></li><li><p><strong>ElemeCardSKU</strong>：<code>name</code> string ｜ <code>amount</code> double ｜ <code>picUrl</code> string ｜ <code>clickUrl</code> string</p></li><li><p><strong>ElemeMenuCardBlock</strong>：<code>query</code> string ｜ <code>title</code> string ｜ <code>description</code> string ｜ <code>minOrderAmount</code> double ｜ <code>deliveryTime</code> string ｜ <code>deliveryFee</code> double ｜ <code>clickUrl</code> string ｜ <code>sku</code> repeated</p></li><li><p><strong>ElemeOrderCardBlock</strong>：<code>extId</code> string ｜ <code>title</code> string ｜ <code>status</code> string ｜ <code>amount</code> double ｜ <code>paymentSuccessTime</code> string ｜ <code>clickUrl</code> string ｜ <code>sku</code> repeated</p></li><li><p><strong>Error</strong>：<code>reason</code> enum ｜ <code>localizedMessage</code> message ｜ <code>severity</code> enum</p></li><li><p><strong>ExceptionBlock</strong>：<code>error</code> message</p></li><li><p><strong>ExplorerResearchBlock</strong>：<code>status</code> enum ｜ <code>steps</code> repeated</p></li><li><p><strong>ExplorerResearchReanswerBlock</strong>：<code>usedTargetCount</code> int32 ｜ <code>usedUrlCount</code> int32 ｜ <code>readUrlCount</code> int32</p></li><li><p><strong>ExtensionRef</strong>：<code>plugin</code> message ｜ <code>skill</code> message</p></li><li><p><strong>FileRef</strong>：<code>file</code> message ｜ <code>externalId</code> string ｜ <code>sandboxUri</code> string ｜ <code>slidesId</code> string ｜ <code>skillId</code> string ｜ <code>etag</code> string ｜ <code>skillVersion</code> int32</p></li><li><p><strong>Highlight</strong>：<code>text</code> string ｜ <code>anchorUrl</code> string ｜ <code>origin</code> message</p></li><li><p><strong>IMMentionedMemberRef</strong>：<code>shortId</code> string ｜ <code>name</code> string</p></li><li><p><strong>IMRoomSystemBlock</strong>：<code>membersJoined</code> message ｜ <code>memberLeft</code> message</p></li><li><p><strong>ImageItem</strong>：<code>id</code> string ｜ <code>caption</code> string ｜ <code>state</code> enum ｜ <code>url</code> string ｜ <code>originUrl</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>fullSizeUrl</code> string ｜ <code>displaySource</code> string ｜ <code>width</code> int32 ｜ <code>height</code> int32 ｜ <code>source</code> enum ｜ <code>fileId</code> string ｜ <code>sourceSiteUrl</code> string ｜ <code>refIndex</code> string</p></li><li><p><strong>KimiClawRequestOptions</strong>：<code>botId</code> string</p></li><li><p><strong>KimiPlus</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>avatarUrl</code> string ｜ <code>introduction</code> string ｜ <code>greeting</code> string ｜ <code>filePrompt</code> string ｜ <code>category</code> string ｜ <code>specialId</code> string ｜ <code>recommended</code> bool ｜ <code>pinned</code> bool ｜ <code>creatorName</code> string ｜ <code>deprecated</code> bool ｜ <code>inputPlaceholder</code> string ｜ <code>sceneIconUrl</code> message ｜ <code>scenario</code> enum ｜ <code>filePreset</code> enum ｜ <code>skillSupport</code> bool ｜ <code>recommendedPrompts</code> repeated ｜ <code>agentModes</code> repeated</p></li><li><p><strong>KimiPlusBrief</strong>：<code>id</code> string ｜ <code>avatarUrl</code> string ｜ <code>name</code> string ｜ <code>specialId</code> string</p></li><li><p><strong>LastRequestContext</strong>：<code>options</code> message ｜ <code>scenario</code> enum ｜ <code>tools</code> repeated</p></li><li><p><strong>MemoryBlock</strong>：<code>currentMemoryCount</code> int32 ｜ <code>maxMemoryCount</code> int32 ｜ <code>created</code> repeated ｜ <code>updated</code> repeated ｜ <code>deleted</code> repeated</p></li><li><p><strong>MultiStageBlock</strong>：<code>stages</code> repeated</p></li><li><p><strong>OutboxEvent</strong>：<code>type</code> enum ｜ <code>status</code> enum ｜ <code>chatId</code> string</p></li><li><p><strong>OutboxMessage</strong>：<code>id</code> string ｜ <code>chatId</code> string ｜ <code>message</code> message ｜ <code>position</code> int32 ｜ <code>status</code> enum ｜ <code>createTime</code> string ｜ <code>updateTime</code> string</p></li><li><p><strong>PluginExtension</strong>：<code>id</code> string ｜ <code>displayName</code> string ｜ <code>iconUrl</code> string ｜ <code>colorLight</code> string ｜ <code>colorDark</code> string</p></li><li><p><strong>ProductRef</strong>：<code>id</code> string ｜ <code>products</code> repeated</p></li><li><p><strong>Reference</strong>：<code>matchedText</code> string ｜ <code>type</code> enum ｜ <code>items</code> repeated</p></li><li><p><strong>Refs</strong>：<code>searchChunks</code> repeated ｜ <code>urls</code> repeated ｜ <code>images</code> repeated ｜ <code>products</code> repeated ｜ <code>usedSearchChunks</code> repeated ｜ <code>sandboxFiles</code> repeated</p></li><li><p><strong>ResourceLink</strong>：<code>title</code> string ｜ <code>uri</code> string ｜ <code>downloadUrl</code> int32 ｜ <code>etag</code> string ｜ <code>sizeBytes</code> string</p></li><li><p><strong>SandboxFileRef</strong>：<code>uri</code> string ｜ <code>externalId</code> string ｜ <code>downloadUrl</code> string ｜ <code>etag</code> string ｜ <code>sizeBytes</code> string ｜ <code>slidesId</code> string ｜ <code>skillId</code> string ｜ <code>skillVersion</code> int32</p></li><li><p><strong>SearchBlock</strong>：<code>keywords</code> repeated ｜ <code>webPages</code> repeated</p></li><li><p><strong>SearchChunkBrief</strong>：<code>id</code> string ｜ <code>base</code> message ｜ <code>refIndex</code> string ｜ <code>chunk</code> string</p></li><li><p><strong>SearchResultBase</strong>：<code>title</code> string ｜ <code>url</code> string ｜ <code>siteName</code> string ｜ <code>iconUrl</code> string ｜ <code>coverUrl</code> string ｜ <code>snippet</code> string ｜ <code>publishTime</code> string ｜ <code>siteQuality</code> message ｜ <code>fileType</code> message ｜ <code>fileId</code> string ｜ <code>keyword</code> string ｜ <code>downloadUrl</code> string ｜ <code>highlight</code> string ｜ <code>textFragment</code> string</p></li><li><p><strong>SearchSiteQuality</strong>：<code>isTrustedSite</code> string ｜ <code>description</code> bool</p></li><li><p><strong>SkillExtension</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>displayName</code> string</p></li><li><p><strong>SlideAnnotation</strong>：<code>annotationId</code> string ｜ <code>annotation</code> string ｜ <code>pageId</code> string ｜ <code>pageIndex</code> int32 ｜ <code>elementId</code> string ｜ <code>cx</code> int32 ｜ <code>cy</code> int32</p></li><li><p><strong>SlidesAnnotationBlock</strong>：<code>currentPage</code> string ｜ <code>annotations</code> repeated</p></li><li><p><strong>SlidesRequestOptions</strong>：<code>type</code> enum ｜ <code>templateId</code> string ｜ <code>templateType</code> enum ｜ <code>bananaStyleId</code> string ｜ <code>htmlStyleId</code> string ｜ <code>pptdStyleId</code> string ｜ <code>customStyleId</code> string ｜ <code>pageLimit</code> enum ｜ <code>designOptions</code> message ｜ <code>colorScheme</code> message</p></li><li><p><strong>SlidesViewBlock</strong>：<code>payloadUrl</code> string ｜ <code>coverUrl</code> string ｜ <code>name</code> string ｜ <code>slidesId</code> string ｜ <code>templateId</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>status</code> enum ｜ <code>type</code> enum</p></li><li><p><strong>StageBlock</strong>：<code>name</code> enum ｜ <code>createTime</code> string ｜ <code>durationSeconds</code> string ｜ <code>description</code> string ｜ <code>index</code> int32 ｜ <code>status</code> enum</p></li><li><p><strong>TextBlock</strong>：<code>content</code> string ｜ <code>tips</code> string</p></li><li><p><strong>ThemedIcon</strong>：<code>light</code> string ｜ <code>dark</code> string ｜ <code>tintable</code> string</p></li><li><p><strong>ThinkBlock</strong>：<code>content</code> string ｜ <code>summary</code> string</p></li><li><p><strong>Tool</strong>：<code>type</code> enum ｜ <code>search</code> message ｜ <code>genImage</code> message ｜ <code>name</code> string</p></li><li><p><strong>ToolBlock</strong>：<code>toolCallId</code> string ｜ <code>name</code> string ｜ <code>args</code> string ｜ <code>isError</code> bool ｜ <code>errorCode</code> enum ｜ <code>mcp</code> message ｜ <code>status</code> enum ｜ <code>task</code> message ｜ <code>createSubagent</code> message ｜ <code>slidesGenerator</code> message ｜ <code>appVersion</code> message ｜ <code>cronJob</code> message ｜ <code>subagent</code> message ｜ <code>paywall</code> message ｜ <code>loadType</code> enum ｜ <code>contentCount</code> int32 ｜ <code>plugin</code> message ｜ <code>contents</code> repeated</p></li><li><p><strong>ToolBlockContent</strong>：<code>text</code> string ｜ <code>resourceLink</code> message ｜ <code>image</code> message ｜ <code>searchResult</code> message ｜ <code>slides</code> message ｜ <code>memory</code> message ｜ <code>goods</code> message ｜ <code>mutableText</code> message ｜ <code>webOpenUrl</code> message</p></li><li><p><strong>ToolContentGoods</strong>：<code>goods</code> message ｜ <code>discountId</code> string</p></li><li><p><strong>ToolContentMemory</strong>：<code>action</code> enum ｜ <code>memory</code> message ｜ <code>error</code> message ｜ <code>totalCount</code> int32 ｜ <code>memoryLimit</code> int32</p></li><li><p><strong>ToolContentMutableText</strong>：<code>artifactId</code> string ｜ <code>content</code> string</p></li><li><p><strong>ToolContentSlides</strong>：<code>slidesId</code> string ｜ <code>outlineArtifactId</code> string</p></li><li><p><strong>ToolContentWebOpenURL</strong>：<code>url</code> string ｜ <code>title</code> string ｜ <code>icon</code> string ｜ <code>status</code> string</p></li><li><p><strong>ToolMetaAppVersion</strong>：<code>versionId</code> string ｜ <code>version</code> string ｜ <code>name</code> string ｜ <code>description</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>bigVersion</code> int32</p></li><li><p><strong>ToolMetaCreateSubagent</strong>：<code>name</code> string ｜ <code>workers</code> repeated</p></li><li><p><strong>ToolMetaCronJob</strong>：<code>cronJobId</code> string</p></li><li><p><strong>ToolMetaSlidesGenerator</strong>：<code>slidesId</code> string</p></li><li><p><strong>ToolMetaSubagent</strong>：<code>agentId</code> string ｜ <code>agentIndex</code> string ｜ <code>agentIcon</code> int32 ｜ <code>agentName</code> string ｜ <code>agentType</code> string</p></li><li><p><strong>ToolMetaTask</strong>：<code>msgId</code> string ｜ <code>name</code> string ｜ <code>todoList</code> string ｜ <code>worker</code> message ｜ <code>startTime</code> string ｜ <code>durationSeconds</code> string</p></li><li><p><strong>ToolSubagentWorker</strong>：<code>name</code> string ｜ <code>iconUrl</code> string ｜ <code>motto</code> string</p></li><li><p><strong>URLRef</strong>：<code>id</code> string ｜ <code>url</code> string ｜ <code>status</code> enum ｜ <code>wordCount</code> int32 ｜ <code>title</code> string ｜ <code>iconUrl</code> string</p></li><li><p><strong>VideoCard</strong>：<code>source</code> string ｜ <code>iconUrl</code> string ｜ <code>title</code> string ｜ <code>author</code> message ｜ <code>iframeUrl</code> string ｜ <code>coverUrl</code> string ｜ <code>coverThumbnailUrl</code> string</p></li><li><p><strong>VideoCardsBlock</strong>：<code>cards</code> repeated</p></li><li><p><strong>VisualEditBlock</strong>：<code>operations</code> repeated</p></li><li><p><strong>VisualSelection</strong>：<code>screenshot</code> message</p></li><li><p><strong>WebsitesTemplateBlock</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>templateName</code> string ｜ <code>coverUrl</code> string ｜ <code>templateType</code> enum<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.ChatRequestOptions</strong></p></li><li><p><strong>LBS</strong>：<code>longitude</code> double ｜ <code>latitude</code> double ｜ <code>coordSystem</code> string ｜ <code>address</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.ContentViewZhidemaiBlock</strong></p></li><li><p><strong>Card</strong>：<code>title</code> string ｜ <code>price</code> double ｜ <code>mallName</code> string ｜ <code>url</code> string ｜ <code>pic</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.ExplorerResearchBlock</strong></p></li><li><p><strong>Step</strong>：<code>title</code> string ｜ <code>status</code> enum ｜ <code>keywords</code> repeated ｜ <code>webPages</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.Highlight</strong></p></li><li><p><strong>Origin</strong>：<code>startOffset</code> int32 ｜ <code>endOffset</code> int32 ｜ <code>text</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.IMRoomSystemBlock</strong></p></li><li><p><strong>Member</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>avatarUrl</code> string</p></li><li><p><strong>MemberLeft</strong>：<code>members</code> repeated</p></li><li><p><strong>MembersJoined</strong>：<code>members</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.KimiPlus</strong></p></li><li><p><strong>AgentMode</strong>：<code>displayName</code> string ｜ <code>description</code> string ｜ <code>type</code> enum ｜ <code>minMembershipLevel</code> enum ｜ <code>greeting</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.ProductRef</strong></p></li><li><p><strong>Product</strong>：<code>id</code> string ｜ <code>siteName</code> string ｜ <code>title</code> string ｜ <code>price</code> float ｜ <code>sales</code> int32 ｜ <code>siteUrl</code> string ｜ <code>imageUrls</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.Reference</strong></p></li><li><p><strong>RefItem</strong>：<code>search</code> message ｜ <code>file</code> message ｜ <code>image</code> message ｜ <code>imMember</code> message ｜ <code>extension</code> message ｜ <code>vaultPage</code> message<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.Tool</strong></p></li><li><p><strong>GenImage</strong>：<code>force</code> bool ｜ <code>ratio</code> message</p></li><li><p><strong>Search</strong>：<code>force</code> bool<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.ToolBlock</strong></p></li><li><p><strong>SourceMCP</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>iconUrl</code> string<br><strong>com.moonshot.kimi.proto.kimi.chat.v1.VideoCard</strong></p></li><li><p><strong>AuthorInfo</strong>：<code>name</code> string ｜ <code>avatar</code> string<br><strong>com.moonshot.kimi.proto.kimi.chatty.v1</strong></p></li><li><p><strong>AgentRecipeOverrides</strong>：<code>modelConfig</code> message ｜ <code>promptConfig</code> message ｜ <code>toolPreset</code> string</p></li><li><p><strong>ArenaModelConfig</strong>：<code>model</code> string ｜ <code>temperature</code> float</p></li><li><p><strong>ArenaPromptConfig</strong>：<code>spKeyZh</code> string ｜ <code>spKeyEn</code> string</p></li><li><p><strong>ChatArenaConfig</strong>：<code>overrides</code> message</p></li><li><p><strong>GenericToolReply</strong>：<code>result</code> string</p></li><li><p><strong>GenericToolRequest</strong>：<code>name</code> string ｜ <code>args</code> string</p></li><li><p><strong>Interaction</strong>：<code>id</code> string ｜ <code>type</code> enum ｜ <code>expireTime</code> string ｜ <code>genericTool</code> message ｜ <code>interrupt</code> message</p></li><li><p><strong>InteractionReply</strong>：<code>id</code> string ｜ <code>type</code> enum ｜ <code>lbs</code> message ｜ <code>genericTool</code> message ｜ <code>slidesOutline</code> message ｜ <code>interrupt</code> message ｜ <code>error</code> message ｜ <code>internalData</code> message</p></li><li><p><strong>InternalData</strong>：<code>data</code> map</p></li><li><p><strong>InterruptReply</strong>：<code>action</code> enum</p></li><li><p><strong>InterruptRequest</strong>：<code>toolCallId</code> string</p></li><li><p><strong>LBSReply</strong>：<code>latitude</code> double ｜ <code>longitude</code> double</p></li><li><p><strong>SlidesOutlineReply</strong>：<code>action</code> enum</p></li><li><p><strong>ToolError</strong>：<code>code</code> enum ｜ <code>msg</code> string</p></li><li><p><strong>ToolResultResourceLink</strong>：<code>url</code> string ｜ <code>title</code> string ｜ <code>mimeType</code> string ｜ <code>originalUrl</code> string ｜ <code>fileId</code> string ｜ <code>uri</code> string<br><strong>com.moonshot.kimi.proto.kimi.common.v1</strong></p></li><li><p><strong>Captcha</strong>：<code>captchaId</code> string ｜ <code>validate</code> string</p></li><li><p><strong>PhoneNumber</strong>：<code>countryCode</code> string ｜ <code>number</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1</strong></p></li><li><p><strong>AccountConfig</strong>：<code>disableChangePhone</code> bool ｜ <code>disableChangeAvatar</code> bool</p></li><li><p><strong>AppStoreConfig</strong>：<code>packageName</code> string ｜ <code>minVersionCode</code> int32</p></li><li><p><strong>CacheLimitsConfig</strong>：<code>maxImageSizeMb</code> float ｜ <code>maxDownloadSizeMb</code> float</p></li><li><p><strong>ClawGroupChatConfig</strong>：<code>kimiclawInstallCmd</code> string ｜ <code>inviteCardImages</code> repeated</p></li><li><p><strong>Config</strong>：<code>system</code> message ｜ <code>model</code> message ｜ <code>taskbar</code> message ｜ <code>upgrade</code> message ｜ <code>feedback</code> message</p></li><li><p><strong>DefaultScenarioConfig</strong>：<code>tip</code> string ｜ <code>scenario</code> enum ｜ <code>thinking</code> bool ｜ <code>model</code> string</p></li><li><p><strong>Feedback</strong>：<code>type</code> enum ｜ <code>description</code> string ｜ <code>positiveOptions</code> repeated ｜ <code>negativeOptions</code> repeated</p></li><li><p><strong>FeedbackConfig</strong>：<code>items</code> repeated</p></li><li><p><strong>ImageGenPreferences</strong>：<code>prompt</code> string ｜ <code>ratios</code> repeated</p></li><li><p><strong>KimiplusPlazaConfig</strong>：<code>enabled</code> bool ｜ <code>offlineTitle</code> string ｜ <code>offlineMessage</code> string</p></li><li><p><strong>LikesPopup</strong>：<code>enabled</code> bool ｜ <code>maxTriggerTimes</code> int32</p></li><li><p><strong>MembershipConfig</strong>：<code>featureConfig</code> message ｜ <code>balanceConfig</code> message</p></li><li><p><strong>Model</strong>：<code>scenario</code> enum ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>thinking</code> bool ｜ <code>legacy</code> bool ｜ <code>kimiPlusId</code> string ｜ <code>agentMode</code> enum ｜ <code>filePreset</code> enum ｜ <code>inputPlaceholder</code> string ｜ <code>key</code> string ｜ <code>defaultReasoningEffort</code> enum ｜ <code>modelId</code> string ｜ <code>defaultContextLength</code> enum ｜ <code>id</code> string ｜ <code>minMembershipLevel</code> enum ｜ <code>greeting</code> string ｜ <code>label</code> repeated ｜ <code>switchableTo</code> repeated ｜ <code>reasoningEffortOptions</code> repeated ｜ <code>contextLengthOptions</code> repeated</p></li><li><p><strong>ModelConfig</strong>：<code>default</code> message ｜ <code>items</code> repeated</p></li><li><p><strong>OKCConfig</strong>：<code>ultraModeConfig</code> message</p></li><li><p><strong>PopupInteractionConfig</strong>：<code>continuousActive</code> message ｜ <code>likesReminder</code> message</p></li><li><p><strong>ProjectConfig</strong>：<code>enabled</code> bool ｜ <code>iconUrls</code> repeated ｜ <code>cases</code> repeated</p></li><li><p><strong>RemoteControlConfig</strong>：<code>enabled</code> bool</p></li><li><p><strong>SlidesConfig</strong>：<code>bananaStyles</code> repeated ｜ <code>pageLimits</code> repeated ｜ <code>styleCategoryOrders</code> repeated</p></li><li><p><strong>SystemConfig</strong>：<code>greeting</code> int32 ｜ <code>popupConfig</code> int32 ｜ <code>cacheLimits</code> message ｜ <code>enablePhotoRotationCheck</code> message ｜ <code>allowAnonymous</code> message ｜ <code>enablePhotoSolve</code> bool ｜ <code>activityPromoEnded</code> bool ｜ <code>blackFridayEnded</code> bool ｜ <code>blackFridayUrl</code> bool ｜ <code>blackFridayIcon</code> bool ｜ <code>blackFridayIconEnabled</code> string ｜ <code>blackFridayShareTurn</code> string ｜ <code>blackFridayWebCharmUrl</code> bool ｜ <code>bananaPptState</code> int32 ｜ <code>wpsAppId</code> string ｜ <code>kimiplusPlaza</code> int32 ｜ <code>slidesConfig</code> string ｜ <code>okcConfig</code> message ｜ <code>domains</code> message ｜ <code>androidClawDownloadLink</code> message ｜ <code>membershipConfig</code> message ｜ <code>clawGroupChatConfig</code> string ｜ <code>workDiscountConfig</code> message ｜ <code>projectConfig</code> message ｜ <code>widgetDomain</code> message ｜ <code>accountConfig</code> message ｜ <code>webDomainMigrationDialog</code> string ｜ <code>subscribeDomain</code> message ｜ <code>appDownloadQrUrl</code> message ｜ <code>remoteControlConfig</code> string ｜ <code>blockedUrls</code> string ｜ <code>trustedImageDomains</code> message ｜ <code>jsBridgeDomains</code> repeated ｜ <code>webviewRedirectAllowSchemes</code> repeated</p></li><li><p><strong>Taskbar</strong>：<code>type</code> enum ｜ <code>displayName</code> string ｜ <code>iconUrl</code> string ｜ <code>redirectUrl</code> string ｜ <code>imageGenPreferences</code> message ｜ <code>translatePreferences</code> message ｜ <code>writingPreferences</code> message ｜ <code>scenario</code> enum ｜ <code>position</code> int32 ｜ <code>kimiplusId</code> string ｜ <code>minMembershipLevel</code> enum ｜ <code>appearance</code> message ｜ <code>model</code> string</p></li><li><p><strong>TaskbarAppearance</strong>：<code>light</code> message ｜ <code>dark</code> message</p></li><li><p><strong>TaskbarAppearanceVariant</strong>：<code>iconUrl</code> string ｜ <code>textColor</code> string ｜ <code>backgroundColor</code> string</p></li><li><p><strong>TaskbarConfig</strong>：<code>items</code> repeated</p></li><li><p><strong>TranslateOption</strong>：<code>autoLanguagePrompt</code> string ｜ <code>prompt</code> string ｜ <code>name</code> string ｜ <code>style</code> enum ｜ <code>targetLanguages</code> repeated ｜ <code>sourceLanguages</code> repeated ｜ <code>replaces</code> repeated</p></li><li><p><strong>TranslatePreferences</strong>：<code>options</code> repeated</p></li><li><p><strong>TranslateReplace</strong>：<code>sourceLanguage</code> string ｜ <code>targetLanguage</code> string ｜ <code>prompt</code> string</p></li><li><p><strong>UpgradeConfig</strong>：<code>version</code> string ｜ <code>displayVersion</code> string ｜ <code>downloadUrl</code> string ｜ <code>packageSizeMb</code> float ｜ <code>upgradeStrategy</code> enum ｜ <code>upgradeDialog</code> message ｜ <code>showDialogIntervalMs</code> string ｜ <code>inCanary</code> bool ｜ <code>appStores</code> repeated</p></li><li><p><strong>UpgradeRemind</strong>：<code>title</code> string ｜ <code>content</code> string ｜ <code>primaryAction</code> string ｜ <code>secondaryAction</code> string</p></li><li><p><strong>WebDomainMigrationDialog</strong>：<code>show</code> bool ｜ <code>title</code> string ｜ <code>content</code> string ｜ <code>btnLabel</code> string</p></li><li><p><strong>WorkDiscountConfig</strong>：<code>startTime</code> string ｜ <code>endTime</code> string</p></li><li><p><strong>WritingPreferences</strong>：<code>defaultTypePrompt</code> string ｜ <code>types</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.config.v1.MembershipConfig</strong></p></li><li><p><strong>BalanceConfig</strong>：<code>creditRatioThreshold</code> float</p></li><li><p><strong>FeatureConfig</strong>：<code>itemConfigs</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.config.v1.MembershipConfig.FeatureConfig</strong></p></li><li><p><strong>ItemConfig</strong>：<code>feature</code> enum ｜ <code>displayName</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1.Model</strong></p></li><li><p><strong>ContextLengthOption</strong>：<code>contextLength</code> enum ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>label</code> string ｜ <code>available</code> bool ｜ <code>minMembershipLevel</code> enum</p></li><li><p><strong>ReasoningEffortOption</strong>：<code>effort</code> enum ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>reasoningEffort</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1.OKCConfig</strong></p></li><li><p><strong>UltraModeConfig</strong>：<code>multiplier</code> int32 ｜ <code>workerActions</code> repeated ｜ <code>workersForLoading</code> repeated ｜ <code>workerIdleActions</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.config.v1.OKCConfig.UltraModeConfig</strong></p></li><li><p><strong>WorkerConfig</strong>：<code>name</code> string ｜ <code>avatarUrl</code> string ｜ <code>role</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1.PopupInteractionConfig</strong></p></li><li><p><strong>ContinuousActivePopup</strong>：<code>enabled</code> bool ｜ <code>requiredActiveDays</code> int32 ｜ <code>maxTriggerTimes</code> int32<br><strong>com.moonshot.kimi.proto.kimi.config.v1.ProjectConfig</strong></p></li><li><p><strong>CaseConfig</strong>：<code>name</code> string ｜ <code>iconUrl</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1.SlidesConfig</strong></p></li><li><p><strong>BananaStyle</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>thumbnailUrl</code> string</p></li><li><p><strong>PageLimitOption</strong>：<code>value</code> string ｜ <code>label</code> string</p></li><li><p><strong>StyleCategoryOrder</strong>：<code>type</code> enum ｜ <code>categories</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.config.v1.SystemConfig</strong></p></li><li><p><strong>Domains</strong>：<code>api</code> string ｜ <code>cdnDomains</code> repeated</p></li><li><p><strong>Greeting</strong>：<code>content</code> string<br><strong>com.moonshot.kimi.proto.kimi.config.v1.WritingPreferences</strong></p></li><li><p><strong>Option</strong>：<code>name</code> string ｜ <code>optionType</code> enum ｜ <code>prompt</code> string ｜ <code>items</code> repeated</p></li><li><p><strong>Replace</strong>：<code>genre</code> string ｜ <code>prompt</code> string</p></li><li><p><strong>Type</strong>：<code>name</code> string ｜ <code>prompt</code> string ｜ <code>promptDefault</code> string ｜ <code>replaces</code> repeated ｜ <code>options</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.file.v1</strong></p></li><li><p><strong>Thumbnail</strong>：<code>thumbnailUrl</code> string ｜ <code>previewUrl</code> string ｜ <code>mobileThumbnailUrl</code> string</p></li><li><p><strong>URL</strong>：<code>title</code> string ｜ <code>date</code> string ｜ <code>textUrl</code> string ｜ <code>wordCount</code> string ｜ <code>icon</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.account.v1</strong></p></li><li><p><strong>BindGuardianRequest</strong>：<code>phone</code> message ｜ <code>passcode</code> string ｜ <code>passcodeConfirm</code> string</p></li><li><p><strong>BindGuardianResponse</strong>：<code>minorMode</code> message</p></li><li><p><strong>BindPhoneRequest</strong>：<code>phone</code> message ｜ <code>verifyCode</code> string</p></li><li><p><strong>BindPhoneResponse</strong>：（空消息）</p></li><li><p><strong>BindThirdAccountRequest</strong>：<code>credential</code> message</p></li><li><p><strong>BindThirdAccountResponse</strong>：（空消息）</p></li><li><p><strong>DeactivateAccountRequest</strong>：（空消息）</p></li><li><p><strong>DeactivateAccountResponse</strong>：（空消息）</p></li><li><p><strong>GetCurrentUserRequest</strong>：（空消息）</p></li><li><p><strong>GetCurrentUserResponse</strong>：<code>user</code> message ｜ <code>workspace</code> message</p></li><li><p><strong>GetMinorModeRequest</strong>：（空消息）</p></li><li><p><strong>GetMinorModeResponse</strong>：<code>minorMode</code> message</p></li><li><p><strong>ListThirdAccountsRequest</strong>：（空消息）</p></li><li><p><strong>ListThirdAccountsResponse</strong>：<code>thirdAccounts</code> repeated</p></li><li><p><strong>ListWorkspacesRequest</strong>：（空消息）</p></li><li><p><strong>ListWorkspacesResponse</strong>：<code>workspaces</code> repeated</p></li><li><p><strong>MinorMode</strong>：<code>userId</code> string ｜ <code>enabled</code> bool ｜ <code>guardianBound</code> bool ｜ <code>guardianPhoneMasked</code> message ｜ <code>passcodeLocked</code> bool ｜ <code>lockExpireTime</code> string ｜ <code>passcodeSet</code> bool</p></li><li><p><strong>RebindPhoneRequest</strong>：<code>phone</code> message ｜ <code>verifyCode</code> string</p></li><li><p><strong>RebindPhoneResponse</strong>：（空消息）</p></li><li><p><strong>ResetPasscodeRequest</strong>：<code>passcode</code> string ｜ <code>passcodeConfirm</code> string</p></li><li><p><strong>ResetPasscodeResponse</strong>：（空消息）</p></li><li><p><strong>SendVerifyCodeRequest</strong>：<code>scene</code> enum ｜ <code>phone</code> message ｜ <code>captcha</code> message</p></li><li><p><strong>SendVerifyCodeResponse</strong>：（空消息）</p></li><li><p><strong>SwitchWorkspaceRequest</strong>：<code>businessId</code> string</p></li><li><p><strong>SwitchWorkspaceResponse</strong>：<code>accessToken</code> string ｜ <code>refreshToken</code> string</p></li><li><p><strong>UnbindGuardianRequest</strong>：<code>verifyCode</code> string</p></li><li><p><strong>UnbindGuardianResponse</strong>：<code>minorMode</code> message</p></li><li><p><strong>UnbindThirdAccountRequest</strong>：<code>thirdParty</code> enum</p></li><li><p><strong>UnbindThirdAccountResponse</strong>：（空消息）</p></li><li><p><strong>UpdateMinorModeRequest</strong>：<code>enabled</code> bool ｜ <code>passcode</code> string</p></li><li><p><strong>UpdateMinorModeResponse</strong>：<code>minorMode</code> message</p></li><li><p><strong>UpdateProfileRequest</strong>：<code>nickname</code> string ｜ <code>bio</code> string</p></li><li><p><strong>UpdateProfileResponse</strong>：（空消息）</p></li><li><p><strong>User</strong>：<code>id</code> string ｜ <code>nickname</code> string ｜ <code>avatar</code> string ｜ <code>bio</code> string ｜ <code>phone</code> message ｜ <code>region</code> enum ｜ <code>globalId</code> string</p></li><li><p><strong>VerifyCurrentPhoneRequest</strong>：<code>verifyCode</code> string</p></li><li><p><strong>VerifyCurrentPhoneResponse</strong>：（空消息）</p></li><li><p><strong>VerifyGuardianPhoneRequest</strong>：<code>phone</code> message ｜ <code>verifyCode</code> string</p></li><li><p><strong>VerifyGuardianPhoneResponse</strong>：（空消息）</p></li><li><p><strong>VerifyGuardianResetRequest</strong>：<code>verifyCode</code> string</p></li><li><p><strong>VerifyGuardianResetResponse</strong>：（空消息）</p></li><li><p><strong>Workspace</strong>：<code>business</code> message ｜ <code>current</code> bool ｜ <code>user</code> message ｜ <code>roles</code> repeated ｜ <code>rolesValue</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.account.v1.Workspace</strong></p></li><li><p><strong>User</strong>：<code>nickname</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.app.v1</strong></p></li><li><p><strong>AppVersion</strong>：<code>id</code> string ｜ <code>version</code> string ｜ <code>description</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>createTime</code> string ｜ <code>bigVersion</code> int32</p></li><li><p><strong>ListVersionsRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>ListVersionsResponse</strong>：<code>publishedVersionId</code> string ｜ <code>publishedUrl</code> string ｜ <code>publishState</code> enum ｜ <code>publishingVersionId</code> string ｜ <code>versions</code> repeated</p></li><li><p><strong>PreviewAppRequest</strong>：<code>chatId</code> string ｜ <code>forceRestart</code> bool</p></li><li><p><strong>PreviewAppResponse</strong>：<code>previewUrl</code> string ｜ <code>expireTime</code> string</p></li><li><p><strong>PublishAppRequest</strong>：<code>chatId</code> string ｜ <code>versionId</code> string ｜ <code>customSlug</code> string</p></li><li><p><strong>PublishAppResponse</strong>：<code>deployUrl</code> string</p></li><li><p><strong>UnpublishAppRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>UnpublishAppResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.appsupport.v1</strong></p></li><li><p><strong>ScanQRCodeRequest</strong>：<code>qrCode</code> string</p></li><li><p><strong>ScanQRCodeResponse</strong>：<code>urlScheme</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.artifact.v1</strong></p></li><li><p><strong>ShareArtifactRequest</strong>：<code>artifactId</code> string ｜ <code>version</code> string</p></li><li><p><strong>ShareArtifactResponse</strong>：<code>artifactShare</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.business.v1</strong></p></li><li><p><strong>Business</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>description</code> string ｜ <code>status</code> enum ｜ <code>memberCount</code> string ｜ <code>freeCount</code> string ｜ <code>frozenCount</code> string ｜ <code>expireTime</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.common.v1</strong></p></li><li><p><strong>AgentPhaseEvent</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>phase</code> enum ｜ <code>agentId</code> string ｜ <code>toolName</code> string ｜ <code>statusText</code> string ｜ <code>progressPercent</code> int32 ｜ <code>time</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.v1</strong></p></li><li><p><strong>AskUserAnswer</strong>：<code>question</code> string ｜ <code>customText</code> string ｜ <code>selectedOptions</code> repeated</p></li><li><p><strong>BatchDeleteChatsRequest</strong>：<code>chatIds</code> repeated</p></li><li><p><strong>BatchDeleteChatsResponse</strong>：<code>chatIds</code> repeated</p></li><li><p><strong>CancelChatRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string</p></li><li><p><strong>CancelChatResponse</strong>：（空消息）</p></li><li><p><strong>Card</strong>：<code>title</code> string ｜ <code>abstract</code> string</p></li><li><p><strong>ChatFromCaseRequest</strong>：<code>caseId</code> string</p></li><li><p><strong>ChatRequest</strong>：<code>chatId</code> string ｜ <code>kimiplusId</code> string ｜ <code>scenario</code> enum ｜ <code>message</code> message ｜ <code>options</code> message ｜ <code>projectId</code> string ｜ <code>tools</code> repeated</p></li><li><p><strong>ChatRequestOptions</strong>：<code>lbs</code> message ｜ <code>voiceId</code> string ｜ <code>thinking</code> bool ｜ <code>systemPrompt</code> string ｜ <code>slides</code> message ｜ <code>kimiClaw</code> message ｜ <code>enablePlugin</code> bool ｜ <code>reasoningEffort</code> enum ｜ <code>contextLength</code> enum ｜ <code>model</code> string ｜ <code>arena</code> message</p></li><li><p><strong>ChatResponse</strong>：<code>op</code> enum ｜ <code>mask</code> string ｜ <code>eventOffset</code> int32 ｜ <code>chat</code> message ｜ <code>message</code> message ｜ <code>block</code> message ｜ <code>ref</code> message ｜ <code>usage</code> message ｜ <code>notification</code> message ｜ <code>done</code> Done ｜ <code>heartbeat</code> Heartbeat ｜ <code>tts</code> message ｜ <code>interaction</code> message ｜ <code>interactionAck</code> message</p></li><li><p><strong>ChatShare</strong>：<code>id</code> string ｜ <code>chat</code> message ｜ <code>creator</code> message ｜ <code>createTime</code> string ｜ <code>url</code> string ｜ <code>card</code> message ｜ <code>messages</code> repeated</p></li><li><p><strong>ChatShareCreator</strong>：<code>name</code> string ｜ <code>avatarUrl</code> string</p></li><li><p><strong>ContinueChatRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string</p></li><li><p><strong>CreateChatFromShareRequest</strong>：<code>shareId</code> string</p></li><li><p><strong>CreateChatFromShareResponse</strong>：<code>chat</code> message</p></li><li><p><strong>CreateChatShareRequest</strong>：<code>chatId</code> string ｜ <code>messageIds</code> repeated</p></li><li><p><strong>CreateChatShareResponse</strong>：<code>share</code> message</p></li><li><p><strong>Done</strong>：（空消息）</p></li><li><p><strong>EnhancedPrompt</strong>：<code>id</code> string ｜ <code>userPrompt</code> string</p></li><li><p><strong>GetChatRequest</strong>：<code>chatId</code> string ｜ <code>userId</code> string</p></li><li><p><strong>GetChatResponse</strong>：<code>chat</code> message</p></li><li><p><strong>GetChatShareDocxRequest</strong>：<code>shareId</code> string</p></li><li><p><strong>GetChatShareDocxResponse</strong>：<code>docxUrl</code> string</p></li><li><p><strong>GetChatShareMessageRequest</strong>：<code>shareId</code> string ｜ <code>messageId</code> string</p></li><li><p><strong>GetChatShareMessageResponse</strong>：<code>message</code> message</p></li><li><p><strong>GetChatShareRequest</strong>：<code>shareId</code> string ｜ <code>messageOrder</code> enum</p></li><li><p><strong>GetChatShareResponse</strong>：<code>share</code> message</p></li><li><p><strong>GetChatShareScreenshotRequest</strong>：<code>shareId</code> string ｜ <code>theme</code> string</p></li><li><p><strong>GetChatShareScreenshotResponse</strong>：<code>screenshotUrl</code> string</p></li><li><p><strong>GetEnhancedPromptsRequest</strong>：<code>fileIds</code> repeated</p></li><li><p><strong>GetEnhancedPromptsResponse</strong>：<code>placeholderPrompt</code> message ｜ <code>enhancedPrompts</code> repeated</p></li><li><p><strong>GetMessageRecommendPromptsRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string</p></li><li><p><strong>GetMessageRecommendPromptsResponse</strong>：<code>prompts</code> repeated</p></li><li><p><strong>GetMessageRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string</p></li><li><p><strong>GetMessageResponse</strong>：<code>message</code> message</p></li><li><p><strong>GetSearchCitationResponse</strong>：<code>page</code> message ｜ <code>highlight</code> message</p></li><li><p><strong>GetToolBlockRequest</strong>：<code>chatId</code> string ｜ <code>toolCallId</code> string</p></li><li><p><strong>GetToolBlockResponse</strong>：<code>toolBlock</code> message</p></li><li><p><strong>GetUnreadChatsRequest</strong>：（空消息）</p></li><li><p><strong>GetUnreadChatsResponse</strong>：<code>unreadCount</code> int32 ｜ <code>chatIds</code> repeated</p></li><li><p><strong>Heartbeat</strong>：（空消息）</p></li><li><p><strong>InteractionAck</strong>：<code>interactionId</code> string</p></li><li><p><strong>KimiClawRequestOptions</strong>：<code>botId</code> string</p></li><li><p><strong>ListChatsRequest</strong>：<code>projectId</code> string ｜ <code>query</code> string ｜ <code>kimiPlusId</code> string ｜ <code>withMessageContent</code> bool ｜ <code>includePinned</code> bool ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListChatsResponse</strong>：<code>nextPageToken</code> string ｜ <code>chats</code> repeated ｜ <code>pinnedChats</code> repeated</p></li><li><p><strong>ListKimiPlusRequest</strong>：（空消息）</p></li><li><p><strong>ListKimiPlusResponse</strong>：<code>kimiplus</code> repeated</p></li><li><p><strong>ListMessagesRequest</strong>：<code>chatId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>direction</code> message ｜ <code>startMessageId</code> string</p></li><li><p><strong>ListMessagesResponse</strong>：<code>nextPageToken</code> string ｜ <code>messages</code> repeated</p></li><li><p><strong>ListPinnedKimiPlusRequest</strong>：（空消息）</p></li><li><p><strong>ListPinnedKimiPlusResponse</strong>：<code>kimiplus</code> repeated</p></li><li><p><strong>MarkChatAsReadRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>MarkChatAsReadResponse</strong>：（空消息）</p></li><li><p><strong>MessageSpeechRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>voiceId</code> string</p></li><li><p><strong>MessageSpeechResponse</strong>：<code>sequenceId</code> int32 ｜ <code>synthesisStatus</code> enum ｜ <code>audioUrl</code> string ｜ <code>rawText</code> message</p></li><li><p><strong>Notification</strong>：<code>type</code> enum ｜ <code>message</code> string ｜ <code>paywall</code> message</p></li><li><p><strong>ProcessAskUserResultRequest</strong>：<code>artifactId</code> string ｜ <code>chatId</code> string ｜ <code>answers</code> repeated</p></li><li><p><strong>ProcessAskUserResultResponse</strong>：（空消息）</p></li><li><p><strong>RecommendPrompt</strong>：<code>content</code> string</p></li><li><p><strong>Ref</strong>：<code>id</code> string ｜ <code>messageId</code> string ｜ <code>search</code> message ｜ <code>image</code> message ｜ <code>url</code> message ｜ <code>product</code> message ｜ <code>sandboxFile</code> message</p></li><li><p><strong>RegenerateMessageRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>kimiplusId</code> string ｜ <code>message</code> message ｜ <code>scenario</code> enum ｜ <code>options</code> message ｜ <code>tools</code> repeated</p></li><li><p><strong>ReplayChatShareStreamRequest</strong>：<code>shareId</code> string ｜ <code>msgId</code> string ｜ <code>eventOffset</code> int32</p></li><li><p><strong>ReplyInteractionRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>interaction</code> message</p></li><li><p><strong>ReplyInteractionResponse</strong>：（空消息）</p></li><li><p><strong>ResumeChatRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>eventOffset</code> int32</p></li><li><p><strong>ShareChatToCommunityRequest</strong>：<code>chatId</code> string ｜ <code>messageIds</code> repeated</p></li><li><p><strong>ShareChatToCommunityResponse</strong>：<code>share</code> message</p></li><li><p><strong>SlidesRequestOptions</strong>：<code>type</code> enum ｜ <code>templateId</code> string ｜ <code>templateType</code> enum ｜ <code>bananaStyleId</code> string ｜ <code>htmlStyleId</code> string ｜ <code>pptdStyleId</code> string ｜ <code>customStyleId</code> string ｜ <code>pageLimit</code> enum ｜ <code>designOptions</code> message ｜ <code>colorScheme</code> message</p></li><li><p><strong>SubscribeMessageStreamRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>eventOffset</code> int32</p></li><li><p><strong>Tool</strong>：<code>type</code> enum ｜ <code>search</code> message ｜ <code>genImage</code> message ｜ <code>name</code> string</p></li><li><p><strong>UpdateChatRequest</strong>：<code>chat</code> message</p></li><li><p><strong>UpdateChatResponse</strong>：<code>chat</code> message</p></li><li><p><strong>Usage</strong>：<code>research</code> message</p></li><li><p><strong>VoteMessageRequest</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>voteType</code> enum</p></li><li><p><strong>VoteMessageResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.v1.ChatRequestOptions</strong></p></li><li><p><strong>LBS</strong>：<code>longitude</code> double ｜ <code>latitude</code> double ｜ <code>coordSystem</code> string ｜ <code>address</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.v1.MessageSpeechResponse</strong></p></li><li><p><strong>RawText</strong>：<code>text</code> string ｜ <code>startOffset</code> int32 ｜ <code>endOffset</code> int32 ｜ <code>blockId</code> int32<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.v1.Tool</strong></p></li><li><p><strong>GenImage</strong>：<code>force</code> bool ｜ <code>ratio</code> message</p></li><li><p><strong>Search</strong>：<code>force</code> bool<br><strong>com.moonshot.kimi.proto.kimi.gateway.chat.v1.Usage</strong></p></li><li><p><strong>Research</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>type</code> string ｜ <code>status</code> string ｜ <code>limit</code> int32 ｜ <code>used</code> int32 ｜ <code>remain</code> int32<br><strong>com.moonshot.kimi.proto.kimi.gateway.claw.v1</strong></p></li><li><p><strong>Bot</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>description</code> string ｜ <code>status</code> enum ｜ <code>userId</code> string ｜ <code>apiKey</code> string ｜ <code>type</code> enum ｜ <code>isAlive</code> bool ｜ <code>needUpgrade</code> bool ｜ <code>defaultChatId</code> string ｜ <code>profile</code> message ｜ <code>membershipExpiredAt</code> string ｜ <code>ongoingOperation</code> message ｜ <code>version</code> message ｜ <code>avatar</code> string ｜ <code>createdAt</code> string ｜ <code>updatedAt</code> string ｜ <code>availableOperations</code> repeated ｜ <code>skills</code> repeated ｜ <code>features</code> repeated ｜ <code>featuresValue</code> repeated</p></li><li><p><strong>BotOperationCommand</strong>：<code>name</code> string</p></li><li><p><strong>BotOperationStatus</strong>：<code>action</code> enum ｜ <code>status</code> enum ｜ <code>message</code> string</p></li><li><p><strong>ClawSkill</strong>：<code>skill</code> message ｜ <code>syncStatus</code> enum ｜ <code>remoteName</code> string</p></li><li><p><strong>CreateBotRequest</strong>：<code>name</code> string ｜ <code>description</code> string ｜ <code>type</code> enum ｜ <code>personality</code> enum ｜ <code>backupId</code> string ｜ <code>scenarios</code> repeated ｜ <code>scenariosValue</code> repeated</p></li><li><p><strong>CreateBotResponse</strong>：<code>bot</code> message</p></li><li><p><strong>CreateModelAPIKeyRequest</strong>：<code>type</code> enum ｜ <code>name</code> string ｜ <code>description</code> string ｜ <code>expireTime</code> string</p></li><li><p><strong>CreateModelAPIKeyResponse</strong>：<code>modelApiKey</code> message</p></li><li><p><strong>DeleteBotRequest</strong>：<code>id</code> string</p></li><li><p><strong>DeleteBotResponse</strong>：<code>id</code> string</p></li><li><p><strong>DeleteRemoteSkillRequest</strong>：<code>botId</code> string ｜ <code>remoteName</code> string</p></li><li><p><strong>DeleteRemoteSkillResponse</strong>：（空消息）</p></li><li><p><strong>FileInfo</strong>：<code>name</code> string ｜ <code>path</code> string ｜ <code>size</code> string ｜ <code>lastModifyTime</code> string ｜ <code>isDir</code> string ｜ <code>url</code> bool</p></li><li><p><strong>InstallSkillToRemoteRequest</strong>：<code>botId</code> string ｜ <code>skillId</code> string ｜ <code>overrideName</code> string</p></li><li><p><strong>InstallSkillToRemoteResponse</strong>：<code>remoteName</code> string ｜ <code>skill</code> message</p></li><li><p><strong>ListBotsRequest</strong>：（空消息）</p></li><li><p><strong>ListBotsResponse</strong>：<code>bots</code> repeated</p></li><li><p><strong>ListClawSkillsRequest</strong>：<code>botId</code> string ｜ <code>query</code> string</p></li><li><p><strong>ListClawSkillsResponse</strong>：<code>skills</code> repeated</p></li><li><p><strong>ListFilesRequest</strong>：<code>botId</code> string ｜ <code>path</code> string ｜ <code>showHidden</code> bool</p></li><li><p><strong>ListFilesResponse</strong>：<code>info</code> message ｜ <code>files</code> repeated</p></li><li><p><strong>ListRemoteSkillsRequest</strong>：<code>botId</code> string</p></li><li><p><strong>ListRemoteSkillsResponse</strong>：<code>skills</code> repeated ｜ <code>skillJobs</code> repeated</p></li><li><p><strong>ModelAPIKey</strong>：<code>apiKey</code> string ｜ <code>type</code> enum ｜ <code>name</code> string ｜ <code>description</code> string ｜ <code>expireTime</code> string ｜ <code>createTime</code> string</p></li><li><p><strong>Profile</strong>：<code>greeting</code> string ｜ <code>personality</code> enum ｜ <code>recommendPrompts</code> repeated ｜ <code>slashCommands</code> repeated ｜ <code>scenarios</code> repeated ｜ <code>scenariosValue</code> repeated</p></li><li><p><strong>RemoteSkill</strong>：<code>name</code> string ｜ <code>description</code> string ｜ <code>path</code> string</p></li><li><p><strong>SlashCommand</strong>：<code>command</code> string ｜ <code>description</code> string ｜ <code>sendContent</code> string</p></li><li><p><strong>VersionInfo</strong>：<code>openclawVersion</code> string ｜ <code>needUpgrade</code> string ｜ <code>latestVersion</code> bool ｜ <code>kimiclawVersion</code> int32<br><strong>com.moonshot.kimi.proto.kimi.gateway.config.v1</strong></p></li><li><p><strong>GetAvailableModelsRequest</strong>：<code>scene</code> enum</p></li><li><p><strong>GetAvailableModelsResponse</strong>：<code>defaultScenario</code> message ｜ <code>availableModels</code> repeated</p></li><li><p><strong>GetConfigRequest</strong>：<code>syncToken</code> string ｜ <code>source</code> enum ｜ <code>scriptContext</code> message</p></li><li><p><strong>GetConfigResponse</strong>：<code>config</code> message ｜ <code>syncToken</code> string</p></li><li><p><strong>GetPrecheckConfigRequest</strong>：<code>scene</code> enum</p></li><li><p><strong>GetPrecheckConfigResponse</strong>：<code>captcha</code> message</p></li><li><p><strong>ScriptConfigContext</strong>：<code>region</code> enum<br><strong>com.moonshot.kimi.proto.kimi.gateway.config.v1.GetPrecheckConfigResponse</strong></p></li><li><p><strong>CaptchaConfig</strong>：<code>enabled</code> bool<br><strong>com.moonshot.kimi.proto.kimi.gateway.context.v1</strong></p></li><li><p><strong>GetGoalRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>GetGoalResponse</strong>：<code>goal</code> message</p></li><li><p><strong>Goal</strong>：<code>chatId</code> string ｜ <code>objective</code> string ｜ <code>status</code> enum ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>turnStartTime</code> string ｜ <code>durationMs</code> string</p></li><li><p><strong>UpdateGoalRequest</strong>：<code>chatId</code> string ｜ <code>objective</code> string ｜ <code>status</code> enum</p></li><li><p><strong>UpdateGoalResponse</strong>：<code>goal</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.converter.v1</strong></p></li><li><p><strong>DocumentSource</strong>：<code>type</code> enum ｜ <code>artifact</code> message ｜ <code>sandbox</code> message</p></li><li><p><strong>ExportDocumentJob</strong>：<code>id</code> string ｜ <code>source</code> message ｜ <code>exportType</code> enum ｜ <code>status</code> enum ｜ <code>details</code> message ｜ <code>outputFilePresignedUrl</code> string</p></li><li><p><strong>ExportDocumentRequest</strong>：<code>source</code> message ｜ <code>exportType</code> enum ｜ <code>filename</code> string</p></li><li><p><strong>ExportDocumentResponse</strong>：<code>jobId</code> string</p></li><li><p><strong>GetExportDocumentJobRequest</strong>：<code>id</code> string</p></li><li><p><strong>GetExportDocumentJobResponse</strong>：<code>job</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.converter.v1.DocumentSource</strong></p></li><li><p><strong>ChatArtifact</strong>：<code>artifactId</code> string ｜ <code>version</code> string</p></li><li><p><strong>OKCSandbox</strong>：<code>chatId</code> string ｜ <code>chatShareId</code> string ｜ <code>sandboxUri</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.device.v1</strong></p></li><li><p><strong>CountDevicesRequest</strong>：（空消息）</p></li><li><p><strong>CountDevicesResponse</strong>：<code>count</code> int32</p></li><li><p><strong>DeleteDeviceRequest</strong>：<code>id</code> string</p></li><li><p><strong>DeleteDeviceResponse</strong>：（空消息）</p></li><li><p><strong>Device</strong>：<code>id</code> string ｜ <code>deviceId</code> string ｜ <code>platform</code> enum ｜ <code>osModel</code> string ｜ <code>osVersion</code> string ｜ <code>appVersion</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>lastActiveTime</code> string ｜ <code>lastActiveIp</code> string ｜ <code>current</code> bool</p></li><li><p><strong>ListDevicesRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListDevicesResponse</strong>：<code>nextPageToken</code> string ｜ <code>devices</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.doodle.v1</strong></p></li><li><p><strong>Doodle</strong>：<code>id</code> string ｜ <code>assetUrl</code> string ｜ <code>link</code> message ｜ <code>welcomeMessage</code> message ｜ <code>showStartTime</code> string ｜ <code>showEndTime</code> string ｜ <code>key</code> string ｜ <code>page</code> enum ｜ <code>assetUrls</code> repeated</p></li><li><p><strong>Link</strong>：<code>doodleLink</code> string</p></li><li><p><strong>WelcomeMessage</strong>：<code>messages</code> map<br><strong>com.moonshot.kimi.proto.kimi.gateway.experiment.v1</strong></p></li><li><p><strong>GetExperimentsRequest</strong>：<code>withImpression</code> bool ｜ <code>experimentNames</code> repeated</p></li><li><p><strong>GetExperimentsResponse</strong>：<code>results</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.feed.v1</strong></p></li><li><p><strong>FeedItem</strong>：<code>type</code> enum ｜ <code>chat</code> message ｜ <code>task</code> message ｜ <code>userNotification</code> message</p></li><li><p><strong>ListFeedsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>projectId</code> string ｜ <code>unread</code> bool ｜ <code>includePinned</code> bool ｜ <code>filterTypes</code> repeated ｜ <code>filterTypesValue</code> repeated</p></li><li><p><strong>ListFeedsResponse</strong>：<code>nextPageToken</code> string ｜ <code>items</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.file.v1</strong></p></li><li><p><strong>AIPPT</strong>：<code>coverUrl</code> string ｜ <code>pdfUrl</code> string ｜ <code>pptUrl</code> string</p></li><li><p><strong>File</strong>：<code>id</code> string ｜ <code>meta</code> message ｜ <code>blob</code> message ｜ <code>tokenCount</code> string ｜ <code>parseResult</code> message ｜ <code>status</code> enum ｜ <code>failReason</code> string</p></li><li><p><strong>FileBlob</strong>：<code>signUrl</code> string ｜ <code>previewUrl</code> string</p></li><li><p><strong>FileInfo</strong>：<code>name</code> string ｜ <code>path</code> string ｜ <code>size</code> string ｜ <code>updateTime</code> string ｜ <code>isDir</code> bool ｜ <code>url</code> string ｜ <code>status</code> enum</p></li><li><p><strong>FileMeta</strong>：<code>name</code> string ｜ <code>contentType</code> string ｜ <code>sizeBytes</code> string ｜ <code>checksum</code> string ｜ <code>ext</code> string ｜ <code>createTime</code> string ｜ <code>type</code> enum</p></li><li><p><strong>GetFileParseProgressRequest</strong>：<code>fileIds</code> repeated</p></li><li><p><strong>GetFileParseProgressResponse</strong>：<code>progresses</code> repeated</p></li><li><p><strong>ParseProgress</strong>：<code>fileId</code> string ｜ <code>status</code> enum ｜ <code>error</code> message</p></li><li><p><strong>ParseResult</strong>：<code>thumbnail</code> message ｜ <code>url</code> message ｜ <code>aippt</code> message ｜ <code>slides</code> message</p></li><li><p><strong>Slides</strong>：<code>name</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.im.v1</strong></p></li><li><p><strong>BotReportEvent</strong>：（空消息）</p></li><li><p><strong>ChatChangeEvent</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>type</code> enum ｜ <code>title</code> string ｜ <code>summary</code> string ｜ <code>time</code> string ｜ <code>taskId</code> string ｜ <code>projectId</code> string</p></li><li><p><strong>ChatMessageEvent</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>status</code> enum ｜ <code>senderId</code> string ｜ <code>role</code> enum ｜ <code>senderShortId</code> string ｜ <code>roomId</code> string ｜ <code>summary</code> string ｜ <code>roomType</code> enum ｜ <code>mentioned</code> bool</p></li><li><p><strong>ChatStatusEvent</strong>：<code>chatId</code> string ｜ <code>messageId</code> string ｜ <code>status</code> enum ｜ <code>title</code> string ｜ <code>statusText</code> string ｜ <code>time</code> string ｜ <code>taskId</code> string ｜ <code>projectId</code> string</p></li><li><p><strong>CreateInvitationRequest</strong>：<code>roomId</code> string</p></li><li><p><strong>CreateInvitationResponse</strong>：<code>ticket</code> string ｜ <code>invitationCoverUrl</code> string</p></li><li><p><strong>CreateRoomRequest</strong>：<code>name</code> string ｜ <code>instruction</code> string ｜ <code>botIds</code> repeated</p></li><li><p><strong>CreateRoomResponse</strong>：<code>room</code> message</p></li><li><p><strong>DeleteRoomRequest</strong>：<code>roomId</code> string</p></li><li><p><strong>DeleteRoomResponse</strong>：（空消息）</p></li><li><p><strong>DisbandEvent</strong>：<code>roomId</code> string</p></li><li><p><strong>Event</strong>：<code>id</code> string ｜ <code>ping</code> message ｜ <code>chatMessage</code> message ｜ <code>reconnect</code> message ｜ <code>typing</code> message ｜ <code>disband</code> message ｜ <code>botReport</code> message ｜ <code>chatStatus</code> message ｜ <code>chatChange</code> message ｜ <code>subagentStatus</code> message ｜ <code>outbox</code> message ｜ <code>agentPhase</code> message ｜ <code>notification</code> message ｜ <code>operation</code> message ｜ <code>pong</code> message ｜ <code>notificationEvent</code> message ｜ <code>pairing</code> message</p></li><li><p><strong>GetRoomByInvitationRequest</strong>：<code>ticket</code> string</p></li><li><p><strong>GetRoomByInvitationResponse</strong>：<code>room</code> message ｜ <code>invitationCoverUrl</code> string ｜ <code>members</code> repeated</p></li><li><p><strong>GetRoomRequest</strong>：<code>roomId</code> string</p></li><li><p><strong>GetRoomResponse</strong>：<code>room</code> message</p></li><li><p><strong>GetThreadRequest</strong>：<code>threadId</code> string</p></li><li><p><strong>GetThreadResponse</strong>：<code>thread</code> message</p></li><li><p><strong>InviteMembersRequest</strong>：<code>roomId</code> string ｜ <code>memberIds</code> repeated</p></li><li><p><strong>InviteMembersResponse</strong>：<code>members</code> repeated</p></li><li><p><strong>ListMembersRequest</strong>：<code>roomId</code> string ｜ <code>pageToken</code> string ｜ <code>pageSize</code> int32</p></li><li><p><strong>ListMembersResponse</strong>：<code>nextPageToken</code> string ｜ <code>members</code> repeated</p></li><li><p><strong>ListMessagesRequest</strong>：<code>chatId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>direction</code> message ｜ <code>startMessageId</code> string ｜ <code>includeStartMessage</code> bool ｜ <code>endMessageId</code> string ｜ <code>includeEndMessage</code> bool ｜ <code>noMarkAsRead</code> bool</p></li><li><p><strong>ListMessagesResponse</strong>：<code>nextPageToken</code> string ｜ <code>messages</code> repeated</p></li><li><p><strong>ListRoomsRequest</strong>：<code>pageToken</code> string ｜ <code>pageSize</code> int32</p></li><li><p><strong>ListRoomsResponse</strong>：<code>nextPageToken</code> string ｜ <code>rooms</code> repeated</p></li><li><p><strong>ListTypingMembersRequest</strong>：<code>roomId</code> string</p></li><li><p><strong>ListTypingMembersResponse</strong>：<code>members</code> repeated</p></li><li><p><strong>Message</strong>：<code>message</code> message ｜ <code>senderId</code> string ｜ <code>senderShortId</code> string ｜ <code>senderName</code> string ｜ <code>senderAvatar</code> string ｜ <code>hasThread</code> bool ｜ <code>threadMessages</code> repeated</p></li><li><p><strong>MessageSummary</strong>：<code>messageId</code> string ｜ <code>senderId</code> string ｜ <code>senderName</code> string ｜ <code>senderAvatar</code> string ｜ <code>summary</code> string ｜ <code>createTime</code> string</p></li><li><p><strong>NotificationEvent</strong>：<code>notificationsRead</code> message</p></li><li><p><strong>OperationEvent</strong>：<code>type</code> enum</p></li><li><p><strong>PingEvent</strong>：（空消息）</p></li><li><p><strong>PongEvent</strong>：（空消息）</p></li><li><p><strong>ReconnectEvent</strong>：（空消息）</p></li><li><p><strong>RemoveMemberRequest</strong>：<code>roomId</code> string ｜ <code>memberId</code> string</p></li><li><p><strong>RemoveMemberResponse</strong>：（空消息）</p></li><li><p><strong>Room</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>ownerId</code> string ｜ <code>ownerShortId</code> string ｜ <code>type</code> enum ｜ <code>assistantId</code> string ｜ <code>instruction</code> string ｜ <code>rules</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>unreadCount</code> int32 ｜ <code>allowAudience</code> bool ｜ <code>lastMessage</code> message ｜ <code>dmTargetMember</code> message ｜ <code>memberCount</code> int32 ｜ <code>avatarUrls</code> repeated ｜ <code>slashCommands</code> repeated</p></li><li><p><strong>RoomMember</strong>：<code>id</code> string ｜ <code>shortId</code> string ｜ <code>name</code> string ｜ <code>avatarUrl</code> string ｜ <code>type</code> enum ｜ <code>online</code> bool ｜ <code>muted</code> bool ｜ <code>belongsTo</code> message ｜ <code>role</code> enum ｜ <code>botType</code> enum ｜ <code>skills</code> repeated</p></li><li><p><strong>SendMessageRequest</strong>：<code>chatId</code> string ｜ <code>blocks</code> repeated</p></li><li><p><strong>SendMessageResponse</strong>：<code>messageId</code> string</p></li><li><p><strong>SetMemberRoleRequest</strong>：<code>roomId</code> string ｜ <code>memberId</code> string ｜ <code>role</code> enum</p></li><li><p><strong>SetMemberRoleResponse</strong>：（空消息）</p></li><li><p><strong>SlashCommand</strong>：<code>command</code> string ｜ <code>description</code> string</p></li><li><p><strong>SubagentStatusEvent</strong>：<code>chatId</code> string ｜ <code>agentId</code> string ｜ <code>status</code> enum ｜ <code>progressPercent</code> int32</p></li><li><p><strong>Thread</strong>：<code>id</code> string ｜ <code>roomId</code> string ｜ <code>name</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>unreadCount</code> int32</p></li><li><p><strong>TypingEvent</strong>：<code>roomId</code> string ｜ <code>member</code> message</p></li><li><p><strong>TypingMember</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>avatar</code> string ｜ <code>status</code> enum ｜ <code>threadId</code> string ｜ <code>toolAction</code> message</p></li><li><p><strong>UpdateRoomRequest</strong>：<code>room</code> message ｜ <code>updateMask</code> string</p></li><li><p><strong>UpdateRoomResponse</strong>：<code>room</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.im.v1.NotificationEvent</strong></p></li><li><p><strong>NotificationsRead</strong>：<code>type</code> enum ｜ <code>all</code> bool ｜ <code>extras</code> map<br><strong>com.moonshot.kimi.proto.kimi.gateway.issuance.v1</strong></p></li><li><p><strong>Credential</strong>：<code>secretId</code> string ｜ <code>secretKey</code> string ｜ <code>sessionToken</code> string ｜ <code>expireTime</code> string</p></li><li><p><strong>GetCredentialRequest</strong>：<code>service</code> enum</p></li><li><p><strong>GetCredentialResponse</strong>：<code>credential</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.mcp.v1</strong></p></li><li><p><strong>CreateMCPServerAuthorizationRequest</strong>：<code>serverId</code> string ｜ <code>redirectUri</code> string</p></li><li><p><strong>CreateMCPServerAuthorizationResponse</strong>：<code>authorization</code> message</p></li><li><p><strong>Deployment</strong>：<code>version</code> string ｜ <code>pageContentUrl</code> string ｜ <code>downloadUrl</code> string</p></li><li><p><strong>FileTreeNode</strong>：<code>name</code> string ｜ <code>size</code> string ｜ <code>url</code> string ｜ <code>isDir</code> bool ｜ <code>lastModifyTime</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>extra</code> message ｜ <code>children</code> repeated</p></li><li><p><strong>GetCitationsByChatRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>GetCitationsByChatResponse</strong>：<code>citations</code> repeated</p></li><li><p><strong>GetDeploymentByChatShareRequest</strong>：<code>chatShareId</code> string ｜ <code>version</code> string</p></li><li><p><strong>GetDeploymentByChatShareResponse</strong>：<code>deployment</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>GetMCPServerAuthorizationRequest</strong>：<code>requestId</code> string</p></li><li><p><strong>GetMCPServerAuthorizationResponse</strong>：<code>authorization</code> message</p></li><li><p><strong>GetManifestRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>GetManifestResponse</strong>：<code>manifest</code> message</p></li><li><p><strong>GetOutputFileTreeByShareRequest</strong>：<code>chatShareId</code> string</p></li><li><p><strong>GetOutputFileTreeByShareResponse</strong>：<code>root</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>GetOutputFileTreeRequest</strong>：<code>chatId</code> string ｜ <code>chatShareId</code> string</p></li><li><p><strong>GetOutputFileTreeResponse</strong>：<code>root</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>MCPServerAuthorization</strong>：<code>requestId</code> string ｜ <code>serverId</code> string ｜ <code>userId</code> string ｜ <code>oauthUrl</code> string ｜ <code>expireTime</code> string ｜ <code>status</code> enum</p></li><li><p><strong>Manifest</strong>：<code>publishedVersion</code> string ｜ <code>publicUrl</code> string ｜ <code>lastPublishTime</code> string ｜ <code>deployments</code> repeated</p></li><li><p><strong>PublishDeploymentRequest</strong>：<code>chatId</code> string ｜ <code>version</code> string</p></li><li><p><strong>PublishDeploymentResponse</strong>：<code>url</code> string</p></li><li><p><strong>ResolveFileURIByShareRequest</strong>：<code>chatShareId</code> string ｜ <code>fileUri</code> string</p></li><li><p><strong>ResolveFileURIByShareResponse</strong>：<code>downloadUrl</code> string</p></li><li><p><strong>ResolveFileURIRequest</strong>：<code>chatId</code> string ｜ <code>fileUri</code> string</p></li><li><p><strong>ResolveFileURIResponse</strong>：<code>downloadUrl</code> string</p></li><li><p><strong>SearchCitation</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>url</code> string ｜ <code>siteName</code> string ｜ <code>iconUrl</code> string</p></li><li><p><strong>SetMCPUserSettingStatusRequest</strong>：<code>id</code> string ｜ <code>enable</code> bool</p></li><li><p><strong>SetMCPUserSettingStatusResponse</strong>：（空消息）</p></li><li><p><strong>UnpublishDeploymentRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>UnpublishDeploymentResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.mcp.v1.FileTreeNode</strong></p></li><li><p><strong>Extra</strong>：<code>sandboxUri</code> string ｜ <code>externalId</code> string ｜ <code>etag</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2</strong></p></li><li><p><strong>Balance</strong>：<code>id</code> string ｜ <code>feature</code> enum ｜ <code>type</code> enum ｜ <code>unit</code> enum ｜ <code>amount</code> string ｜ <code>amountLeft</code> string ｜ <code>upcomingExpiration</code> message ｜ <code>amountUsedRatio</code> float ｜ <code>kimiCodeUsedRatio</code> float ｜ <code>expireTime</code> string ｜ <code>domain</code> enum ｜ <code>displayName</code> string</p></li><li><p><strong>Capability</strong>：<code>feature</code> enum ｜ <code>constraint</code> message</p></li><li><p><strong>ClaimEventBalanceRequest</strong>：<code>eventId</code> string</p></li><li><p><strong>ClaimEventBalanceResponse</strong>：（空消息）</p></li><li><p><strong>GetBalanceEventInfoRequest</strong>：<code>eventId</code> string</p></li><li><p><strong>GetBalanceEventInfoResponse</strong>：<code>eventId</code> string ｜ <code>subscriptionId</code> string ｜ <code>eventTitle</code> string ｜ <code>eventDesc</code> string ｜ <code>eventImgUrl</code> string</p></li><li><p><strong>GetSubscriptionRequest</strong>：<code>domain</code> enum</p></li><li><p><strong>GetSubscriptionResponse</strong>：<code>subscription</code> message ｜ <code>nextSubscription</code> message ｜ <code>bonus</code> message ｜ <code>bonusGoodsTitle</code> string ｜ <code>highestLevel</code> bool ｜ <code>usingBonus</code> bool ｜ <code>subscribed</code> bool ｜ <code>purchaseSubscription</code> message ｜ <code>purchaseExpireSeconds</code> int32 ｜ <code>purchaseExpireTime</code> string ｜ <code>balances</code> repeated ｜ <code>capabilities</code> repeated</p></li><li><p><strong>GetSubscriptionStatsRequest</strong>：<code>domain</code> enum</p></li><li><p><strong>GetSubscriptionStatsResponse</strong>：<code>ratelimit5h</code> message ｜ <code>ratelimitCode5h</code> message ｜ <code>ratelimit7d</code> message ｜ <code>ratelimitCode7d</code> message ｜ <code>subscriptionBalance</code> message ｜ <code>notice</code> message ｜ <code>overdrawn</code> bool ｜ <code>eventId</code> string ｜ <code>giftBalances</code> repeated ｜ <code>boosterWallets</code> repeated</p></li><li><p><strong>ListBalanceActionsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>filter</code> message ｜ <code>domain</code> enum</p></li><li><p><strong>ListBalanceActionsResponse</strong>：<code>nextPageToken</code> string ｜ <code>actions</code> repeated</p></li><li><p><strong>Wallet</strong>：<code>id</code> string ｜ <code>userId</code> string ｜ <code>balanceId</code> string ｜ <code>moneyLeft</code> message ｜ <code>moneyTotal</code> message ｜ <code>status</code> enum ｜ <code>allowTopup</code> bool ｜ <code>topupLimit</code> message ｜ <code>autoRefillEnabled</code> bool ｜ <code>autoRefillCharge</code> message ｜ <code>autoRefillThreshold</code> message ｜ <code>monthlyChargeLimitEnabled</code> bool ｜ <code>monthlyChargeLimit</code> message ｜ <code>monthlyUsed</code> message ｜ <code>createdAt</code> string ｜ <code>updatedAt</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.Balance</strong></p></li><li><p><strong>Action</strong>：<code>id</code> string ｜ <code>feature</code> enum ｜ <code>title</code> string ｜ <code>status</code> enum ｜ <code>timestamp</code> string ｜ <code>items</code> repeated</p></li><li><p><strong>UpcomingExpiration</strong>：<code>timestamp</code> string ｜ <code>amountLeft</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.Balance.Action</strong></p></li><li><p><strong>Item</strong>：<code>balanceId</code> string ｜ <code>amount</code> string ｜ <code>amountRatio</code> float ｜ <code>unit</code> enum ｜ <code>discounted</code> bool ｜ <code>amountMoney</code> message ｜ <code>modifier</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.Capability</strong></p></li><li><p><strong>Constraint</strong>：<code>parallelism</code> int32 ｜ <code>cronNum</code> int32 ｜ <code>projectNum</code> int32 ｜ <code>userCapacity</code> string ｜ <code>modelContextLength</code> string ｜ <code>modelretryTimes</code> string ｜ <code>rateLimits</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.Capability.Constraint</strong></p></li><li><p><strong>RateLimit</strong>：<code>total</code> int32 ｜ <code>window</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionStatsResponse</strong></p></li><li><p><strong>Notice</strong>：<code>tip</code> string ｜ <code>content</code> string ｜ <code>resetTime</code> string ｜ <code>actions</code> repeated</p></li><li><p><strong>RateLimitStat</strong>：<code>ratio</code> float ｜ <code>enabled</code> bool ｜ <code>resetTime</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.GetSubscriptionStatsResponse.Notice</strong></p></li><li><p><strong>Action</strong>：<code>paywall</code> message ｜ <code>booster</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.membership.v2.ListBalanceActionsRequest</strong></p></li><li><p><strong>Filter</strong>：<code>unit</code> enum ｜ <code>invertFeatureMatch</code> bool ｜ <code>features</code> repeated ｜ <code>featuresValue</code> repeated ｜ <code>balanceTypes</code> repeated ｜ <code>balanceTypesValue</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.memory.v1</strong></p></li><li><p><strong>DeleteMemoryRequest</strong>：<code>memoryId</code> string</p></li><li><p><strong>DeleteMemoryResponse</strong>：（空消息）</p></li><li><p><strong>DreamVaultState</strong>：<code>status</code> enum ｜ <code>updateTime</code> string</p></li><li><p><strong>GetDreamStatusRequest</strong>：（空消息）</p></li><li><p><strong>GetDreamStatusResponse</strong>：<code>dreamVault</code> message ｜ <code>featureAvailable</code> bool</p></li><li><p><strong>GetVaultPageRequest</strong>：<code>sandboxUri</code> string</p></li><li><p><strong>GetVaultPageResponse</strong>：<code>markdown</code> string ｜ <code>outgoingLinks</code> repeated ｜ <code>backlinks</code> repeated ｜ <code>citations</code> repeated</p></li><li><p><strong>GetVaultTreeRequest</strong>：（空消息）</p></li><li><p><strong>GetVaultTreeResponse</strong>：<code>root</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>ListMemoriesRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListMemoriesResponse</strong>：<code>nextPageToken</code> string ｜ <code>totalCount</code> int32 ｜ <code>memoryLimit</code> int32 ｜ <code>memories</code> repeated</p></li><li><p><strong>ResetDreamVaultRequest</strong>：（空消息）</p></li><li><p><strong>ResetDreamVaultResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.misc.v1</strong></p></li><li><p><strong>DataSourceLocalizedInfo</strong>：<code>displayName</code> string</p></li><li><p><strong>GetDataSourceLocalizedInfoRequest</strong>：（空消息）</p></li><li><p><strong>GetDataSourceLocalizedInfoResponse</strong>：<code>infos</code> map<br><strong>com.moonshot.kimi.proto.kimi.gateway.notification.v1</strong></p></li><li><p><strong>InAppNotificationOptions</strong>：（空消息）</p></li><li><p><strong>ListUserNotificationsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>unread</code> bool ｜ <code>hide</code> bool ｜ <code>types</code> repeated ｜ <code>typesValue</code> repeated</p></li><li><p><strong>ListUserNotificationsResponse</strong>：<code>nextPageToken</code> string ｜ <code>unreadCount</code> int32 ｜ <code>userNotifications</code> repeated</p></li><li><p><strong>MarkNotificationsReadRequest</strong>：<code>all</code> bool ｜ <code>ids</code> repeated ｜ <code>types</code> repeated ｜ <code>typesValue</code> repeated ｜ <code>extras</code> map</p></li><li><p><strong>MarkNotificationsReadResponse</strong>：<code>markedCount</code> int32</p></li><li><p><strong>MobileNotificationOptions</strong>：<code>channelId</code> string ｜ <code>sound</code> string ｜ <code>badge</code> string</p></li><li><p><strong>Notification</strong>：<code>type</code> enum ｜ <code>title</code> string ｜ <code>content</code> string ｜ <code>deeplink</code> string ｜ <code>iconUrl</code> string ｜ <code>imageUrl</code> string ｜ <code>presentation</code> message ｜ <code>extras</code> map</p></li><li><p><strong>NotificationPresentation</strong>：<code>mobile</code> message ｜ <code>web</code> message ｜ <code>inApp</code> message ｜ <code>dataOnly</code> bool</p></li><li><p><strong>UserNotification</strong>：<code>id</code> string ｜ <code>notification</code> message ｜ <code>read</code> bool ｜ <code>hide</code> bool ｜ <code>readTime</code> string ｜ <code>createTime</code> string</p></li><li><p><strong>WebNotificationOptions</strong>：<code>tag</code> string ｜ <code>badgeUrl</code> string ｜ <code>requireInteraction</code> bool ｜ <code>silent</code> bool<br><strong>com.moonshot.kimi.proto.kimi.gateway.order.v1</strong></p></li><li><p><strong>CreateSubscriptionRequest</strong>：<code>goodsId</code> string ｜ <code>subscriptionAction</code> enum ｜ <code>paymentChannel</code> enum ｜ <code>discountId</code> string ｜ <code>trackingMsg</code> string ｜ <code>domain</code> enum</p></li><li><p><strong>CreateSubscriptionResponse</strong>：<code>subscription</code> message ｜ <code>redirectUrl</code> string ｜ <code>orderId</code> string ｜ <code>wechatPassthroughParams</code> message</p></li><li><p><strong>DiscountPayload</strong>：<code>code</code> string</p></li><li><p><strong>GetDiscountURLRequest</strong>：<code>discountId</code> string</p></li><li><p><strong>GetDiscountURLResponse</strong>：<code>discountUrl</code> string</p></li><li><p><strong>GetGoodsResponse</strong>：<code>goods</code> message ｜ <code>discountPayload</code> message</p></li><li><p><strong>GetPricePosterRequest</strong>：（空消息）</p></li><li><p><strong>GetPricePosterResponse</strong>：<code>pricePoster</code> map</p></li><li><p><strong>ListGoodsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>discountId</code> string ｜ <code>paymentChannel</code> enum ｜ <code>domains</code> repeated ｜ <code>domainsValue</code> repeated</p></li><li><p><strong>ListGoodsResponse</strong>：<code>nextPageToken</code> string ｜ <code>recommendChannel</code> enum ｜ <code>goods</code> repeated</p></li><li><p><strong>VeryDiscountUserRequest</strong>：<code>discountId</code> string</p></li><li><p><strong>VeryDiscountUserResponse</strong>：<code>sameUser</code> bool ｜ <code>discountUserStatus</code> enum<br><strong>com.moonshot.kimi.proto.kimi.gateway.pin.v1</strong></p></li><li><p><strong>ListPinResourcesRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>resourceTypes</code> repeated ｜ <code>resourceTypesValue</code> repeated</p></li><li><p><strong>ListPinResourcesResponse</strong>：<code>nextPageToken</code> string ｜ <code>resources</code> repeated</p></li><li><p><strong>PinResourceRequest</strong>：<code>resourceType</code> enum ｜ <code>resourceId</code> string</p></li><li><p><strong>PinResourceResponse</strong>：<code>resource</code> message</p></li><li><p><strong>Resource</strong>：<code>chat</code> message ｜ <code>project</code> message</p></li><li><p><strong>UnpinResourceRequest</strong>：<code>resourceType</code> enum ｜ <code>resourceId</code> string</p></li><li><p><strong>UnpinResourceResponse</strong>：<code>resource</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.plugin.v1</strong></p></li><li><p><strong>ClientRuntime</strong>：<code>hostKind</code> enum ｜ <code>platform</code> enum</p></li><li><p><strong>GetPluginRequest</strong>：<code>id</code> string</p></li><li><p><strong>GetPluginResponse</strong>：<code>plugin</code> message</p></li><li><p><strong>InstallPluginRequest</strong>：<code>id</code> string</p></li><li><p><strong>InstallPluginResponse</strong>：<code>plugin</code> message ｜ <code>oauthRequiredMcpSettingIds</code> repeated</p></li><li><p><strong>ListAvailablePluginsRequest</strong>：<code>categoryId</code> string ｜ <code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>clientRuntime</code> message</p></li><li><p><strong>ListAvailablePluginsResponse</strong>：<code>nextPageToken</code> string ｜ <code>totalSize</code> int32 ｜ <code>plugins</code> repeated</p></li><li><p><strong>ListInstalledPluginsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>query</code> string ｜ <code>clientRuntime</code> message</p></li><li><p><strong>ListInstalledPluginsResponse</strong>：<code>nextPageToken</code> string ｜ <code>totalSize</code> int32 ｜ <code>plugins</code> repeated</p></li><li><p><strong>ListPluginCategoriesRequest</strong>：（空消息）</p></li><li><p><strong>ListPluginCategoriesResponse</strong>：<code>categories</code> repeated</p></li><li><p><strong>ListPluginSectionsRequest</strong>：<code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>clientRuntime</code> message</p></li><li><p><strong>ListPluginSectionsResponse</strong>：<code>installed</code> message ｜ <code>sections</code> repeated</p></li><li><p><strong>Plugin</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>displayName</code> string ｜ <code>version</code> string ｜ <code>description</code> string ｜ <code>installDescription</code> string ｜ <code>developerName</code> string ｜ <code>iconUrl</code> string ｜ <code>sandboxPath</code> string ｜ <code>installed</code> bool ｜ <code>enterpriseOnly</code> bool ｜ <code>consumerOnly</code> bool ｜ <code>extraCharge</code> bool ｜ <code>hostKind</code> enum ｜ <code>tryPrompt</code> string ｜ <code>installCount</code> int32 ｜ <code>minMembershipLevel</code> enum ｜ <code>introduction</code> string ｜ <code>colorLight</code> string ｜ <code>colorDark</code> string ｜ <code>coverImageUrlLight</code> string ｜ <code>coverImageUrlDark</code> string ｜ <code>categories</code> repeated ｜ <code>mcpServers</code> repeated ｜ <code>skills</code> repeated ｜ <code>platforms</code> repeated ｜ <code>platformsValue</code> repeated</p></li><li><p><strong>PluginCategory</strong>：<code>id</code> string ｜ <code>displayName</code> string</p></li><li><p><strong>PluginMCP</strong>：<code>mcpKey</code> string ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>iconUrl</code> string ｜ <code>mcpSettingId</code> string ｜ <code>needOauth</code> bool ｜ <code>connectionState</code> enum ｜ <code>expireTime</code> string ｜ <code>enabledTools</code> repeated ｜ <code>disabledTools</code> repeated</p></li><li><p><strong>PluginSection</strong>：<code>category</code> message ｜ <code>nextPageToken</code> string ｜ <code>totalCount</code> int32 ｜ <code>plugins</code> repeated ｜ <code>overflowPlugins</code> repeated</p></li><li><p><strong>PluginSkill</strong>：<code>displayName</code> string ｜ <code>description</code> string</p></li><li><p><strong>UninstallPluginRequest</strong>：<code>id</code> string</p></li><li><p><strong>UninstallPluginResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.project.v1</strong></p></li><li><p><strong>CreateProjectRequest</strong>：<code>name</code> string ｜ <code>prompt</code> string ｜ <code>description</code> string ｜ <code>iconUrl</code> string ｜ <code>useMemory</code> bool</p></li><li><p><strong>CreateProjectResponse</strong>：<code>project</code> message</p></li><li><p><strong>DeleteProjectFileRequest</strong>：<code>projectId</code> string ｜ <code>path</code> string</p></li><li><p><strong>DeleteProjectRequest</strong>：<code>projectId</code> string</p></li><li><p><strong>DeleteProjectResponse</strong>：<code>project</code> message</p></li><li><p><strong>GetProjectRequest</strong>：<code>projectId</code> string</p></li><li><p><strong>GetProjectResponse</strong>：<code>project</code> message</p></li><li><p><strong>ListProjectFilesRequest</strong>：<code>projectId</code> string ｜ <code>path</code> string ｜ <code>showHidden</code> bool</p></li><li><p><strong>ListProjectFilesResponse</strong>：<code>info</code> message ｜ <code>files</code> repeated</p></li><li><p><strong>ListProjectUploadFilesRequest</strong>：<code>projectId</code> string</p></li><li><p><strong>ListProjectUploadFilesResponse</strong>：<code>info</code> message ｜ <code>files</code> repeated</p></li><li><p><strong>ListProjectsRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>includePinned</code> bool</p></li><li><p><strong>ListProjectsResponse</strong>：<code>nextPageToken</code> string ｜ <code>projectCountUsed</code> string ｜ <code>projectCountLimit</code> string ｜ <code>availableCount</code> string ｜ <code>projects</code> repeated</p></li><li><p><strong>Project</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>prompt</code> string ｜ <code>iconUrl</code> string ｜ <code>description</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>useMemory</code> bool ｜ <code>availability</code> enum ｜ <code>unreadCount</code> int32</p></li><li><p><strong>SetAvailableProjectsRequest</strong>：<code>projectIds</code> repeated</p></li><li><p><strong>SetAvailableProjectsResponse</strong>：<code>projectCountUsed</code> repeated ｜ <code>projectCountLimit</code> string ｜ <code>projects</code> string</p></li><li><p><strong>UpdateProjectRequest</strong>：<code>project</code> message ｜ <code>updateMask</code> string</p></li><li><p><strong>UpdateProjectResponse</strong>：<code>project</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.promotionalasset.v1</strong></p></li><li><p><strong>AppHomeBanner</strong>：<code>id</code> string ｜ <code>welcomeMessage</code> string ｜ <code>link</code> string ｜ <code>assetUrl</code> string ｜ <code>showRule</code> enum ｜ <code>showStartTime</code> string ｜ <code>showEndTime</code> string ｜ <code>key</code> string</p></li><li><p><strong>Card</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>subtitle</code> string ｜ <code>link</code> string ｜ <code>showRule</code> enum ｜ <code>priority</code> int32 ｜ <code>showStartTime</code> string ｜ <code>showEndTime</code> string ｜ <code>key</code> string ｜ <code>assetUrls</code> repeated ｜ <code>buttons</code> repeated</p></li><li><p><strong>ListPromotionalAssetsRequest</strong>：<code>pages</code> repeated ｜ <code>pagesValue</code> repeated</p></li><li><p><strong>ListPromotionalAssetsResponse</strong>：<code>doodles</code> repeated ｜ <code>cards</code> repeated ｜ <code>homeBanners</code> repeated ｜ <code>persistentActivityCards</code> repeated</p></li><li><p><strong>PersistentActivityCard</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>subtitle</code> string ｜ <code>link</code> string ｜ <code>assetUrl</code> string ｜ <code>showStartTime</code> string ｜ <code>showEndTime</code> string ｜ <code>key</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.riskcontrol.v1</strong></p></li><li><p><strong>ReportEventRequest</strong>：<code>customPayload</code> message</p></li><li><p><strong>ReportEventResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.kimi.gateway.skill.v1</strong></p></li><li><p><strong>CreateSkillJobRequest</strong>：<code>prompt</code> string ｜ <code>targetType</code> enum ｜ <code>botId</code> string ｜ <code>fileIds</code> repeated</p></li><li><p><strong>CreateSkillJobResponse</strong>：<code>job</code> message</p></li><li><p><strong>DeleteSkillJobRequest</strong>：<code>jobId</code> string</p></li><li><p><strong>DeleteSkillJobResponse</strong>：<code>job</code> message</p></li><li><p><strong>GetSkillFileTreeRequest</strong>：<code>skillId</code> string ｜ <code>versionNo</code> int32</p></li><li><p><strong>GetSkillFileTreeResponse</strong>：<code>root</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>GetSkillJobRequest</strong>：<code>jobId</code> string</p></li><li><p><strong>GetSkillJobResponse</strong>：<code>job</code> message</p></li><li><p><strong>GetSkillRequest</strong>：<code>skillId</code> string</p></li><li><p><strong>GetSkillResponse</strong>：<code>skill</code> message ｜ <code>hasNameConflict</code> bool ｜ <code>canUpdate</code> bool ｜ <code>activeVersion</code> int32 ｜ <code>latestVersion</code> int32</p></li><li><p><strong>InstallSkillRequest</strong>：<code>skillId</code> string ｜ <code>overrideName</code> string</p></li><li><p><strong>InstallSkillResponse</strong>：<code>skill</code> message</p></li><li><p><strong>ListInstalledSkillsRequest</strong>：<code>query</code> string ｜ <code>category</code> enum ｜ <code>skillUseCaseId</code> string</p></li><li><p><strong>ListInstalledSkillsResponse</strong>：<code>skills</code> repeated ｜ <code>generatingTasks</code> repeated</p></li><li><p><strong>ListSkillUseCasesRequest</strong>：（空消息）</p></li><li><p><strong>ListSkillUseCasesResponse</strong>：<code>useCases</code> repeated</p></li><li><p><strong>ListSkillsRequest</strong>：<code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>category</code> enum ｜ <code>skillUseCaseId</code> string</p></li><li><p><strong>ListSkillsResponse</strong>：<code>nextPageToken</code> string ｜ <code>totalCount</code> int32 ｜ <code>skills</code> repeated</p></li><li><p><strong>RemoveSkillRequest</strong>：<code>skillId</code> string</p></li><li><p><strong>RemoveSkillResponse</strong>：（空消息）</p></li><li><p><strong>RetrySkillJobRequest</strong>：<code>jobId</code> string</p></li><li><p><strong>RetrySkillJobResponse</strong>：<code>job</code> message</p></li><li><p><strong>Skill</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>avatarUrl</code> message ｜ <code>source</code> enum ｜ <code>sourceName</code> string ｜ <code>installed</code> bool ｜ <code>installationCount</code> string ｜ <code>pinned</code> bool ｜ <code>sandboxPath</code> string ｜ <code>activeVersion</code> int32 ｜ <code>categories</code> repeated ｜ <code>categoriesValue</code> repeated ｜ <code>skillUseCaseIds</code> repeated ｜ <code>tags</code> repeated ｜ <code>versions</code> repeated</p></li><li><p><strong>SkillJob</strong>：<code>id</code> string ｜ <code>jobType</code> enum ｜ <code>skillName</code> string ｜ <code>status</code> enum ｜ <code>skillId</code> string ｜ <code>botId</code> string ｜ <code>remoteName</code> string ｜ <code>createTime</code> string ｜ <code>completeTime</code> string ｜ <code>failureCode</code> string ｜ <code>failureReason</code> string ｜ <code>prompt</code> string</p></li><li><p><strong>SkillUseCase</strong>：<code>id</code> string ｜ <code>displayName</code> string ｜ <code>order</code> int32 ｜ <code>region</code> enum</p></li><li><p><strong>SkillVersion</strong>：<code>versionNo</code> int32 ｜ <code>changelog</code> string ｜ <code>updateTime</code> string ｜ <code>isActive</code> bool ｜ <code>source</code> string ｜ <code>forkedFrom</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.slides.v1</strong></p></li><li><p><strong>GetSlidesRequest</strong>：<code>id</code> string</p></li><li><p><strong>GetSlidesResponse</strong>：<code>slides</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.storage.v1</strong></p></li><li><p><strong>GetUserStorageQuotaRequest</strong>：（空消息）</p></li><li><p><strong>GetUserStorageQuotaResponse</strong>：<code>quota</code> message</p></li><li><p><strong>UserStorageQuota</strong>：<code>usedBytes</code> string ｜ <code>limitBytes</code> string ｜ <code>fileCountUsed</code> string ｜ <code>fileCountLimit</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.style.v1</strong></p></li><li><p><strong>AssetVariant</strong>：<code>theme</code> enum ｜ <code>assetUri</code> string</p></li><li><p><strong>ThemedAssets</strong>：<code>variants</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.suggest.v1</strong></p></li><li><p><strong>Action</strong>：<code>type</code> enum ｜ <code>value</code> string ｜ <code>extra</code> string</p></li><li><p><strong>ClaimPopupExposureRequest</strong>：<code>popupName</code> string</p></li><li><p><strong>ClaimPopupExposureResponse</strong>：（空消息）</p></li><li><p><strong>GetShowcaseByIDRequest</strong>：<code>id</code> string</p></li><li><p><strong>GetShowcaseByIDResponse</strong>：<code>showcase</code> message</p></li><li><p><strong>ImageInfo</strong>：<code>fileId</code> string ｜ <code>url</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>width</code> int32 ｜ <code>height</code> int32</p></li><li><p><strong>ListDefaultShowcasesRequest</strong>：<code>scenario</code> enum ｜ <code>categoryName</code> string ｜ <code>limit</code> int32 ｜ <code>kimiPlusId</code> string ｜ <code>agentModeType</code> enum</p></li><li><p><strong>ListDefaultShowcasesResponse</strong>：<code>showcases</code> repeated</p></li><li><p><strong>ListMobileHomepageShowcasesRequest</strong>：<code>isCommunityEnabled</code> bool</p></li><li><p><strong>ListMobileHomepageShowcasesResponse</strong>：<code>recId</code> string ｜ <code>showcases</code> repeated</p></li><li><p><strong>ListPopupsRequest</strong>：<code>deviceLanguage</code> string ｜ <code>scenario</code> message ｜ <code>pwaInstallable</code> bool</p></li><li><p><strong>ListPopupsResponse</strong>：<code>popups</code> repeated</p></li><li><p><strong>MobileHomepageShowcase</strong>：<code>id</code> string ｜ <code>emoji</code> string ｜ <code>pic</code> string ｜ <code>title</code> string ｜ <code>directedTo</code> string ｜ <code>prompt</code> string ｜ <code>kimiPlusId</code> string ｜ <code>nativeScheme</code> string ｜ <code>httpScheme</code> string ｜ <code>trackInfo</code> message ｜ <code>styleHint</code> message</p></li><li><p><strong>MobileHomepageShowcaseStyleHint</strong>：<code>color</code> string ｜ <code>backgroundPicLight</code> string ｜ <code>backgroundPicDark</code> string ｜ <code>useBackgroundPic</code> bool ｜ <code>prefixIconLight</code> string ｜ <code>prefixIconDark</code> string ｜ <code>backgroundColorLight</code> string ｜ <code>backgroundColorDark</code> string ｜ <code>fontForegroundColorLight</code> string ｜ <code>fontForegroundColorDark</code> string ｜ <code>trailingBackgroundPicLight</code> string ｜ <code>trailingBackgroundPicDark</code> string ｜ <code>highlightedTextColorLight</code> string ｜ <code>highlightedTextColorDark</code> string ｜ <code>trailingSpaceInsetWidth</code> int32</p></li><li><p><strong>Popup</strong>：<code>name</code> string ｜ <code>title</code> string ｜ <code>size</code> enum ｜ <code>type</code> enum ｜ <code>onboardingContent</code> message ｜ <code>theme</code> enum ｜ <code>contents</code> repeated ｜ <code>buttons</code> repeated</p></li><li><p><strong>PromptCategory</strong>：<code>name</code> string ｜ <code>localizedName</code> string ｜ <code>iconUrl</code> string ｜ <code>iconUrlDark</code> string ｜ <code>iconUrlMobile</code> string ｜ <code>scenario</code> enum</p></li><li><p><strong>RecEventLog</strong>：<code>via</code> string ｜ <code>trackVia</code> string</p></li><li><p><strong>Showcase</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>author</code> message ｜ <code>stats</code> message ｜ <code>liked</code> bool ｜ <code>coverImage</code> message ｜ <code>url</code> string ｜ <code>category</code> message ｜ <code>recEventLog</code> message ｜ <code>remixPrompt</code> string ｜ <code>shareId</code> string ｜ <code>dominantColor</code> string ｜ <code>kimiplusId</code> string ｜ <code>agentModeType</code> enum ｜ <code>images</code> repeated<br><strong>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.Popup</strong></p></li><li><p><strong>Button</strong>：<code>text</code> string ｜ <code>style</code> string ｜ <code>scenario</code> enum ｜ <code>customControl</code> bool ｜ <code>action</code> message</p></li><li><p><strong>Content</strong>：<code>text</code> message ｜ <code>image</code> message ｜ <code>video</code> message</p></li><li><p><strong>Image</strong>：<code>url</code> string</p></li><li><p><strong>OnboardingContent</strong>：<code>showMembershipPricing</code> bool ｜ <code>items</code> repeated</p></li><li><p><strong>Text</strong>：<code>content</code> string</p></li><li><p><strong>Video</strong>：<code>url</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.Popup.OnboardingContent</strong></p></li><li><p><strong>Item</strong>：<code>video</code> message ｜ <code>title</code> string ｜ <code>description</code> string ｜ <code>actionButton</code> message<br><strong>com.moonshot.kimi.proto.kimi.gateway.suggest.v1.Showcase</strong></p></li><li><p><strong>Author</strong>：<code>name</code> string ｜ <code>avatarUrl</code> string</p></li><li><p><strong>Stats</strong>：<code>readCount</code> int32 ｜ <code>likeCount</code> int32<br><strong>com.moonshot.kimi.proto.kimi.gateway.swarm.v1</strong></p></li><li><p><strong>ListAgentMessagesByShareRequest</strong>：<code>agentId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>shareId</code> string</p></li><li><p><strong>ListAgentMessagesByShareResponse</strong>：<code>nextPageToken</code> string ｜ <code>messages</code> repeated</p></li><li><p><strong>ListAgentMessagesRequest</strong>：<code>agentId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListAgentMessagesResponse</strong>：<code>nextPageToken</code> string ｜ <code>messages</code> repeated</p></li><li><p><strong>ListAgentsRequest</strong>：<code>chatId</code> string ｜ <code>includeTerminated</code> bool</p></li><li><p><strong>ListAgentsResponse</strong>：<code>agents</code> repeated</p></li><li><p><strong>StopAgentsRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>StopAgentsResponse</strong>：（空消息）</p></li><li><p><strong>Subagent</strong>：<code>id</code> string ｜ <code>index</code> int32 ｜ <code>name</code> string ｜ <code>iconUrl</code> string ｜ <code>motto</code> string ｜ <code>status</code> enum ｜ <code>progressPercent</code> int32 ｜ <code>description</code> string ｜ <code>type</code> string ｜ <code>isAsync</code> bool<br><strong>com.moonshot.kimi.proto.kimi.gateway.trigger.v1</strong></p></li><li><p><strong>AgentTaskPayload</strong>：<code>content</code> string ｜ <code>persistContext</code> bool ｜ <code>inheritContext</code> bool ｜ <code>target</code> string ｜ <code>sourceWorkflow</code> enum</p></li><li><p><strong>CreateTaskRequest</strong>：<code>type</code> enum ｜ <code>chatId</code> string ｜ <code>title</code> string ｜ <code>cronExpr</code> string ｜ <code>nextTime</code> string ｜ <code>payload</code> message ｜ <code>expiredAt</code> string ｜ <code>projectId</code> string</p></li><li><p><strong>CreateTaskResponse</strong>：<code>task</code> message ｜ <code>pauseReason</code> message</p></li><li><p><strong>DeleteTaskRequest</strong>：<code>taskId</code> string</p></li><li><p><strong>DeleteTaskResponse</strong>：（空消息）</p></li><li><p><strong>GetTaskRequest</strong>：<code>taskId</code> string</p></li><li><p><strong>GetTaskResponse</strong>：<code>task</code> message</p></li><li><p><strong>ListTaskExecutionsRequest</strong>：<code>taskId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListTaskExecutionsResponse</strong>：<code>nextPageToken</code> string ｜ <code>executions</code> repeated</p></li><li><p><strong>ListTasksRequest</strong>：<code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>chatId</code> string ｜ <code>projectId</code> string</p></li><li><p><strong>ListTasksResponse</strong>：<code>nextPageToken</code> string ｜ <code>tasks</code> repeated</p></li><li><p><strong>MarkExecutionReadRequest</strong>：<code>taskId</code> string ｜ <code>executionId</code> string</p></li><li><p><strong>MarkExecutionReadResponse</strong>：<code>execution</code> message</p></li><li><p><strong>RunTaskRequest</strong>：<code>taskId</code> string</p></li><li><p><strong>RunTaskResponse</strong>：<code>execution</code> message</p></li><li><p><strong>Task</strong>：<code>chatId</code> string ｜ <code>taskId</code> string ｜ <code>title</code> string ｜ <code>type</code> enum ｜ <code>status</code> enum ｜ <code>statusText</code> string ｜ <code>cronExpr</code> string ｜ <code>nextTime</code> string ｜ <code>payload</code> message ｜ <code>lastExecution</code> message ｜ <code>expiredAt</code> string ｜ <code>updateAt</code> string ｜ <code>projectId</code> string</p></li><li><p><strong>TaskExecution</strong>：<code>executionId</code> string ｜ <code>taskId</code> string ｜ <code>executeTime</code> string ｜ <code>status</code> enum ｜ <code>chatId</code> string ｜ <code>failReason</code> message ｜ <code>summary</code> string ｜ <code>isRead</code> bool</p></li><li><p><strong>TaskPayload</strong>：<code>agentTask</code> message ｜ <code>webhook</code> message</p></li><li><p><strong>UpdateTaskRequest</strong>：<code>task</code> message ｜ <code>updateMask</code> string</p></li><li><p><strong>UpdateTaskResponse</strong>：<code>task</code> message</p></li><li><p><strong>WebhookPayload</strong>：<code>url</code> string ｜ <code>method</code> string ｜ <code>body</code> string ｜ <code>headers</code> map<br><strong>com.moonshot.kimi.proto.kimi.gateway.tts.v1</strong></p></li><li><p><strong>ListVoicesRequest</strong>：（空消息）</p></li><li><p><strong>ListVoicesResponse</strong>：<code>voices</code> repeated</p></li><li><p><strong>Voice</strong>：<code>id</code> string ｜ <code>displayName</code> string ｜ <code>description</code> string ｜ <code>isDefault</code> bool ｜ <code>playGreetingUrl</code> string ｜ <code>legacyVoiceId</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.websites.v1</strong></p></li><li><p><strong>GetWebsiteSlugRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>GetWebsiteSlugResponse</strong>：<code>info</code> message</p></li><li><p><strong>SetWebsiteSlugRequest</strong>：<code>chatId</code> string ｜ <code>slug</code> string</p></li><li><p><strong>SetWebsiteSlugResponse</strong>：<code>info</code> message ｜ <code>reason</code> enum</p></li><li><p><strong>ValidateWebsiteSlugRequest</strong>：<code>chatId</code> string ｜ <code>slug</code> string</p></li><li><p><strong>ValidateWebsiteSlugResponse</strong>：<code>available</code> bool ｜ <code>reason</code> enum</p></li><li><p><strong>WebsiteSlug</strong>：<code>chatId</code> string ｜ <code>shortId</code> string ｜ <code>customSlug</code> string ｜ <code>targetType</code> enum ｜ <code>canonicalDomain</code> string ｜ <code>displayUrl</code> string<br><strong>com.moonshot.kimi.proto.kimi.gateway.work.v1</strong></p></li><li><p><strong>Pairing</strong>：<code>id</code> string ｜ <code>state</code> enum ｜ <code>expireTime</code> string ｜ <code>clientId</code> string ｜ <code>name</code> string ｜ <code>model</code> string ｜ <code>platform</code> enum ｜ <code>serverId</code> string<br><strong>com.moonshot.kimi.proto.kimi.memory.v1</strong></p></li><li><p><strong>DreamVaultCitation</strong>：<code>sourceRef</code> int32 ｜ <code>date</code> string ｜ <code>display</code> string</p></li><li><p><strong>SemanticMemory</strong>：<code>id</code> string ｜ <code>content</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string</p></li><li><p><strong>VaultAnchor</strong>：<code>type</code> string ｜ <code>value</code> string</p></li><li><p><strong>VaultLink</strong>：<code>kind</code> enum ｜ <code>fromPath</code> string ｜ <code>fromSandboxUri</code> string ｜ <code>text</code> string ｜ <code>normalized</code> string ｜ <code>targetType</code> enum ｜ <code>targetPath</code> string ｜ <code>targetSandboxUri</code> string ｜ <code>targetSourceRef</code> int32 ｜ <code>displayText</code> string ｜ <code>targetAnchor</code> message<br><strong>com.moonshot.kimi.proto.kimi.order.v1</strong></p></li><li><p><strong>Discount</strong>：<code>money</code> message ｜ <code>duration</code> message</p></li><li><p><strong>Duration</strong>：<code>duration</code> int32 ｜ <code>timeUnit</code> enum</p></li><li><p><strong>Goods</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>subtitle</code> string ｜ <code>priceInCents</code> string ｜ <code>currency</code> string ｜ <code>durationDays</code> int32 ｜ <code>status</code> enum ｜ <code>description</code> message ｜ <code>useRegion</code> enum ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>membershipLevel</code> enum ｜ <code>transitionSummary</code> message ｜ <code>subscribed</code> bool ｜ <code>billingCycle</code> message ｜ <code>thirdPayParam</code> message ｜ <code>discount</code> message ｜ <code>type</code> enum ｜ <code>domain</code> enum ｜ <code>stock</code> message ｜ <code>version</code> enum ｜ <code>amounts</code> repeated ｜ <code>features</code> repeated</p></li><li><p><strong>Money</strong>：<code>priceId</code> string ｜ <code>currency</code> string ｜ <code>priceInCents</code> string</p></li><li><p><strong>Subscription</strong>：<code>subscriptionId</code> string ｜ <code>goods</code> message ｜ <code>subscriptionTime</code> string ｜ <code>currentStartTime</code> string ｜ <code>currentEndTime</code> string ｜ <code>nextBillingTime</code> string ｜ <code>status</code> enum ｜ <code>paymentChannel</code> enum ｜ <code>type</code> enum ｜ <code>active</code> bool ｜ <code>domain</code> enum</p></li><li><p><strong>ThirdPayParam</strong>：<code>productId</code> string ｜ <code>groupId</code> string<br><strong>com.moonshot.kimi.proto.kimi.order.v1.Goods</strong></p></li><li><p><strong>Stock</strong>：<code>enabled</code> bool ｜ <code>quantity</code> int32 ｜ <code>refreshTtl</code> int32 ｜ <code>status</code> enum</p></li><li><p><strong>Transition</strong>：<code>action</code> enum ｜ <code>refundAmount</code> message ｜ <code>bonusCycle</code> message ｜ <code>reason</code> enum<br><strong>com.moonshot.kimi.proto.kimi.outbox.v1</strong></p></li><li><p><strong>ClearOutboxMessagesRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>CreateOutboxMessageRequest</strong>：<code>chatId</code> string ｜ <code>message</code> message</p></li><li><p><strong>CreateOutboxMessageResponse</strong>：<code>outboxMessage</code> message ｜ <code>status</code> enum</p></li><li><p><strong>DeleteOutboxMessageRequest</strong>：<code>id</code> string</p></li><li><p><strong>ListOutboxMessagesRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>ListOutboxMessagesResponse</strong>：<code>status</code> enum ｜ <code>messages</code> repeated</p></li><li><p><strong>ReorderOutboxMessagesRequest</strong>：<code>chatId</code> string ｜ <code>ids</code> repeated</p></li><li><p><strong>ReorderOutboxMessagesResponse</strong>：<code>messages</code> repeated</p></li><li><p><strong>ResumeOutboxRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>ResumeOutboxResponse</strong>：<code>status</code> enum ｜ <code>dispatched</code> message</p></li><li><p><strong>SendOutboxMessageNowRequest</strong>：<code>id</code> string</p></li><li><p><strong>SendOutboxMessageNowResponse</strong>：<code>interrupted</code> bool</p></li><li><p><strong>StopOutboxRequest</strong>：<code>chatId</code> string</p></li><li><p><strong>StopOutboxResponse</strong>：<code>status</code> enum</p></li><li><p><strong>UpdateOutboxMessageRequest</strong>：<code>id</code> string ｜ <code>message</code> message ｜ <code>status</code> enum</p></li><li><p><strong>UpdateOutboxMessageResponse</strong>：<code>outboxMessage</code> message<br><strong>com.moonshot.kimi.proto.kimi.riskcontrol.v1</strong></p></li><li><p><strong>CaptchaRequestPayload</strong>：（空消息）</p></li><li><p><strong>CaptchaVerifyPayload</strong>：<code>success</code> bool ｜ <code>validate</code> string</p></li><li><p><strong>CustomPayload</strong>：<code>captchaVerify</code> message ｜ <code>captchaRequest</code> message<br><strong>com.moonshot.kimi.proto.kimi.slides.v1</strong></p></li><li><p><strong>CustomColors</strong>：<code>background</code> string ｜ <code>primary</code> string ｜ <code>secondary</code> string ｜ <code>auxiliary</code> repeated</p></li><li><p><strong>Slides</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>templateId</code> string ｜ <code>coverUrl</code> string ｜ <code>payloadUrl</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>outlineArtifactId</code> string ｜ <code>type</code> enum ｜ <code>status</code> enum ｜ <code>pptdPath</code> string</p></li><li><p><strong>SlidesDesignOptions</strong>：<code>width</code> int32 ｜ <code>height</code> int32<br><strong>com.moonshot.kimi.proto.kimi.usersetting.v1</strong></p></li><li><p><strong>AutoDreamSetting</strong>：<code>enabled</code> bool ｜ <code>userConfigured</code> bool</p></li><li><p><strong>ChatSetting</strong>：<code>nickname</code> string ｜ <code>occupation</code> enum ｜ <code>instructions</code> string</p></li><li><p><strong>GetUserSettingRequest</strong>：（空消息）</p></li><li><p><strong>GetUserSettingResponse</strong>：<code>userSetting</code> message</p></li><li><p><strong>MemorySetting</strong>：<code>useSemanticMemory</code> bool ｜ <code>useEpisodicMemory</code> bool ｜ <code>userConfigured</code> bool ｜ <code>autoDream</code> message</p></li><li><p><strong>MobileNotificationSetting</strong>：<code>activityNotification</code> bool ｜ <code>taskCompletionNotification</code> bool</p></li><li><p><strong>NotificationSetting</strong>：<code>web</code> message ｜ <code>mobile</code> message</p></li><li><p><strong>SkillEvoSetting</strong>：<code>enabled</code> bool ｜ <code>enabledAt</code> string</p></li><li><p><strong>UpdateUserSettingRequest</strong>：<code>userSetting</code> message ｜ <code>updateMask</code> string</p></li><li><p><strong>UpdateUserSettingResponse</strong>：<code>userSetting</code> message</p></li><li><p><strong>UserSetting</strong>：<code>memory</code> message ｜ <code>skillEvo</code> message ｜ <code>notification</code> message ｜ <code>chat</code> message</p></li><li><p><strong>WebNotificationSetting</strong>：<code>pageNotification</code> bool ｜ <code>browserNotification</code> bool ｜ <code>showNotificationWidget</code> bool<br><strong>com.moonshot.kimi.proto.moment.type.v1</strong></p></li><li><p><strong>CommentCard</strong>：<code>id</code> string ｜ <code>content</code> string ｜ <code>author</code> message ｜ <code>likeNum</code> int32 ｜ <code>isLiked</code> bool ｜ <code>mentions</code> repeated ｜ <code>links</code> repeated</p></li><li><p><strong>CommentPreset</strong>：<code>id</code> string ｜ <code>content</code> string ｜ <code>mentions</code> repeated</p></li><li><p><strong>FollowUnreadItem</strong>：<code>user</code> message ｜ <code>isUnread</code> bool</p></li><li><p><strong>Image</strong>：<code>fileId</code> string ｜ <code>url</code> string ｜ <code>width</code> string ｜ <code>height</code> string</p></li><li><p><strong>InteractionStatus</strong>：<code>isLiked</code> bool ｜ <code>isDisliked</code> bool ｜ <code>isCollected</code> bool ｜ <code>isMuted</code> bool</p></li><li><p><strong>Link</strong>：<code>id</code> string ｜ <code>type</code> enum ｜ <code>displayText</code> string ｜ <code>text</code> string ｜ <code>offset</code> int32 ｜ <code>length</code> int32 ｜ <code>url</code> string</p></li><li><p><strong>MentionedUser</strong>：<code>userId</code> string ｜ <code>name</code> string</p></li><li><p><strong>MomentCard</strong>：<code>id</code> string ｜ <code>title</code> string ｜ <code>excerpt</code> string ｜ <code>author</code> message ｜ <code>type</code> enum ｜ <code>via</code> string ｜ <code>trackVia</code> string ｜ <code>image</code> message ｜ <code>backgroundColor</code> string ｜ <code>chatShareInfo</code> message ｜ <code>stat</code> message ｜ <code>interactionStatus</code> message ｜ <code>images</code> repeated</p></li><li><p><strong>MomentChatInfo</strong>：<code>rawMessage</code> string ｜ <code>isDeleted</code> bool ｜ <code>share</code> message ｜ <code>segments</code> repeated</p></li><li><p><strong>MomentStat</strong>：<code>likeNum</code> int32 ｜ <code>dislikeNum</code> int32 ｜ <code>commentNum</code> int32 ｜ <code>shareNum</code> int32 ｜ <code>collectNum</code> int32 ｜ <code>readNum</code> int32</p></li><li><p><strong>MuteReason</strong>：<code>id</code> string ｜ <code>content</code> string</p></li><li><p><strong>ReminderItem</strong>：<code>type</code> enum ｜ <code>count</code> int32 ｜ <code>lastUsers</code> repeated</p></li><li><p><strong>UploadLink</strong>：<code>id</code> string ｜ <code>type</code> enum ｜ <code>text</code> string ｜ <code>offset</code> int32 ｜ <code>length</code> int32 ｜ <code>url</code> string</p></li><li><p><strong>UserMiniInfo</strong>：<code>userId</code> string ｜ <code>name</code> string ｜ <code>bio</code> string ｜ <code>avatarUrl</code> string ｜ <code>isDeleted</code> int32<br><strong>com.moonshot.kimi.proto.moment.type.v1.MomentCard</strong></p></li><li><p><strong>ChatShareInfo</strong>：<code>chatShareId</code> string ｜ <code>chatInfo</code> message<br><strong>com.moonshot.kimi.proto.moment.type.v1.MomentChatInfo</strong></p></li><li><p><strong>ChatFileRef</strong>：<code>contentType</code> string ｜ <code>fileName</code> string ｜ <code>fileSize</code> string ｜ <code>fileId</code> string ｜ <code>imageUrl</code> string</p></li><li><p><strong>ChatSegment</strong>：<code>role</code> enum ｜ <code>text</code> string ｜ <code>groupId</code> string ｜ <code>kimiPlusInfo</code> message ｜ <code>fileRefs</code> repeated</p></li><li><p><strong>KimiPlusInfo</strong>：<code>kimiPlusId</code> string ｜ <code>avatarUrl</code> string<br><strong>com.moonshot.kimi.proto.moment.v1</strong></p></li><li><p><strong>AppendMuteReasonsRequest</strong>：<code>objectType</code> enum ｜ <code>objectId</code> string ｜ <code>advice</code> string ｜ <code>reasonIds</code> repeated</p></li><li><p><strong>AppendMuteReasonsResponse</strong>：<code>msg</code> string</p></li><li><p><strong>AskKimiQuestion</strong>：<code>question</code> string ｜ <code>id</code> string</p></li><li><p><strong>AvatarImage</strong>：<code>url</code> string</p></li><li><p><strong>ChatShareCard</strong>：<code>htmlFile</code> message ｜ <code>codeArtifact</code> message ｜ <code>imageList</code> message ｜ <code>okcArtifact</code> message ｜ <code>notice</code> string ｜ <code>noticeIconUrl</code> string</p></li><li><p><strong>Comment</strong>：<code>createTime</code> string ｜ <code>id</code> string ｜ <code>author</code> message ｜ <code>momentId</code> string ｜ <code>repliedComment</code> message ｜ <code>content</code> message ｜ <code>type</code> enum ｜ <code>stat</code> message ｜ <code>ipLocation</code> string ｜ <code>status</code> enum ｜ <code>interactionStatus</code> message ｜ <code>subCommentPageToken</code> string ｜ <code>subCommentNum</code> int32 ｜ <code>subCommentIsLastPage</code> bool ｜ <code>rootComment</code> message ｜ <code>aiGenerated</code> bool ｜ <code>subComments</code> repeated ｜ <code>mentions</code> repeated ｜ <code>links</code> repeated</p></li><li><p><strong>CommentAuthor</strong>：<code>userId</code> string ｜ <code>name</code> string ｜ <code>avatarImage</code> message</p></li><li><p><strong>CommentContent</strong>：<code>text</code> string</p></li><li><p><strong>CommentInteractionStatus</strong>：<code>isLiked</code> bool ｜ <code>isDisliked</code> bool ｜ <code>isMuted</code> int32</p></li><li><p><strong>CommentStat</strong>：<code>likeNum</code> int32 ｜ <code>replyNum</code> int32</p></li><li><p><strong>CreateChatV2Request</strong>：<code>momentId</code> string ｜ <code>chatType</code> enum ｜ <code>chatTypeSubKey</code> string ｜ <code>askKimiQuestion</code> string</p></li><li><p><strong>CreateChatV2Response</strong>：<code>chatId</code> string ｜ <code>chat</code> message ｜ <code>chatType</code> enum ｜ <code>chatTypeSubKey</code> string</p></li><li><p><strong>CreateCommentRequest</strong>：<code>momentId</code> string ｜ <code>targetCommentId</code> string ｜ <code>content</code> message ｜ <code>mentions</code> repeated ｜ <code>links</code> repeated</p></li><li><p><strong>CreateCommentResponse</strong>：<code>comment</code> message</p></li><li><p><strong>CreateComplaintRequest</strong>：<code>objectType</code> enum ｜ <code>objectId</code> string ｜ <code>reason</code> string</p></li><li><p><strong>CreateComplaintResponse</strong>：（空消息）</p></li><li><p><strong>CreateFavoriteRequest</strong>：<code>momentId</code> string</p></li><li><p><strong>CreateFavoriteResponse</strong>：（空消息）</p></li><li><p><strong>CreateFileRequest</strong>：<code>fileName</code> string ｜ <code>fileId</code> string ｜ <code>extra</code> message</p></li><li><p><strong>CreateFileResponse</strong>：<code>fileId</code> string ｜ <code>fileName</code> string ｜ <code>size</code> int32 ｜ <code>originUrl</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>contentType</code> string</p></li><li><p><strong>CreateMomentRequest</strong>：<code>text</code> string ｜ <code>title</code> string ｜ <code>chatShareId</code> string ｜ <code>visibility</code> enum ｜ <code>artifactShareId</code> string ｜ <code>images</code> repeated ｜ <code>mentions</code> repeated ｜ <code>links</code> repeated ｜ <code>hashtagIds</code> repeated</p></li><li><p><strong>CreateMomentResponse</strong>：<code>moment</code> message</p></li><li><p><strong>DeleteCommentRequest</strong>：<code>commentId</code> string</p></li><li><p><strong>DeleteFavoriteRequest</strong>：<code>momentId</code> string</p></li><li><p><strong>DeleteFavoriteResponse</strong>：（空消息）</p></li><li><p><strong>DeleteMomentRequest</strong>：<code>momentId</code> string</p></li><li><p><strong>Feed</strong>：<code>feedType</code> enum ｜ <code>feedId</code> string ｜ <code>moment</code> message ｜ <code>interestCard</code> message ｜ <code>recEventLog</code> message</p></li><li><p><strong>GeneratePresignedURLRequest</strong>：<code>fileType</code> enum</p></li><li><p><strong>GeneratePresignedURLResponse</strong>：<code>uploadUrl</code> string ｜ <code>objectName</code> string ｜ <code>fileId</code> string</p></li><li><p><strong>GetChatShareCardRequest</strong>：<code>chatShareId</code> string</p></li><li><p><strong>GetChatShareCardResponse</strong>：<code>chatShareCard</code> message</p></li><li><p><strong>GetConfigRequest</strong>：（空消息）</p></li><li><p><strong>GetConfigResponse</strong>：<code>notification</code> message</p></li><li><p><strong>GetFeedRequest</strong>：<code>feedType</code> enum ｜ <code>feedId</code> string</p></li><li><p><strong>GetFeedResponse</strong>：<code>feed</code> message ｜ <code>similarMoments</code> repeated</p></li><li><p><strong>GetHashtagRequest</strong>：<code>id</code> string</p></li><li><p><strong>GetHashtagResponse</strong>：<code>hashtag</code> message</p></li><li><p><strong>GetLastChatV2Request</strong>：<code>momentId</code> string ｜ <code>chatType</code> enum ｜ <code>chatTypeSubKey</code> string</p></li><li><p><strong>GetLastChatV2Response</strong>：<code>chatId</code> string ｜ <code>chatType</code> enum ｜ <code>chatTypeSubKey</code> string</p></li><li><p><strong>GetMeRequest</strong>：<code>view</code> enum</p></li><li><p><strong>GetMeResponse</strong>：<code>userBase</code> message ｜ <code>userStat</code> message ｜ <code>userInfo</code> message</p></li><li><p><strong>GetOriginalMessageCountRequest</strong>：<code>momentId</code> string ｜ <code>chatId</code> string</p></li><li><p><strong>GetOriginalMessageCountResponse</strong>：<code>messageCount</code> int32</p></li><li><p><strong>GetRawShareChatV2Request</strong>：<code>chatShareId</code> string</p></li><li><p><strong>GetRawShareChatV2Response</strong>：<code>share</code> message</p></li><li><p><strong>GetReminderStatusRequest</strong>：（空消息）</p></li><li><p><strong>GetReminderStatusResponse</strong>：<code>hasUnread</code> bool</p></li><li><p><strong>GetUserProfileRequest</strong>：<code>userId</code> string</p></li><li><p><strong>GetUserProfileResponse</strong>：<code>userBase</code> message ｜ <code>userStat</code> message ｜ <code>interactionStatus</code> message ｜ <code>userInfo</code> message</p></li><li><p><strong>HashtagIcon</strong>：<code>fileId</code> string ｜ <code>url</code> int32 ｜ <code>width</code> int32 ｜ <code>height</code> int32</p></li><li><p><strong>HashtagItem</strong>：<code>id</code> string ｜ <code>name</code> string ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>description</code> string ｜ <code>icon</code> message ｜ <code>status</code> enum ｜ <code>type</code> enum ｜ <code>momentCount</code> string</p></li><li><p><strong>ImageExtra</strong>：<code>width</code> int32 ｜ <code>height</code> int32</p></li><li><p><strong>ImageInfo</strong>：<code>fileId</code> string ｜ <code>extra</code> message ｜ <code>originUrl</code> string ｜ <code>thumbnailUrl</code> string ｜ <code>thumbnailExtra</code> message ｜ <code>downloadUrl</code> string</p></li><li><p><strong>ImageUploadInfo</strong>：<code>fileId</code> string ｜ <code>extra</code> message</p></li><li><p><strong>Interest</strong>：<code>name</code> string ｜ <code>imageUrl</code> string ｜ <code>subInterests</code> repeated</p></li><li><p><strong>InterestCard</strong>：<code>title</code> string ｜ <code>content</code> string ｜ <code>buttonText</code> string ｜ <code>interests</code> repeated</p></li><li><p><strong>InterestSelection</strong>：<code>interestName</code> string ｜ <code>subInterestName</code> string ｜ <code>domainTag</code> string</p></li><li><p><strong>ListCommentsRequest</strong>：<code>momentId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>rootCommentId</code> string ｜ <code>pinnedCommentId</code> string</p></li><li><p><strong>ListCommentsResponse</strong>：<code>nextPageToken</code> string ｜ <code>pageStat</code> message ｜ <code>isLastPage</code> bool ｜ <code>pinnedCommentId</code> string ｜ <code>comments</code> repeated</p></li><li><p><strong>ListFeedsRequest</strong>：<code>sessionId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>category</code> enum ｜ <code>userId</code> string ｜ <code>pinnedMomentId</code> string ｜ <code>hashtagId</code> string</p></li><li><p><strong>ListFeedsResponse</strong>：<code>nextPageToken</code> string ｜ <code>isLastPage</code> bool ｜ <code>feeds</code> repeated</p></li><li><p><strong>ListFollowUnreadRequest</strong>：（空消息）</p></li><li><p><strong>ListFollowUnreadResponse</strong>：<code>items</code> repeated</p></li><li><p><strong>ListFollowsRequest</strong>：<code>followType</code> enum ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string ｜ <code>userId</code> string</p></li><li><p><strong>ListFollowsResponse</strong>：<code>nextPageToken</code> string ｜ <code>userInfos</code> repeated</p></li><li><p><strong>ListHashtagsRequest</strong>：（空消息）</p></li><li><p><strong>ListHashtagsResponse</strong>：<code>topUpHashtags</code> repeated ｜ <code>recentUsedHashtags</code> repeated ｜ <code>allHashtags</code> repeated</p></li><li><p><strong>ListHotHashtagsInSearchRequest</strong>：（空消息）</p></li><li><p><strong>ListHotHashtagsInSearchResponse</strong>：<code>hashtags</code> repeated</p></li><li><p><strong>ListMentionableBotsRequest</strong>：<code>sceneType</code> enum</p></li><li><p><strong>ListMentionableBotsResponse</strong>：<code>bots</code> repeated</p></li><li><p><strong>ListMomentAskKimiQuestionsRequest</strong>：<code>momentId</code> string ｜ <code>limit</code> int32</p></li><li><p><strong>ListMomentAskKimiQuestionsResponse</strong>：<code>askKimiQuestions</code> repeated</p></li><li><p><strong>ListMuteReasonsRequest</strong>：<code>objectType</code> enum</p></li><li><p><strong>ListMuteReasonsResponse</strong>：<code>reasons</code> repeated</p></li><li><p><strong>ListNotificationRequest</strong>：<code>idGt</code> string ｜ <code>idLt</code> string ｜ <code>limit</code> int32</p></li><li><p><strong>ListNotificationResponse</strong>：<code>notifications</code> repeated ｜ <code>moments</code> repeated ｜ <code>comments</code> repeated ｜ <code>users</code> repeated</p></li><li><p><strong>ListRemindersRequest</strong>：（空消息）</p></li><li><p><strong>ListRemindersResponse</strong>：<code>items</code> repeated</p></li><li><p><strong>ListSimilarMomentsRequest</strong>：<code>momentId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListSimilarMomentsResponse</strong>：<code>nextPageToken</code> string ｜ <code>items</code> repeated</p></li><li><p><strong>ListSubCommentsRequest</strong>：<code>rootCommentId</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>ListSubCommentsResponse</strong>：<code>nextPageToken</code> string ｜ <code>subComments</code> repeated</p></li><li><p><strong>MarkReadForFollowRequest</strong>：<code>followUserId</code> string</p></li><li><p><strong>MarkReadForFollowResponse</strong>：（空消息）</p></li><li><p><strong>MarkReadForReminderRequest</strong>：（空消息）</p></li><li><p><strong>MarkReadForReminderResponse</strong>：（空消息）</p></li><li><p><strong>MarkReadRequest</strong>：<code>idLte</code> string</p></li><li><p><strong>MarkReadResponse</strong>：（空消息）</p></li><li><p><strong>MentionedUser</strong>：<code>userId</code> string ｜ <code>name</code> string ｜ <code>avatarUrl</code> string</p></li><li><p><strong>ModifyBlockRequest</strong>：<code>userId</code> string ｜ <code>action</code> enum</p></li><li><p><strong>ModifyBlockResponse</strong>：<code>userId</code> string ｜ <code>blockStatus</code> enum</p></li><li><p><strong>ModifyFollowRequest</strong>：<code>userId</code> string ｜ <code>action</code> enum</p></li><li><p><strong>ModifyFollowResponse</strong>：<code>userId</code> string ｜ <code>followStatus</code> enum</p></li><li><p><strong>Moment</strong>：<code>id</code> string ｜ <code>content</code> message ｜ <code>stat</code> message ｜ <code>createTime</code> string ｜ <code>updateTime</code> string ｜ <code>publishTime</code> string ｜ <code>author</code> message ｜ <code>interactionStatus</code> message ｜ <code>commentPermission</code> enum ｜ <code>askKimiQuestion</code> message ｜ <code>refMomentId</code> string ｜ <code>hotComment</code> message ｜ <code>chatShareCard</code> message ｜ <code>coverImage</code> message ｜ <code>hashtags</code> repeated ｜ <code>askKimiQuestions</code> repeated ｜ <code>commentPresets</code> repeated</p></li><li><p><strong>MomentAuthor</strong>：<code>userBase</code> message ｜ <code>userStat</code> message ｜ <code>type</code> enum ｜ <code>relationStatus</code> message</p></li><li><p><strong>MomentContent</strong>：<code>text</code> string ｜ <code>title</code> string ｜ <code>media</code> message ｜ <code>source</code> enum ｜ <code>externalLink</code> message ｜ <code>chatInfo</code> message ｜ <code>chatShareId</code> string ｜ <code>type</code> enum ｜ <code>excerpt</code> string ｜ <code>visibility</code> enum ｜ <code>textType</code> enum ｜ <code>artifactShareId</code> string ｜ <code>mentions</code> repeated ｜ <code>links</code> repeated</p></li><li><p><strong>MuteRequest</strong>：<code>objectType</code> enum ｜ <code>objectId</code> string ｜ <code>reason</code> string</p></li><li><p><strong>MuteResponse</strong>：<code>msg</code> string</p></li><li><p><strong>Notification</strong>：<code>id</code> string ｜ <code>notificationType</code> enum ｜ <code>momentId</code> string ｜ <code>commentId</code> string ｜ <code>happenedTime</code> string ｜ <code>readTime</code> string ｜ <code>fromUsers</code> repeated</p></li><li><p><strong>NotificationConfig</strong>：<code>pollSec</code> int32 ｜ <code>pollInCommunitySec</code> int32</p></li><li><p><strong>PageStat</strong>：<code>commentNum</code> int32 ｜ <code>likeNum</code> int32</p></li><li><p><strong>ReChatRequest</strong>：<code>momentId</code> string ｜ <code>lastChatId</code> string</p></li><li><p><strong>ReChatResponse</strong>：<code>chatId</code> string ｜ <code>chat</code> message ｜ <code>chatType</code> enum ｜ <code>chatTypeSubKey</code> string</p></li><li><p><strong>RecEventLog</strong>：<code>via</code> string ｜ <code>trackVia</code> string</p></li><li><p><strong>RecommendHashtagsRequest</strong>：<code>title</code> string ｜ <code>text</code> string</p></li><li><p><strong>RecommendHashtagsResponse</strong>：<code>hashtags</code> repeated</p></li><li><p><strong>RepliedComment</strong>：<code>id</code> string ｜ <code>user</code> message</p></li><li><p><strong>ReportSelectionsRequest</strong>：<code>selections</code> repeated</p></li><li><p><strong>ReportSelectionsResponse</strong>：（空消息）</p></li><li><p><strong>SearchHashtagsRequest</strong>：<code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>SearchHashtagsResponse</strong>：<code>nextPageToken</code> string ｜ <code>hashtags</code> repeated ｜ <code>relatedHashtags</code> repeated</p></li><li><p><strong>SearchHashtagsResponseItem</strong>：<code>hashtag</code> message ｜ <code>nameHighlights</code> repeated</p></li><li><p><strong>SearchMomentsRequest</strong>：<code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>SearchMomentsResponse</strong>：<code>nextPageToken</code> string ｜ <code>moments</code> repeated ｜ <code>relatedMoments</code> repeated</p></li><li><p><strong>SearchMomentsResponseItem</strong>：<code>moment</code> message ｜ <code>recEventLog</code> message ｜ <code>titleHighlights</code> repeated ｜ <code>excerptHighlights</code> repeated</p></li><li><p><strong>SearchResponseItemHighlight</strong>：<code>startFrom</code> int32 ｜ <code>endAt</code> int32</p></li><li><p><strong>SearchUsersRequest</strong>：<code>query</code> string ｜ <code>pageSize</code> int32 ｜ <code>pageToken</code> string</p></li><li><p><strong>SearchUsersResponse</strong>：<code>nextPageToken</code> string ｜ <code>users</code> repeated ｜ <code>relatedUsers</code> repeated</p></li><li><p><strong>SearchUsersResponseItem</strong>：<code>userInfo</code> message ｜ <code>nameHighlights</code> repeated ｜ <code>bioHighlights</code> repeated</p></li><li><p><strong>SubInterest</strong>：<code>name</code> string ｜ <code>domainTag</code> string</p></li><li><p><strong>SubmitSelectionsRequest</strong>：<code>selections</code> repeated</p></li><li><p><strong>SubmitSelectionsResponse</strong>：（空消息）</p></li><li><p><strong>SuggestSearchQueryRequest</strong>：<code>query</code> string</p></li><li><p><strong>SuggestSearchQueryResponse</strong>：<code>suggestedQueries</code> repeated</p></li><li><p><strong>SuggestSearchQueryResponseItem</strong>：<code>suggestedQuery</code> string ｜ <code>highlights</code> repeated</p></li><li><p><strong>UnMuteRequest</strong>：<code>objectType</code> enum ｜ <code>objectId</code> string</p></li><li><p><strong>UnMuteResponse</strong>：（空消息）</p></li><li><p><strong>UserBase</strong>：<code>userId</code> string ｜ <code>name</code> string ｜ <code>bio</code> string ｜ <code>avatarImage</code> message</p></li><li><p><strong>UserInfo</strong>：<code>userBase</code> message ｜ <code>userStat</code> message ｜ <code>interactionStatus</code> message ｜ <code>isDeleted</code> bool</p></li><li><p><strong>UserRelationStatus</strong>：<code>followStatus</code> enum ｜ <code>blockStatus</code> enum</p></li><li><p><strong>UserStat</strong>：<code>followingNum</code> int32 ｜ <code>followerNum</code> int32 ｜ <code>momentLikesNum</code> int32 ｜ <code>momentNum</code> int32</p></li><li><p><strong>VoteCommentRequest</strong>：<code>commentId</code> string ｜ <code>voteAction</code> enum</p></li><li><p><strong>VoteCommentResponse</strong>：（空消息）</p></li><li><p><strong>VoteMomentRequest</strong>：<code>momentId</code> string ｜ <code>voteAction</code> enum</p></li><li><p><strong>VoteMomentResponse</strong>：（空消息）<br><strong>com.moonshot.kimi.proto.moment.v1.ChatShareCard</strong></p></li><li><p><strong>CodeArtifact</strong>：<code>id</code> string ｜ <code>coverImage</code> message ｜ <code>coverImageDominantColor</code> string ｜ <code>subType</code> enum ｜ <code>remixPrompt</code> string</p></li><li><p><strong>HtmlFile</strong>：<code>cdnUrl</code> string ｜ <code>coverImage</code> message ｜ <code>coverImageDominantColor</code> string ｜ <code>remixPrompt</code> string ｜ <code>fileId</code> string</p></li><li><p><strong>ImageListWithDominantColor</strong>：<code>items</code> repeated</p></li><li><p><strong>ImageWithDominantColor</strong>：<code>imageInfo</code> message ｜ <code>dominantColor</code> string ｜ <code>remixPrompt</code> string</p></li><li><p><strong>OKCArtifact</strong>：<code>id</code> string ｜ <code>okcUrl</code> string ｜ <code>coverImage</code> message ｜ <code>coverImageDominantColor</code> string ｜ <code>remixPrompt</code> string ｜ <code>isPublished</code> bool<br><strong>com.moonshot.kimi.proto.moment.v1.CreateCommentRequest</strong></p></li><li><p><strong>MentionedUser</strong>：<code>userId</code> string ｜ <code>name</code> string<br><strong>com.moonshot.kimi.proto.moment.v1.CreateFileRequest</strong></p></li><li><p><strong>ImageExtra</strong>：<code>width</code> int32 ｜ <code>height</code> int32<br><strong>com.moonshot.kimi.proto.moment.v1.MomentContent</strong></p></li><li><p><strong>MomentExternalLink</strong>：<code>url</code> string ｜ <code>coverImage</code> message ｜ <code>title</code> string ｜ <code>description</code> string</p></li><li><p><strong>MomentMedia</strong>：<code>videoUrl</code> string ｜ <code>images</code> repeated</p></li></ul><h3 id="附录-B：枚举汇总"><a href="#附录-B：枚举汇总" class="headerlink" title="附录 B：枚举汇总"></a>附录 B：枚举汇总</h3><p>共 158 个。枚举类型名被 R8 剥离，下表按取值公共前缀推断命名。</p><p><strong>推断枚举名 · 混淆类 · 取值</strong></p><ul><li><code>Action</code>（<code>Lgq/d0;</code>；<code>ACTION_RESET_TO_INITIAL</code>、<code>ACTION_AUTO_FIX</code>、<code>ACTION_UPGRADE_PLUGIN</code>、<code>ACTION_BACKUP_WORKSPACE</code>、<code>ACTION_INSTALL_WECOM_PLUGIN</code>、<code>ACTION_UNSPECIFIED</code>、<code>ACTION_UPGRADE_BOT</code>、<code>ACTION_RESTORE_WORKSPACE</code>、<code>ACTION_RESTART_INSTANCE</code>、<code>ACTION_RESTART_BOT</code>）</li><li><code>Action</code>（<code>Lvp/g1;</code>；<code>ACTION_INTERRUPT</code>、<code>ACTION_UNSPECIFIED</code>、<code>ACTION_CONTINUE</code>）</li><li><code>Action</code>（<code>Lvp/r0;</code>；<code>ACTION_INTERRUPT</code>、<code>ACTION_UNSPECIFIED</code>、<code>ACTION_CONTINUE</code>）</li><li><code>AgentPhase</code>（<code>Leq/o;</code>；<code>AGENT_PHASE_TOOL_END</code>、<code>AGENT_PHASE_TOOL_DETECT</code>、<code>AGENT_PHASE_TOOL_START</code>、<code>AGENT_PHASE_END</code>、<code>AGENT_PHASE_HISTORY_COMPACTION</code>、<code>AGENT_PHASE_MODEL_REASONING</code>、<code>AGENT_PHASE_AGENT_END</code>、<code>AGENT_PHASE_FAILED</code>、<code>AGENT_PHASE_AGENT_START</code>、<code>AGENT_PHASE_MODEL_TEXT</code>、<code>AGENT_PHASE_INTERACTION_START</code>、<code>AGENT_PHASE_UNSPECIFIED</code>）</li><li><code>ArtifactType</code>（<code>Ltp/l;</code>；<code>ARTIFACT_TYPE_SLIDES_BANANA</code>、<code>ARTIFACT_TYPE_CODE</code>、<code>ARTIFACT_TYPE_SLIDES_JSON</code>、<code>ARTIFACT_TYPE_SLIDES_HTML</code>、<code>ARTIFACT_TYPE_MARKDOWN</code>、<code>ARTIFACT_TYPE_UNSPECIFIED</code>）</li><li><code>AuthorType</code>（<code>Lvr/o;</code>；<code>AUTHOR_TYPE_BOT</code>、<code>AUTHOR_TYPE_UNSPECIFIED</code>、<code>AUTHOR_TYPE_USER</code>）</li><li><code>AuthorizationStatus</code>（<code>Lrq/g;</code>；<code>AUTHORIZATION_STATUS_PROCESSING</code>、<code>AUTHORIZATION_STATUS_AUTHORIZED</code>、<code>AUTHORIZATION_STATUS_FAILED</code>、<code>AUTHORIZATION_STATUS_UNSPECIFIED</code>）</li><li><code>BlockAction</code>（<code>Lvr/x;</code>；<code>BLOCK_ACTION_UNSPECIFIED</code>、<code>BLOCK_ACTION_UNBLOCK</code>、<code>BLOCK_ACTION_BLOCK</code>）</li><li><code>BlockStatus</code>（<code>Lvr/d0;</code>；<code>BLOCK_STATUS_UNSPECIFIED</code>、<code>BLOCK_STATUS_NOT_BLOCKED</code>、<code>BLOCK_STATUS_BLOCKED</code>）</li><li><code>BotPersonality</code>（<code>Lgq/u0;</code>；<code>BOT_PERSONALITY_HYPE_FRIEND</code>、<code>BOT_PERSONALITY_UNSPECIFIED</code>、<code>BOT_PERSONALITY_THE_LISTENER</code>、<code>BOT_PERSONALITY_STOIC_ADVISOR</code>、<code>BOT_PERSONALITY_MEME_ZOOMER</code>）</li><li><code>BotType</code>（<code>Lgq/o1;</code>；<code>BOT_TYPE_REMOTE</code>、<code>BOT_TYPE_ALIYUN</code>、<code>BOT_TYPE_DESKTOP</code>、<code>BOT_TYPE_ROLLOUT</code>、<code>BOT_TYPE_UNSPECIFIED</code>、<code>BOT_TYPE_VOLCENGINE</code>、<code>BOT_TYPE_LOCAL</code>、<code>BOT_TYPE_ANDROID</code>）</li><li><code>Category</code>（<code>Lcr/g;</code>；<code>CATEGORY_SWARM</code>、<code>CATEGORY_AGENT</code>、<code>CATEGORY_CLAW</code>、<code>CATEGORY_UNSPECIFIED</code>）</li><li><code>ChatRole</code>（<code>Lur/f;</code>；<code>CHAT_ROLE_UNSPECIFIED</code>、<code>CHAT_ROLE_USER</code>、<code>CHAT_ROLE_ASSISTANT</code>）</li><li><code>ChatSourceType</code>（<code>Lup/i1;</code>；<code>CHAT_SOURCE_TYPE_UNSPECIFIED</code>、<code>CHAT_SOURCE_TYPE_KIMIPLUS</code>、<code>CHAT_SOURCE_TYPE_MOMENT</code>、<code>CHAT_SOURCE_TYPE_PROJECT</code>）</li><li><code>ChatType</code>（<code>Lvr/h1;</code>；<code>CHAT_TYPE_REMIX_OKC_ARTIFACT</code>、<code>CHAT_TYPE_UNSPECIFIED</code>、<code>CHAT_TYPE_REMIX_CODE_ARTIFACT_DEEP_RESEARCH</code>、<code>CHAT_TYPE_CONTINUE</code>、<code>CHAT_TYPE_ASK_KIMI</code>、<code>CHAT_TYPE_REMIX_IMAGE</code>、<code>CHAT_TYPE_REMIX_HTML</code>）</li><li><code>CodeArtifactSubType</code>（<code>Lur/k;</code>；<code>CODE_ARTIFACT_SUB_TYPE_UNSPECIFIED</code>、<code>CODE_ARTIFACT_SUB_TYPE_DEEP_RESEARCH</code>）</li><li><code>CommentPermission</code>（<code>Lvr/z1;</code>；<code>COMMENT_PERMISSION_UNSPECIFIED</code>、<code>COMMENT_PERMISSION_PUBLIC</code>、<code>COMMENT_PERMISSION_DISABLED</code>）</li><li><code>CommentStatus</code>（<code>Lvr/i2;</code>；<code>COMMENT_STATUS_NORMAL</code>、<code>COMMENT_STATUS_DELETED</code>、<code>COMMENT_STATUS_UNSPECIFIED</code>）</li><li><code>CommentType</code>（<code>Lvr/o2;</code>；<code>COMMENT_TYPE_BOT</code>、<code>COMMENT_TYPE_UNSPECIFIED</code>、<code>COMMENT_TYPE_USER</code>）</li><li><code>CommentVoteAction</code>（<code>Lvr/w2;</code>；<code>COMMENT_VOTE_ACTION_CANCEL_DISLIKE</code>、<code>COMMENT_VOTE_ACTION_LIKE</code>、<code>COMMENT_VOTE_ACTION_DISLIKE</code>、<code>COMMENT_VOTE_ACTION_CANCEL_LIKE</code>、<code>COMMENT_VOTE_ACTION_UNSPECIFIED</code>）</li><li><code>ComplaintObjectType</code>（<code>Lvr/d3;</code>；<code>COMPLAINT_OBJECT_TYPE_COMMENT</code>、<code>COMPLAINT_OBJECT_TYPE_USER</code>、<code>COMPLAINT_OBJECT_TYPE_MOMENT</code>、<code>COMPLAINT_OBJECT_TYPE_UNSPECIFIED</code>）</li><li><code>ConfigSource</code>（<code>Lhq/g;</code>；<code>CONFIG_SOURCE_SCRIPT</code>、<code>CONFIG_SOURCE_LEGACY</code>、<code>CONFIG_SOURCE_UNSPECIFIED</code>）</li><li><code>ConnectionState</code>（<code>Lyq/i;</code>；<code>CONNECTION_STATE_CONNECTED</code>、<code>CONNECTION_STATE_UNSPECIFIED</code>、<code>CONNECTION_STATE_NOT_CONNECTED</code>）</li><li><code>ContextLength</code>（<code>Lwp/q;</code>；<code>CONTEXT_LENGTH_XXXXL</code>、<code>CONTEXT_LENGTH_XS</code>、<code>CONTEXT_LENGTH_XL</code>、<code>CONTEXT_LENGTH_UNSPECIFIED</code>、<code>CONTEXT_LENGTH_XXXL</code>、<code>CONTEXT_LENGTH_S</code>、<code>CONTEXT_LENGTH_M</code>、<code>CONTEXT_LENGTH_L</code>、<code>CONTEXT_LENGTH_XXS</code>、<code>CONTEXT_LENGTH_XXL</code>）</li><li><code>DiscountUserStatus</code>（<code>Lwq/o;</code>；<code>DISCOUNT_USER_STATUS_UNSPECIFIED</code>、<code>DISCOUNT_USER_STATUS_DISCOUNT_MEMBER</code>、<code>DISCOUNT_USER_STATUS_DISCOUNT_BONUS</code>）</li><li><code>DocumentExportStatus</code>（<code>Ljq/h;</code>；<code>DOCUMENT_EXPORT_STATUS_UNSPECIFIED</code>、<code>DOCUMENT_EXPORT_STATUS_PENDING</code>、<code>DOCUMENT_EXPORT_STATUS_SUCCESS</code>、<code>DOCUMENT_EXPORT_STATUS_FAILED</code>、<code>DOCUMENT_EXPORT_STATUS_PROCESSING</code>）</li><li><code>DocumentSourceType</code>（<code>Ljq/w;</code>；<code>DOCUMENT_SOURCE_TYPE_OKC_SANDBOX</code>、<code>DOCUMENT_SOURCE_TYPE_ARTIFACT</code>、<code>DOCUMENT_SOURCE_TYPE_UNSPECIFIED</code>）</li><li><code>DocumentType</code>（<code>Ljq/d0;</code>；<code>DOCUMENT_TYPE_UNSPECIFIED</code>、<code>DOCUMENT_TYPE_MARKDOWN</code>、<code>DOCUMENT_TYPE_PDF</code>、<code>DOCUMENT_TYPE_DOCX</code>）</li><li><code>Domain</code>（<code>Lwr/g;</code>；<code>DOMAIN_UNSPECIFIED</code>、<code>DOMAIN_KIMI</code>、<code>DOMAIN_CODE</code>、<code>DOMAIN_NEXUS</code>）</li><li><code>DreamVaultStatus</code>（<code>Ltq/r;</code>；<code>DREAM_VAULT_STATUS_DONE</code>、<code>DREAM_VAULT_STATUS_GENERATING</code>、<code>DREAM_VAULT_STATUS_UNSPECIFIED</code>、<code>DREAM_VAULT_STATUS_INSUFFICIENT_DATA</code>、<code>DREAM_VAULT_STATUS_PAUSED</code>、<code>DREAM_VAULT_STATUS_FAILED</code>）</li><li><code>Feature</code>（<code>Lsq/p1;</code>；<code>FEATURE_OFFICE_ADDIN</code>、<code>FEATURE_SLIDES_NBP</code>、<code>FEATURE_WIDGET_TASK</code>、<code>FEATURE_MY_KIMI</code>、<code>FEATURE_SAMPLE_TO_SKILL</code>、<code>FEATURE_AUTOMATION</code>、<code>FEATURE_UNSPECIFIED</code>、<code>FEATURE_DOCUMENTS</code>、<code>FEATURE_WORK</code>、<code>FEATURE_OMNI</code>、<code>FEATURE_CLAW</code>、<code>FEATURE_CHAT</code>、<code>FEATURE_PROJECT</code>、<code>FEATURE_WEBBRIDGE</code>、<code>FEATURE_DEEP_RESEARCH</code>、<code>FEATURE_SWARM</code>、<code>FEATURE_DREAM</code>、<code>FEATURE_AGENT</code>、<code>FEATURE_SLIDES</code>、<code>FEATURE_SHEETS</code>、<code>FEATURE_WEBSITES</code>、<code>FEATURE_PLUGIN</code>、<code>FEATURE_CODING</code>）</li><li><code>FeedCategory</code>（<code>Lvr/u5;</code>；<code>FEED_CATEGORY_FOLLOW</code>、<code>FEED_CATEGORY_HASHTAG</code>、<code>FEED_CATEGORY_USER_FAVORITE</code>、<code>FEED_CATEGORY_USER_LIKES</code>、<code>FEED_CATEGORY_UNSPECIFIED</code>、<code>FEED_CATEGORY_RECOMMEND</code>、<code>FEED_CATEGORY_USER_PUBLISH</code>）</li><li><code>FeedType</code>（<code>Lnq/j;</code>；<code>FEED_TYPE_NOTIFICATION</code>、<code>FEED_TYPE_TASK</code>、<code>FEED_TYPE_CHAT</code>、<code>FEED_TYPE_UNSPECIFIED</code>）</li><li><code>FeedType</code>（<code>Lvr/a6;</code>；<code>FEED_TYPE_MOMENT</code>、<code>FEED_TYPE_INTEREST_CARD</code>、<code>FEED_TYPE_UNSPECIFIED</code>）</li><li><code>FeedbackType</code>（<code>Lxp/h0;</code>；<code>FEEDBACK_TYPE_UNSPECIFIED</code>、<code>FEEDBACK_TYPE_SEARCH</code>、<code>FEEDBACK_TYPE_KIMI_V</code>、<code>FEEDBACK_TYPE_GENERAL</code>、<code>FEEDBACK_TYPE_GEN_IMAGE</code>、<code>FEEDBACK_TYPE_MEDIA_QUOTE</code>）</li><li><code>FileType</code>（<code>Lur/w;</code>；<code>FILE_TYPE_IMAGE</code>、<code>FILE_TYPE_FILE</code>、<code>FILE_TYPE_UNSPECIFIED</code>）</li><li><code>FileType</code>（<code>Lyp/k;</code>；<code>FILE_TYPE_DOCUMENT</code>、<code>FILE_TYPE_VIDEO</code>、<code>FILE_TYPE_IMAGE</code>、<code>FILE_TYPE_AUDIO</code>、<code>FILE_TYPE_AIPPT</code>、<code>FILE_TYPE_SLIDES</code>、<code>FILE_TYPE_UNSPECIFIED</code>、<code>FILE_TYPE_URL</code>）</li><li><code>FollowAction</code>（<code>Lvr/g6;</code>；<code>FOLLOW_ACTION_UNFOLLOW</code>、<code>FOLLOW_ACTION_UNSPECIFIED</code>、<code>FOLLOW_ACTION_FOLLOW</code>）</li><li><code>FollowStatus</code>（<code>Lvr/o6;</code>；<code>FOLLOW_STATUS_MUTUAL_FOLLOWING</code>、<code>FOLLOW_STATUS_UNSPECIFIED</code>、<code>FOLLOW_STATUS_FOLLOWING</code>、<code>FOLLOW_STATUS_NOT_FOLLOWING</code>、<code>FOLLOW_STATUS_FOLLOWED</code>）</li><li><code>FollowType</code>（<code>Lvr/u6;</code>；<code>FOLLOW_TYPE_FOLLOWERS</code>、<code>FOLLOW_TYPE_FOLLOWINGS</code>、<code>FOLLOW_TYPE_UNSPECIFIED</code>）</li><li><code>GoodsStatus</code>（<code>Lnr/a0;</code>；<code>GOODS_STATUS_UNSPECIFIED</code>、<code>GOODS_STATUS_ACTIVE</code>、<code>GOODS_STATUS_INACTIVE</code>）</li><li><code>GoodsType</code>（<code>Lnr/i0;</code>；<code>GOODS_TYPE_KOL</code>、<code>GOODS_TYPE_ENTERPRISE</code>、<code>GOODS_TYPE_SUBSCRIPTION</code>、<code>GOODS_TYPE_UNSPECIFIED</code>、<code>GOODS_TYPE_BOOSTER</code>）</li><li><code>GoodsVersion</code>（<code>Lnr/o0;</code>；<code>GOODS_VERSION_UNSPECIFIED</code>、<code>GOODS_VERSION_V2</code>、<code>GOODS_VERSION_V1</code>）</li><li><code>HashtagStatus</code>（<code>Lvr/x9;</code>；<code>HASHTAG_STATUS_DELETED</code>、<code>HASHTAG_STATUS_UNSPECIFIED</code>、<code>HASHTAG_STATUS_OFFLINE</code>、<code>HASHTAG_STATUS_NORMAL</code>）</li><li><code>HashtagType</code>（<code>Lvr/da;</code>；<code>HASHTAG_TYPE_ADMIN</code>、<code>HASHTAG_TYPE_UNSPECIFIED</code>、<code>HASHTAG_TYPE_USER</code>）</li><li><code>HostKind</code>（<code>Lpr/f;</code>；<code>HOST_KIND_LOCAL</code>、<code>HOST_KIND_UNSPECIFIED</code>、<code>HOST_KIND_HOSTED</code>）</li><li><code>InteractionType</code>（<code>Lvp/h0;</code>；<code>INTERACTION_TYPE_LBS</code>、<code>INTERACTION_TYPE_INTERRUPT</code>、<code>INTERACTION_TYPE_GENERIC_TOOL</code>、<code>INTERACTION_TYPE_UNSPECIFIED</code>、<code>INTERACTION_TYPE_INTERNAL</code>、<code>INTERACTION_TYPE_SLIDES_OUTLINE</code>）</li><li><code>Level</code>（<code>Lwr/v;</code>；<code>LEVEL_PREMIUM</code>、<code>LEVEL_TRIAL</code>、<code>LEVEL_ELITE</code>、<code>LEVEL_BASIC</code>、<code>LEVEL_PLUS</code>、<code>LEVEL_FREE</code>、<code>LEVEL_STANDARD</code>、<code>LEVEL_INTERMEDIATE</code>、<code>LEVEL_FREE_FRESHMAN</code>、<code>LEVEL_ANONYMOUS</code>、<code>LEVEL_ADVANCED</code>、<code>LEVEL_UNSPECIFIED</code>）</li><li><code>LinkType</code>（<code>Lur/o0;</code>；<code>LINK_TYPE_MOMENT</code>、<code>LINK_TYPE_UNSPECIFIED</code>、<code>LINK_TYPE_WEB</code>）</li><li><code>LoadType</code>（<code>Lup/qf;</code>；<code>LOAD_TYPE_UNSPECIFIED</code>、<code>LOAD_TYPE_EXTERNAL</code>）</li><li><code>Lsq/n;</code>（<code>Lsq/n;</code>；<code>STATUS_UNSPECIFIED</code>、<code>UNDO</code>、<code>DONE</code>、<code>ONGOING</code>、<code>ORACLE</code>）</li><li><code>Lsq/w;</code>（<code>Lsq/w;</code>；<code>BOOSTER</code>、<code>UNSPECIFIED</code>、<code>GIFT</code>、<code>SUBSCRIPTION</code>）</li><li><code>Lup/ib;</code>（<code>Lup/ib;</code>；<code>assistant</code>、<code>ROLE_UNSPECIFIED</code>、<code>user</code>、<code>system</code>）</li><li><code>Lwr/p0;</code>（<code>Lwr/p0;</code>；<code>web_extention</code>、<code>wx_work</code>、<code>desktop</code>、<code>windows</code>、<code>PLATFORM_UNSPECIFIED</code>、<code>kimi_code_cli</code>、<code>kimi_code_desktop</code>、<code>mira</code>、<code>web</code>、<code>mac</code>、<code>ios</code>、<code>harmonyos</code>、<code>kimi_cli</code>、<code>kimi_code_vscode</code>、<code>android</code>、<code>android_claw</code>）</li><li><code>MemberRole</code>（<code>Lpq/l3;</code>；<code>MEMBER_ROLE_MEMBER</code>、<code>MEMBER_ROLE_OWNER</code>、<code>MEMBER_ROLE_UNSPECIFIED</code>、<code>MEMBER_ROLE_AUDIENCE</code>、<code>MEMBER_ROLE_COORDINATOR</code>）</li><li><code>MemberType</code>（<code>Lpq/r3;</code>；<code>MEMBER_TYPE_HUMAN</code>、<code>MEMBER_TYPE_BOT</code>、<code>MEMBER_TYPE_UNSPECIFIED</code>）</li><li><code>MentionableSceneType</code>（<code>Lur/u0;</code>；<code>MENTIONABLE_SCENE_TYPE_AGENT</code>、<code>MENTIONABLE_SCENE_TYPE_UNSPECIFIED</code>、<code>MENTIONABLE_SCENE_TYPE_COMMENT_KIMI</code>）</li><li><code>MessageOrder</code>（<code>Lfq/t2;</code>；<code>MESSAGE_ORDER_ASC</code>、<code>MESSAGE_ORDER_UNSPECIFIED</code>、<code>MESSAGE_ORDER_DESC</code>）</li><li><code>MessageStatus</code>（<code>Lup/q7;</code>；<code>MESSAGE_STATUS_GENERATING</code>、<code>MESSAGE_STATUS_COMPLETED</code>、<code>MESSAGE_STATUS_PENDING</code>、<code>MESSAGE_STATUS_TRUNCATED</code>、<code>MESSAGE_STATUS_ERROR</code>、<code>MESSAGE_STATUS_CANCELLED</code>、<code>MESSAGE_STATUS_UNSPECIFIED</code>）</li><li><code>ModelApiKeyType</code>（<code>Lgq/p4;</code>；<code>MODEL_API_KEY_TYPE_UNSPECIFIED</code>、<code>MODEL_API_KEY_TYPE_KIMI_CODE</code>）</li><li><code>MomentSource</code>（<code>Lvr/fg;</code>；<code>MOMENT_SOURCE_UNSPECIFIED</code>、<code>MOMENT_SOURCE_AI</code>、<code>MOMENT_SOURCE_RESEARCHER</code>、<code>MOMENT_SOURCE_KODER</code>、<code>MOMENT_SOURCE_ADMIN</code>、<code>MOMENT_SOURCE_PARTNER</code>、<code>MOMENT_SOURCE_USER</code>、<code>MOMENT_SOURCE_CHAT</code>）</li><li><code>MomentType</code>（<code>Lur/a2;</code>；<code>MOMENT_TYPE_TEXT</code>、<code>MOMENT_TYPE_CHAT</code>、<code>MOMENT_TYPE_IMAGE</code>、<code>MOMENT_TYPE_UNSPECIFIED</code>、<code>MOMENT_TYPE_EXTERNAL_LINK</code>）</li><li><code>MomentVisibility</code>（<code>Lvr/lg;</code>；<code>MOMENT_VISIBILITY_SELF</code>、<code>MOMENT_VISIBILITY_PUBLIC</code>、<code>MOMENT_VISIBILITY_UNSPECIFIED</code>）</li><li><code>MomentVoteAction</code>（<code>Lvr/tg;</code>；<code>MOMENT_VOTE_ACTION_DISLIKE</code>、<code>MOMENT_VOTE_ACTION_LIKE</code>、<code>MOMENT_VOTE_ACTION_CANCEL_LIKE</code>、<code>MOMENT_VOTE_ACTION_UNSPECIFIED</code>、<code>MOMENT_VOTE_ACTION_CANCEL_DISLIKE</code>）</li><li><code>MuteObjectType</code>（<code>Lur/h2;</code>；<code>MUTE_OBJECT_TYPE_BOT_COMMENT</code>、<code>MUTE_OBJECT_TYPE_MOMENT</code>、<code>MUTE_OBJECT_TYPE_UNSPECIFIED</code>、<code>MUTE_OBJECT_TYPE_AIGC_MOMENT_CONTENT</code>）</li><li><code>NotificationType</code>（<code>Lvq/h0;</code>；<code>NOTIFICATION_TYPE_MY_KIMI</code>、<code>NOTIFICATION_TYPE_TASK</code>、<code>NOTIFICATION_TYPE_UNSPECIFIED</code>、<code>NOTIFICATION_TYPE_SKILL</code>、<code>NOTIFICATION_TYPE_ACTIVITY</code>、<code>NOTIFICATION_TYPE_OPERATIONAL</code>、<code>NOTIFICATION_TYPE_CHAT_STATUS_CHANGED</code>）</li><li><code>NotificationType</code>（<code>Lvr/qh;</code>；<code>NOTIFICATION_TYPE_FAVORITE</code>、<code>NOTIFICATION_TYPE_FOLLOW</code>、<code>NOTIFICATION_TYPE_UNSPECIFIED</code>、<code>NOTIFICATION_TYPE_REPLY_COMMENT</code>、<code>NOTIFICATION_TYPE_UP_COMMENT</code>、<code>NOTIFICATION_TYPE_UP_MOMENT</code>、<code>NOTIFICATION_TYPE_COMMENT_MOMENT</code>）</li><li><code>Occupation</code>（<code>Lsr/j0;</code>；<code>OCCUPATION_PRODUCT_GENERAL</code>、<code>OCCUPATION_FREELANCE_OTHER</code>、<code>OCCUPATION_EDUCATION_RESEARCH</code>、<code>OCCUPATION_DESIGN_CONTENT</code>、<code>OCCUPATION_ENGINEER_DEVELOPER</code>、<code>OCCUPATION_LEGAL</code>、<code>OCCUPATION_MANUFACTURING_INDUSTRY</code>、<code>OCCUPATION_ECOMMERCE_GROWTH</code>、<code>OCCUPATION_UNSPECIFIED</code>、<code>OCCUPATION_STUDENT</code>、<code>OCCUPATION_FINANCE_INVESTMENT</code>、<code>OCCUPATION_HEALTHCARE</code>）</li><li><code>Operator</code>（<code>Lfq/s7;</code>；<code>OPERATOR_UNSPECIFIED</code>、<code>set</code>、<code>append</code>）</li><li><code>OutboxMessageStatus</code>（<code>Lup/q8;</code>；<code>OUTBOX_MESSAGE_STATUS_UNSPECIFIED</code>、<code>OUTBOX_MESSAGE_STATUS_READY</code>、<code>OUTBOX_MESSAGE_STATUS_EDITING</code>、<code>OUTBOX_MESSAGE_STATUS_SENDING</code>）</li><li><code>OutboxStatus</code>（<code>Lup/w8;</code>；<code>OUTBOX_STATUS_PAUSED</code>、<code>OUTBOX_STATUS_ACTIVE</code>、<code>OUTBOX_STATUS_UNSPECIFIED</code>）</li><li><code>Page</code>（<code>Llq/q;</code>；<code>PAGE_AGENT_SWARM</code>、<code>PAGE_UNSPECIFIED</code>、<code>PAGE_SLIDES</code>、<code>PAGE_SHEETS</code>、<code>PAGE_HOME</code>、<code>PAGE_DOCS</code>、<code>PAGE_WEBSITES</code>、<code>PAGE_DEEP_RESEARCH</code>）</li><li><code>PageLimit</code>（<code>Lrr/m;</code>；<code>PAGE_LIMIT_SMALL</code>、<code>PAGE_LIMIT_LARGE</code>、<code>PAGE_LIMIT_XXSMALL</code>、<code>PAGE_LIMIT_UNSPECIFIED</code>、<code>PAGE_LIMIT_XSMALL</code>、<code>PAGE_LIMIT_XLARGE</code>、<code>PAGE_LIMIT_MEDIUM</code>）</li><li><code>PaymentChannel</code>（<code>Lsp/k;</code>；<code>PAYMENT_CHANNEL_APPLE</code>、<code>PAYMENT_CHANNEL_STRIPE</code>、<code>PAYMENT_CHANNEL_ALIPAY</code>、<code>PAYMENT_CHANNEL_GOOGLE_PLAY</code>、<code>PAYMENT_CHANNEL_UNSPECIFIED</code>、<code>PAYMENT_CHANNEL_AIRWALLEX</code>、<code>PAYMENT_CHANNEL_PAYERMAX</code>、<code>PAYMENT_CHANNEL_WECHAT</code>）</li><li><code>PinResourceType</code>（<code>Lxq/r;</code>；<code>PIN_RESOURCE_TYPE_CHAT</code>、<code>PIN_RESOURCE_TYPE_UNSPECIFIED</code>、<code>PIN_RESOURCE_TYPE_PROJECT</code>）</li><li><code>Platform</code>（<code>Lpr/p;</code>；<code>PLATFORM_UNSPECIFIED</code>、<code>PLATFORM_ANDROID</code>、<code>PLATFORM_HARMONYOS</code>、<code>PLATFORM_WINDOWS</code>、<code>PLATFORM_MACOS</code>、<code>PLATFORM_LINUX</code>、<code>PLATFORM_IOS</code>）</li><li><code>Preset</code>（<code>Lyp/r;</code>；<code>PRESET_PROJECT</code>、<code>PRESET_ANALYSE</code>、<code>PRESET_UNSPECIFIED</code>、<code>PRESET_VISION</code>）</li><li><code>ProcessStatus</code>（<code>Lyp/z;</code>；<code>PROCESS_STATUS_UNSPECIFIED</code>、<code>PROCESS_STATUS_PENDING</code>、<code>PROCESS_STATUS_SUCCESS</code>、<code>PROCESS_STATUS_FAILED</code>、<code>PROCESS_STATUS_PROCESSING</code>）</li><li><code>ProjectAvailability</code>（<code>Lzq/v0;</code>；<code>PROJECT_AVAILABILITY_UNSPECIFIED</code>、<code>PROJECT_AVAILABILITY_AVAILABLE</code>、<code>PROJECT_AVAILABILITY_READ_ONLY</code>）</li><li><code>PublishState</code>（<code>Laq/h0;</code>；<code>PUBLISH_STATE_MODERATION_BLOCKED</code>、<code>PUBLISH_STATE_FAILED</code>、<code>PUBLISH_STATE_UNSPECIFIED</code>、<code>PUBLISH_STATE_PUBLISHING</code>、<code>PUBLISH_STATE_PUBLISHED</code>）</li><li><code>PushProvider</code>（<code>Lop/y0;</code>；<code>PUSH_PROVIDER_UNSPECIFIED</code>、<code>PUSH_PROVIDER_JPUSH</code>）</li><li><code>Reason</code>（<code>Lqp/m6;</code>；<code>REASON_ACCOUNT_INVALID_PARAMETER</code>、<code>REASON_WAITLIST_FULL</code>、<code>REASON_CODE_BETA_NOT_ENROLLED</code>、<code>REASON_CHATTY_AGENT_LOOP_OUTBOX_STEER</code>、<code>REASON_BUSINESS_NOT_FOUND</code>、<code>REASON_UPDATE_CHAT_FAILED</code>、<code>REASON_ACCOUNT_QRCODE_BUSY</code>、<code>REASON_ACCOUNT_DISABLED</code>、<code>REASON_UNSPECIFIED</code>、<code>REASON_APP_SUPPORT_UNSUPPORTED_QRCODE</code>、<code>REASON_GIFTCARD_CODE_NOT_FOUND</code>、<code>REASON_ACCOUNT_DEACTIVATE_TOO_FREQUENT</code>、<code>REASON_MEMORY_INTERNAL_ERROR</code>、<code>REASON_ACCOUNT_GOOGLE_ALREADY_BOUND</code>、<code>REASON_GIFTCARD_SELF_CLAIM</code>、<code>REASON_WORK_REMOTE_CONTROL_RECONNECT</code>、<code>REASON_MEMORY_SPACE_FULL</code>、<code>REASON_ACCOUNT_EMAIL_SEND_FAILED</code>、<code>REASON_GIFTCARD_CODE_EXPIRED</code>、<code>REASON_ACCOUNT_EMAIL_SAME_AS_OLD</code>、<code>REASON_SUBSCRIPTION_REGION_NOT_ALLOWED</code>、<code>REASON_WEBSITE_REPORT_INVALID_ATTACHMENT_FILE_ID</code>、<code>REASON_TOO_MANY_ACTIVE_TASKS</code>、<code>REASON_MEMORY_NOT_FOUND</code>、<code>REASON_BUSINESS_REGION_NOT_SUPPORTED</code>、<code>REASON_ACCOUNT_CAPTCHA_VERIFY_FAILED</code>、<code>REASON_SERVER_OVERLOADED</code>、<code>REASON_SKILL_SSH_CONNECT_FAILED</code>、<code>REASON_CODE_BETA_NO_ACTIVE_PLAN</code>、<code>REASON_SKILL_GENERATION_LIMIT_REACHED</code>、<code>REASON_SUBSCRIPTION_NEXT</code>、<code>REASON_SUBSCRIPTION_ACTIVE_ON_ANOTHER_ACCOUNT</code>、<code>REASON_DUPLICATED_ORDER</code>、<code>REASON_BUSINESS_ACCOUNT_NOT_FOUND</code>、<code>REASON_USER_SETTING_CHAT_NICKNAME_REJECTED</code>、<code>REASON_USER_BUSINESS_LIMIT_EXCEEDED</code>、<code>REASON_CHAT_NOT_FOUND</code>、<code>REASON_INTERNAL_ERROR</code>、<code>REASON_PAYMENT_CHANNEL_NOT_MATCH</code>、<code>REASON_BOOSTER_TOPUP_QUOTA_EXCEEDED</code>、<code>REASON_CODE_BETA_ACTIVATE_LIMITED</code>、<code>REASON_ACCOUNT_GUARDIAN_NOT_BOUND</code>、<code>REASON_ANONYMOUS_REQUIRE_LOGIN</code>、<code>REASON_SKILL_DIRECTORY_EXISTS</code>、<code>REASON_CHAT_IN_PROGRESS</code>、<code>REASON_ACCOUNT_DATABASE_ERROR</code>、<code>REASON_BUSINESS_FORBIDDEN</code>、<code>REASON_WAITLIST_ENDED</code>、<code>REASON_ACCOUNT_PHONE_SAME_AS_OLD</code>、<code>REASON_ACCOUNT_QRCODE_EXPIRED</code>、<code>REASON_CHATTY_AGENT_LOOP_FATAL_ERROR</code>、<code>REASON_BUSINESS_MEMBER_NOT_FOUND</code>、<code>REASON_SMS_REGION_NOT_SUPPORTED</code>、<code>REASON_WEBSITE_REPORT_INVALID_TARGET_URL</code>、<code>REASON_ACCOUNT_CODE_FREQUENCY_EXCEEDED</code>、<code>REASON_USER_SETTING_CHAT_NICKNAME_TOO_LONG</code>、<code>REASON_TEXT_USAGE_EXCEEDED</code>、<code>REASON_WEBSITE_REPORT_INVALID_REASON</code>、<code>REASON_CODE_BETA_ALREADY_JOINED</code>、<code>REASON_ACCOUNT_PHONE_NOT_BOUND</code>、<code>REASON_CLAW_GROUP_INVITATION_EXPIRED</code>、<code>REASON_ACCOUNT_WECHAT_ALREADY_REGISTERED</code>、<code>REASON_ACTIVITY_DAILY_BONUS_RECEIVED</code>、<code>REASON_API_KEY_REVOKED</code>、<code>REASON_GIFTCARD_CLAIM_EXPIRED</code>、<code>REASON_CHATTY_MODEL_OVERLOAD</code>、<code>REASON_FEATURE_NO_PERMISSION</code>、<code>REASON_HAS_OWNER_BUSINESS</code>、<code>REASON_CHATTY_AGENT_LOOP_INTERRUPTED</code>、<code>REASON_WEBSITE_REPORT_DESCRIPTION_REQUIRED</code>、<code>REASON_GIFTCARD_ALREADY_CLAIMED</code>、<code>REASON_BOOSTER_TOPUP_COUNT_EXCEEDED</code>、<code>REASON_SUBSCRIPTION_IN_PROCESSING</code>、<code>REASON_ACCOUNT_OAUTH_DEVICE_CODE_EXPIRED</code>、<code>REASON_WEBSITE_REPORT_TOO_MANY_REPORTS_FOR_TARGET</code>、<code>REASON_USER_SETTING_CHAT_INSTRUCTIONS_REJECTED</code>、<code>REASON_BOOSTER_TOPUP_BELOW_MINIMUM</code>、<code>REASON_WORK_REMOTE_CONTROL_GRACEFUL_SHUTDOWN</code>、<code>REASON_ACCOUNT_SUSPENDED</code>、<code>REASON_CHATTY_EXCEED_REACT_MAX_ROUNDS</code>、<code>REASON_ACCOUNT_MINOR_MODE_REGION_NOT_AVAILABLE</code>、<code>REASON_ACCOUNT_NOT_FOUND</code>、<code>REASON_API_KEY_NOT_FOUND</code>、<code>REASON_MCP_OAUTH_REQUIRED</code>、<code>REASON_BUSINESS_NAME_DUPLICATE</code>、<code>REASON_SKILL_NO_FILES</code>、<code>REASON_ACCOUNT_OAUTH_CLIENT_UNBIND_FAILED</code>、<code>REASON_CHATTY_MODEL_SSE_IDLE_TIMEOUT</code>、<code>REASON_USER_SETTING_CHAT_INSTRUCTIONS_TOO_LONG</code>、<code>REASON_SKILL_TASK_NOT_OWNED</code>、<code>REASON_KIMI_FILE_MODERATION_FAIL</code>、<code>REASON_SKILL_TASK_NOT_FOUND</code>、<code>REASON_PROJECT_NAME_REJECTED</code>、<code>REASON_ACCOUNT_PHONE_ALREADY_BOUND</code>、<code>REASON_ACCOUNT_QRCODE_INVALID</code>、<code>REASON_ACCOUNT_GUARDIAN_ALREADY_BOUND</code>、<code>REASON_SUBSCRIPTION_NEED_APPLY</code>、<code>REASON_QUOTA_EXCEEDED_WINDOW_7D</code>、<code>REASON_QUOTA_EXCEEDED_WINDOW_5H</code>、<code>REASON_QUOTA_EXCEEDED</code>、<code>REASON_INVALID_AUTH_TOKEN</code>、<code>REASON_BOOSTER_TOPUP_PRESET_EXCEEDS_AVAILABLE</code>、<code>REASON_DISCOUNT_URL_INVALID</code>、<code>REASON_ACCOUNT_ROLE_IN_USE</code>、<code>REASON_GIFTCARD_DIFFERENT_REGION</code>、<code>REASON_ACCOUNT_VERIFY_CODE_INVALID</code>、<code>REASON_CLAW_BOT_DISCONNECTED</code>、<code>REASON_SKILL_INSTALL_LIMIT_REACHED</code>、<code>REASON_QUOTA_EXCEEDED_CYCLE</code>、<code>REASON_CHATTY_MODEL_UNAVAILABLE</code>、<code>REASON_CHAT_SHARE_NOT_FOUND</code>、<code>REASON_SUBSCRIPTION_APP_STORE_REFUND_REQUIRED</code>、<code>REASON_CLAW_MAINTENANCE_IN_PROGRESS</code>、<code>REASON_BUSINESS_INVITATION_INVALID</code>、<code>REASON_ACCOUNT_THIRD_CREDENTIAL_INVALID</code>、<code>REASON_REQUEST_RATE_EXCEEDED</code>、<code>REASON_FEATURE_NOT_AVAILABLE</code>、<code>REASON_WAITLIST_NOT_FOUND</code>、<code>REASON_CHATTY_EXCEED_TOOL_LIMIT</code>、<code>REASON_ACCOUNT_OAUTH_DEVICE_CODE_INVALID</code>、<code>REASON_BUSINESS_MEMBER_REMOVED</code>、<code>REASON_ACCOUNT_PROFILE_INVALID</code>、<code>REASON_CHAT_WITH_IMAGE_RESTRICTED</code>、<code>REASON_WORK_REMOTE_CONTROL_PREEMPTED</code>、<code>REASON_ACCOUNT_GUARDIAN_PASSCODE_INCORRECT</code>、<code>REASON_ACCOUNT_SERVICE_MAINTENANCE</code>、<code>REASON_SHARE_NOT_ALLOWED</code>、<code>REASON_GIFTCARD_BUSINESS_MEMBER_FORBIDDENED</code>、<code>REASON_ACCOUNT_NICKNAME_LIMIT</code>、<code>REASON_CHATTY_EXCEED_MODEL_CONTEXT</code>、<code>REASON_SUBSCRIPTION_APPLYING</code>、<code>REASON_ACCOUNT_FORBIDDEN</code>、<code>REASON_GIFTCARD_TOO_MANY_CLAIM</code>、<code>REASON_WORK_REMOTE_CONTROL_REVOKED</code>、<code>REASON_OUTBOX_MESSAGE_NOT_FOUND</code>、<code>REASON_SERVER_OVERLOADED_FOR_FREE_USER</code>、<code>REASON_SKILL_EVO_MEMBERSHIP_REQUIRED</code>、<code>REASON_ACCOUNT_PHONE_ALREADY_REGISTERED</code>、<code>REASON_BUSINESS_DISABLED</code>、<code>REASON_ACCOUNT_EMAIL_CONFLICT</code>、<code>REASON_OUTBOX_FULL</code>、<code>REASON_ACCOUNT_APPLE_ALREADY_REGISTERED</code>、<code>REASON_SKILL_NAME_DUPLICATE</code>、<code>REASON_ACCOUNT_OAUTH_CLIENT_INVALID</code>、<code>REASON_CHATTY_CONTENT_FILTER</code>、<code>REASON_SUBSCRIPTION_ACTIVE</code>、<code>REASON_ACCOUNT_HUAWEI_ALREADY_REGISTERED</code>、<code>REASON_ACCOUNT_DEVICE_LOGGED_OUT</code>、<code>REASON_CHAT_CONCURRENCY_EXCEEDED</code>、<code>REASON_GIFTCARD_CLAIM_ACTIVATE_LEVEL_MISMATCH</code>、<code>REASON_PROJECT_PROMPT_REJECTED</code>、<code>REASON_SUBSCRIPTION_DISCOUNT_CONFLICT</code>、<code>REASON_KIMI_FILE_PARSE_JOB_FAIL</code>、<code>REASON_ACCOUNT_HUAWEI_ALREADY_BOUND</code>、<code>REASON_ACCOUNT_GOOGLE_ALREADY_REGISTERED</code>、<code>REASON_SUBSCRIPTION_CHANNEL_NOT_IN_GROUP</code>、<code>REASON_WORK_REMOTE_CONTROL_DISCONNECTED</code>、<code>REASON_ACCOUNT_GUARDIAN_PASSCODE_LOCKED</code>、<code>REASON_ACCOUNT_APPLE_ALREADY_BOUND</code>、<code>REASON_ACCOUNT_OAUTH_CLIENT_UNAUTHORIZED</code>、<code>REASON_SMS_LIMIT_EXCEEDED</code>、<code>REASON_RATE_LIMIT_EXCEEDED</code>、<code>REASON_API_KEY_LIMIT_EXCEEDED</code>、<code>REASON_ACCOUNT_EMAIL_NOT_BOUND</code>、<code>REASON_ACCOUNT_PHONE_REGION_LIMIT</code>、<code>REASON_INVALID_PARAMETER</code>、<code>REASON_SKILL_NOT_READY</code>、<code>REASON_SKILL_NOT_FOUND</code>、<code>REASON_SKILL_REMOTE_INSTALL_FAILED</code>、<code>REASON_ACCOUNT_GUARDIAN_NOT_VERIFIED</code>、<code>REASON_CLAW_GROUP_DISBANDED</code>、<code>REASON_OUTBOX_MESSAGE_CONFLICT</code>、<code>REASON_SKILL_CONTENT_REJECTED</code>、<code>REASON_CODE_BETA_EMAIL_ALREADY_TAKEN</code>、<code>REASON_SKILL_TASK_NOT_RETRYABLE</code>、<code>REASON_WEBSITE_REPORT_TOO_MANY_ATTACHMENTS</code>、<code>REASON_BUSINESS_MEMBER_LIMIT_EXCEEDED</code>、<code>REASON_PROJECT_NOT_FOUND</code>、<code>REASON_ACCOUNT_BANNED</code>、<code>REASON_ACCOUNT_EMAIL_NOT_VERIFIED</code>、<code>REASON_SUBSCRIPTION_QUOTA_EXCEEDED</code>、<code>REASON_ACCOUNT_ACCESS_DENIED</code>、<code>REASON_ACCOUNT_WECHAT_ALREADY_BOUND</code>、<code>REASON_ACTIVITY_NO_BONUS_AVAILABLE</code>、<code>REASON_TOO_MANY_TASKS</code>、<code>REASON_ACCOUNT_PHONE_INVALID</code>、<code>REASON_CHAT_MESSAGE_NOT_FOUND</code>、<code>REASON_QUOTA_EXCEEDED_BALANCE</code>、<code>REASON_ACCOUNT_GUARDIAN_PASSCODE_NOT_SET</code>）</li><li><code>Reason</code>（<code>Lup/da;</code>；<code>REASON_UNSPECIFIED</code>、<code>REASON_CHAT_INTERRUPTED</code>、<code>REASON_RESEARCH_TASK_CONCURRENT_LIMIT</code>、<code>REASON_TOKEN_LENGTH_TOO_LONG</code>、<code>REASON_TEXT_USAGE_EXCEEDED</code>、<code>REASON_K2_USAGE_EXCEEDED</code>、<code>REASON_ABNORMAL_USER_USAGE_EXCEEDED</code>、<code>REASON_ANONYMOUS_USAGE_EXCEEDED</code>、<code>REASON_EXCEED_TOOL_CALL_MAX_ROUNDS</code>、<code>REASON_DEEP_RESEARCH_USAGE_EXCEEDED</code>、<code>REASON_REQUEST_RATE_EXCEEDED</code>、<code>REASON_REQUEST_ERROR</code>、<code>REASON_INCONSISTENT_FILE_TYPE</code>、<code>REASON_COMPLETION_OVERLOADED</code>、<code>REASON_THINK_USAGE_EXCEEDED</code>、<code>REASON_RATE_LIMIT_EXCEEDED</code>、<code>REASON_LLM_UNAVAILABLE</code>、<code>REASON_ABNORMAL_USER_SURVEY_REQUIRED</code>、<code>REASON_CONTENT_FILTER</code>、<code>REASON_CHAT_FATAL_ERROR</code>）</li><li><code>ReasoningEffort</code>（<code>Lwp/e0;</code>；<code>REASONING_EFFORT_MEDIUM</code>、<code>REASONING_EFFORT_UNSPECIFIED</code>、<code>REASONING_EFFORT_MAX</code>、<code>REASONING_EFFORT_LOW</code>、<code>REASONING_EFFORT_XHIGH</code>、<code>REASONING_EFFORT_MINIMAL</code>、<code>REASONING_EFFORT_NONE</code>、<code>REASONING_EFFORT_HIGH</code>）</li><li><code>Region</code>（<code>Lwr/v0;</code>；<code>REGION_OVERSEA</code>、<code>REGION_UNSPECIFIED</code>、<code>REGION_CN</code>）</li><li><code>ReminderType</code>（<code>Lur/u2;</code>；<code>REMINDER_TYPE_NEW_ENGAGEMENT</code>、<code>REMINDER_TYPE_NEW_FOLLOW_FEED</code>、<code>REMINDER_TYPE_UNSPECIFIED</code>）</li><li><code>RoomType</code>（<code>Lpq/n5;</code>；<code>ROOM_TYPE_DIRECT</code>、<code>ROOM_TYPE_UNSPECIFIED</code>、<code>ROOM_TYPE_GROUP</code>）</li><li><code>Scenario</code>（<code>Lup/gc;</code>；<code>SCENARIO_SLIDES</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_THINK</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_UNSPECIFIED</code>）</li><li><code>Scene</code>（<code>Lhq/e0;</code>；<code>SCENE_UNSPECIFIED</code>、<code>SCENE_SMS_CODE_SEND</code>）</li><li><code>Scene</code>（<code>Lhq/n;</code>；<code>SCENE_UNSPECIFIED</code>、<code>SCENE_KIMI_WORK</code>）</li><li><code>Scene</code>（<code>Lop/b2;</code>；<code>SCENE_UNSPECIFIED</code>、<code>SCENE_BIND_PHONE</code>、<code>SCENE_LOGIN</code>）</li><li><code>Service</code>（<code>Lqq/o;</code>；<code>SERVICE_UNSPECIFIED</code>、<code>SERVICE_ASR</code>）</li><li><code>Severity</code>（<code>Lup/gd;</code>；<code>SEVERITY_BLOCK_RETRACT</code>、<code>SEVERITY_INFO</code>、<code>SEVERITY_UNSPECIFIED</code>、<code>SEVERITY_MESSAGE_RETRACT</code>）</li><li><code>ShowRule</code>（<code>Lar/w;</code>；<code>SHOW_RULE_DAILY</code>、<code>SHOW_RULE_ONCE</code>、<code>SHOW_RULE_ALWAYS</code>、<code>SHOW_RULE_UNSPECIFIED</code>）</li><li><code>Size</code>（<code>Lgr/y1;</code>；<code>SIZE_UNSPECIFIED</code>、<code>SIZE_SMALL</code>、<code>SIZE_LARGE</code>）</li><li><code>SkillJobStatus</code>（<code>Lcr/j2;</code>；<code>SKILL_JOB_STATUS_UNSPECIFIED</code>、<code>SKILL_JOB_STATUS_COMPLETED</code>、<code>SKILL_JOB_STATUS_CREATING</code>、<code>SKILL_JOB_STATUS_FAILED</code>）</li><li><code>SkillJobType</code>（<code>Lcr/p2;</code>；<code>SKILL_JOB_TYPE_UNSPECIFIED</code>、<code>SKILL_JOB_TYPE_CLAW_SKILL</code>、<code>SKILL_JOB_TYPE_KIMI_SKILL</code>）</li><li><code>Source</code>（<code>Lcr/c3;</code>；<code>SOURCE_OFFICIAL</code>、<code>SOURCE_CUSTOM</code>、<code>SOURCE_UNSPECIFIED</code>）</li><li><code>Source</code>（<code>Lup/a5;</code>；<code>SOURCE_SEARCH</code>、<code>SOURCE_GEN</code>、<code>SOURCE_UNSPECIFIED</code>）</li><li><code>StageName</code>（<code>Lvp/w1;</code>；<code>STAGE_NAME_PART_REPORT</code>、<code>STAGE_NAME_CLARIFY</code>、<code>STAGE_NAME_UNSPECIFIED</code>、<code>STAGE_NAME_OKC_REACT</code>、<code>STAGE_NAME_THINKING</code>、<code>STAGE_NAME_FINAL_REPORT</code>、<code>STAGE_NAME_REPORT</code>、<code>STAGE_NAME_OUTLINE</code>、<code>STAGE_NAME_HTML_REPORT</code>、<code>STAGE_NAME_SUMMARY</code>、<code>STAGE_NAME_RESEARCH</code>）</li><li><code>StageStatus</code>（<code>Lup/fe;</code>；<code>STAGE_STATUS_START</code>、<code>STAGE_STATUS_UNSPECIFIED</code>、<code>STAGE_STATUS_END</code>）</li><li><code>State</code>（<code>Llr/j;</code>；<code>STATE_UNSPECIFIED</code>、<code>STATE_PENDING</code>、<code>STATE_EXPIRED</code>、<code>STATE_DENIED</code>、<code>STATE_APPROVED</code>）</li><li><code>State</code>（<code>Lup/j5;</code>；<code>STATE_UNSPECIFIED</code>、<code>STATE_FAILURE</code>、<code>STATE_INIT</code>、<code>STATE_SUCCESS</code>、<code>STATE_GENERATION</code>、<code>STATE_CANCELLATION</code>）</li><li><code>Status</code>（<code>Ldq/i;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_DISABLED</code>、<code>STATUS_ACTIVE</code>、<code>STATUS_INITIAL</code>）</li><li><code>Status</code>（<code>Leq/c0;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_GENERATING</code>、<code>STATUS_USAGE_EXCEEDED</code>、<code>STATUS_USER_CANCELED</code>、<code>STATUS_COMPLETED</code>、<code>STATUS_FAILED</code>、<code>STATUS_OVERLOADED</code>、<code>STATUS_ASK_USER_QUESTION</code>）</li><li><code>Status</code>（<code>Lgq/l;</code>；<code>STATUS_CREATED</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_INACTIVE</code>、<code>STATUS_SUSPENDED</code>、<code>STATUS_ACTIVE</code>、<code>STATUS_CREATE_FAILED</code>、<code>STATUS_CREATING</code>）</li><li><code>Status</code>（<code>Lgq/l0;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_FAILED</code>、<code>STATUS_SUCCEEDED</code>、<code>STATUS_RUNNING</code>）</li><li><code>Status</code>（<code>Lhr/z;</code>；<code>STATUS_IDLE</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_PENDING</code>、<code>STATUS_TERMINATED</code>、<code>STATUS_RUNNING</code>）</li><li><code>Status</code>（<code>Liq/s;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_BLOCKED</code>、<code>STATUS_COMPLETED</code>、<code>STATUS_PAUSED</code>、<code>STATUS_TERMINATED</code>、<code>STATUS_ACTIVE</code>、<code>STATUS_DELETED</code>）</li><li><code>Status</code>（<code>Lnr/p;</code>；<code>STATUS_SELLABLE</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_UNSELLABLE</code>）</li><li><code>Status</code>（<code>Lpq/w;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_GENERATING</code>、<code>STATUS_COMPLETED</code>）</li><li><code>Status</code>（<code>Lrr/d0;</code>；<code>STATUS_GENERATED</code>、<code>STATUS_INIT</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_GENERATING</code>、<code>STATUS_GENERATE_FAILED</code>、<code>STATUS_COMPLETED</code>、<code>STATUS_FAILED</code>、<code>STATUS_DELETED</code>）</li><li><code>Status</code>（<code>Lsq/q3;</code>；<code>STATUS_UNSPECIFIED</code>、<code>STATUS_DISABLED</code>、<code>STATUS_FROZEN</code>、<code>STATUS_ACTIVE</code>）</li><li><code>Status</code>（<code>Lup/j3;</code>；<code>STATUS_DONE</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_PENDING</code>）</li><li><code>Status</code>（<code>Lup/bi;</code>；<code>STATUS_WAITING</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_PARSING</code>、<code>STATUS_PARSED</code>、<code>STATUS_TIMEOUT</code>、<code>STATUS_FAILED</code>）</li><li><code>Status</code>（<code>Lup/ag;</code>；<code>STATUS_DONE</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_PENDING</code>、<code>STATUS_RUNNING</code>）</li><li><code>Status</code>（<code>Lup/d2;</code>；<code>STATUS_DONE</code>、<code>STATUS_UNSPECIFIED</code>、<code>STATUS_PENDING</code>、<code>STATUS_FAILED</code>、<code>STATUS_RUNNING</code>）</li><li><code>SubscriptionAction</code>（<code>Lnr/k1;</code>；<code>SUBSCRIPTION_ACTION_UNSPECIFIED</code>、<code>SUBSCRIPTION_ACTION_RESUME</code>、<code>SUBSCRIPTION_ACTION_DOWNGRADE</code>、<code>SUBSCRIPTION_ACTION_CREATE</code>、<code>SUBSCRIPTION_ACTION_UPGRADE</code>）</li><li><code>SubscriptionStatus</code>（<code>Lnr/v1;</code>；<code>SUBSCRIPTION_STATUS_UNPAID</code>、<code>SUBSCRIPTION_STATUS_CANCEL</code>、<code>SUBSCRIPTION_STATUS_ACTIVE</code>、<code>SUBSCRIPTION_STATUS_STOP</code>、<code>SUBSCRIPTION_STATUS_SUBSCRIPTION_REGION_NOT_ALLOWED</code>、<code>SUBSCRIPTION_STATUS_PRE_PAID</code>、<code>SUBSCRIPTION_STATUS_DISCARD</code>、<code>SUBSCRIPTION_STATUS_UNSPECIFIED</code>）</li><li><code>SyncStatus</code>（<code>Lgq/f5;</code>；<code>SYNC_STATUS_UPDATE_AVAILABLE</code>、<code>SYNC_STATUS_UNSPECIFIED</code>、<code>SYNC_STATUS_NOT_SYNCED</code>、<code>SYNC_STATUS_SYNCED</code>）</li><li><code>SynthesisStatus</code>（<code>Lfq/t6;</code>；<code>SYNTHESIS_STATUS_FAIL</code>、<code>SYNTHESIS_STATUS_SUCCESS</code>、<code>SYNTHESIS_STATUS_UNSPECIFIED</code>）</li><li><code>TaskExecutionStatus</code>（<code>Lir/i1;</code>；<code>TASK_EXECUTION_STATUS_PENDING</code>、<code>TASK_EXECUTION_STATUS_UNSPECIFIED</code>、<code>TASK_EXECUTION_STATUS_FAILED</code>、<code>TASK_EXECUTION_STATUS_SUCCESS</code>、<code>TASK_EXECUTION_STATUS_RUNNING</code>）</li><li><code>TaskStatus</code>（<code>Lir/t1;</code>；<code>TASK_STATUS_PAUSED</code>、<code>TASK_STATUS_DONE</code>、<code>TASK_STATUS_ACTIVE</code>、<code>TASK_STATUS_UNSPECIFIED</code>、<code>TASK_STATUS_DELETED</code>）</li><li><code>TaskType</code>（<code>Lir/z1;</code>；<code>TASK_TYPE_UNSPECIFIED</code>、<code>TASK_TYPE_ONCE</code>、<code>TASK_TYPE_CRON</code>）</li><li><code>TaskbarType</code>（<code>Lxp/q4;</code>；<code>TASKBAR_TYPE_SNIPPET</code>、<code>TASKBAR_TYPE_WEBSITES</code>、<code>TASKBAR_TYPE_OK_COMPUTER</code>、<code>TASKBAR_TYPE_KIMI_CLAW</code>、<code>TASKBAR_TYPE_IMAGE_GEN</code>、<code>TASKBAR_TYPE_DEEP_RESEARCH</code>、<code>TASKBAR_TYPE_WRITING</code>、<code>TASKBAR_TYPE_UNSPECIFIED</code>、<code>TASKBAR_TYPE_SLIDES</code>、<code>TASKBAR_TYPE_SHEETS</code>、<code>TASKBAR_TYPE_PHOTO_SOLVE</code>、<code>TASKBAR_TYPE_PROJECT</code>、<code>TASKBAR_TYPE_KIMI_SWARM</code>、<code>TASKBAR_TYPE_DESIGN</code>、<code>TASKBAR_TYPE_DOCS</code>、<code>TASKBAR_TYPE_CALL</code>、<code>TASKBAR_TYPE_TRANSLATE</code>、<code>TASKBAR_TYPE_DEEPLINK</code>）</li><li><code>TemplateType</code>（<code>Lrr/j0;</code>；<code>TEMPLATE_TYPE_PPTX</code>、<code>TEMPLATE_TYPE_HTML</code>、<code>TEMPLATE_TYPE_UNSPECIFIED</code>）</li><li><code>TemplateType</code>（<code>Ltr/f;</code>；<code>TEMPLATE_TYPE_STATIC</code>、<code>TEMPLATE_TYPE_FULLSTACK</code>、<code>TEMPLATE_TYPE_UNSPECIFIED</code>）</li><li><code>TextType</code>（<code>Lvr/uk;</code>；<code>TEXT_TYPE_PLAIN_TEXT</code>、<code>TEXT_TYPE_UNSPECIFIED</code>、<code>TEXT_TYPE_MARKDOWN</code>）</li><li><code>Theme</code>（<code>Lfr/i;</code>；<code>THEME_UNSPECIFIED</code>、<code>THEME_DARK</code>、<code>THEME_LIGHT</code>）</li><li><code>Theme</code>（<code>Lgr/h2;</code>；<code>THEME_UNSPECIFIED</code>、<code>THEME_DARK</code>、<code>THEME_LIGHT</code>）</li><li><code>ThirdParty</code>（<code>Lop/r2;</code>；<code>THIRD_PARTY_EMAIL</code>、<code>THIRD_PARTY_APPLE</code>、<code>THIRD_PARTY_WECHAT</code>、<code>THIRD_PARTY_HUAWEI</code>、<code>THIRD_PARTY_GOOGLE</code>、<code>THIRD_PARTY_UNSPECIFIED</code>）</li><li><code>TimeUnit</code>（<code>Lnr/h2;</code>；<code>TIME_UNIT_DAY</code>、<code>TIME_UNIT_MINUTE</code>、<code>TIME_UNIT_UNSPECIFIED</code>、<code>TIME_UNIT_MONTH</code>、<code>TIME_UNIT_YEAR</code>、<code>TIME_UNIT_WEEK</code>）</li><li><code>ToolErrorCode</code>（<code>Lqp/b7;</code>；<code>TOOL_ERROR_CODE_RESOURCE_NOT_FOUND</code>、<code>TOOL_ERROR_CODE_UNSPECIFIED</code>、<code>TOOL_ERROR_CODE_QUOTA_EXCEEDED</code>、<code>TOOL_ERROR_CODE_RESOURCE_EXHAUSTED</code>、<code>TOOL_ERROR_CODE_UNKNOWN</code>、<code>TOOL_ERROR_CODE_AUDIT_REJECTED</code>、<code>TOOL_ERROR_CODE_PERMISSION_DENIED</code>、<code>TOOL_ERROR_CODE_INVALID_ARGUMENTS</code>、<code>TOOL_ERROR_CODE_TOOL_NOT_FOUND</code>、<code>TOOL_ERROR_CODE_INTERNAL</code>、<code>TOOL_ERROR_CODE_CANCELLED</code>、<code>TOOL_ERROR_CODE_TIMEOUT</code>）</li><li><code>ToolMemoryAction</code>（<code>Lvp/g2;</code>；<code>TOOL_MEMORY_ACTION_UNSPECIFIED</code>、<code>TOOL_MEMORY_ACTION_UPDATE</code>、<code>TOOL_MEMORY_ACTION_DELETE</code>、<code>TOOL_MEMORY_ACTION_CREATE</code>）</li><li><code>ToolType</code>（<code>Lwp/v0;</code>；<code>TOOL_TYPE_DEVICE_TOOL</code>、<code>TOOL_TYPE_UNSPECIFIED</code>、<code>TOOL_TYPE_SEARCH</code>、<code>TOOL_TYPE_IMAGE_GENERATION</code>、<code>TOOL_TYPE_BANANA</code>、<code>TOOL_TYPE_PARALLEL_AGENT</code>、<code>TOOL_TYPE_SLIDES_OUTLINE</code>、<code>TOOL_TYPE_DEVICE_LBS</code>、<code>TOOL_TYPE_AUDIO_GENERATION</code>、<code>TOOL_TYPE_SEMANTIC_MEMORY</code>、<code>TOOL_TYPE_ASK_USER</code>、<code>TOOL_TYPE_GOAL</code>、<code>TOOL_TYPE_PARALLEL_AGENT_V2</code>、<code>TOOL_TYPE_CRON_JOB</code>）</li><li><code>TranslateStyle</code>（<code>Lxp/f5;</code>；<code>TRANSLATE_STYLE_UNSPECIFIED</code>、<code>TRANSLATE_STYLE_SIMPLE</code>、<code>TRANSLATE_STYLE_COMPLEX</code>）</li><li><code>Type</code>（<code>Lfq/l7;</code>；<code>TYPE_ROUTE_TO_SHEET</code>、<code>TYPE_ROUTE_TO_AGENT</code>、<code>TYPE_ROUTE_TO_WEBSITE</code>、<code>TYPE_REWARD</code>、<code>TYPE_ROUTE_TO_SLIDES</code>、<code>TYPE_UPGRADE</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_ROUTE_TO_DEEP_RESEARCH</code>、<code>TYPE_UPGRADE_K2_THINKING</code>、<code>TYPE_ROUTE_TO_DOC</code>、<code>TYPE_MODEL_DEGRADE</code>、<code>TYPE_UPGRADE_K2_TURBO</code>）</li><li><code>Type</code>（<code>Lgr/i;</code>；<code>TYPE_SCENARIO</code>、<code>TYPE_CUSTOM</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_LINK</code>）</li><li><code>Type</code>（<code>Lgr/p2;</code>；<code>TYPE_STRONG</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_ONBOARDING</code>、<code>TYPE_WEAK</code>）</li><li><code>Type</code>（<code>Lnr/b1;</code>；<code>TYPE_UNSPECIFIED</code>、<code>TYPE_EVENT</code>、<code>TYPE_PURCHASE</code>、<code>TYPE_ENTERPRISE</code>、<code>TYPE_INTERNAL</code>）</li><li><code>Type</code>（<code>Lpq/n;</code>；<code>TYPE_UNSPECIFIED</code>、<code>TYPE_NEW_CHAT</code>、<code>TYPE_READ</code>、<code>TYPE_DELETED</code>、<code>TYPE_TITLE_UPDATED</code>）</li><li><code>Type</code>（<code>Lpq/l4;</code>；<code>TYPE_UNSPECIFIED</code>、<code>TYPE_ALL_CHATS_READ</code>）</li><li><code>Type</code>（<code>Lrr/w0;</code>；<code>TYPE_AGENTIC_HTML</code>、<code>TYPE_PPTD_X4</code>、<code>TYPE_DESIGN</code>、<code>TYPE_BANANA_PPT</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_OKC_PPT</code>、<code>TYPE_AGENTIC_BANANA</code>、<code>TYPE_PPTD</code>、<code>TYPE_JSON</code>、<code>TYPE_HTML</code>）</li><li><code>Type</code>（<code>Lup/ta;</code>；<code>TYPE_ARTICLE</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_IMAGE</code>、<code>TYPE_IM_MENTION</code>、<code>TYPE_FILE</code>、<code>TYPE_CITE</code>、<code>TYPE_INVALID</code>、<code>TYPE_EXTENSION</code>）</li><li><code>Type</code>（<code>Lup/y5;</code>；<code>TYPE_NORMAL</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_ULTRA</code>）</li><li><code>Type</code>（<code>Lup/f8;</code>；<code>TYPE_UPDATED</code>、<code>TYPE_UNSPECIFIED</code>、<code>TYPE_DELETED</code>、<code>TYPE_REORDERED</code>、<code>TYPE_CREATED</code>、<code>TYPE_STATUS_CHANGED</code>、<code>TYPE_CLEARED</code>）</li><li><code>TypingStatus</code>（<code>Lpq/g7;</code>；<code>TYPING_STATUS_THINK</code>、<code>TYPING_STATUS_UNSPECIFIED</code>、<code>TYPING_STATUS_TOOL</code>、<code>TYPING_STATUS_TEXT</code>）</li><li><code>Unit</code>（<code>Lsq/h3;</code>；<code>UNIT_CURRENCY</code>、<code>UNIT_CREDIT</code>、<code>UNIT_UNSPECIFIED</code>、<code>UNIT_COUNT</code>）</li><li><code>UpgradeStrategy</code>（<code>Lxp/s5;</code>；<code>UPGRADE_STRATEGY_UNSPECIFIED</code>、<code>UPGRADE_STRATEGY_NORMAL</code>、<code>UPGRADE_STRATEGY_MANUAL</code>、<code>UPGRADE_STRATEGY_FORCE</code>）</li><li><code>UserProfileView</code>（<code>Lvr/nl;</code>；<code>USER_PROFILE_VIEW_LITE</code>、<code>USER_PROFILE_VIEW_FULL</code>、<code>USER_PROFILE_VIEW_BASIC</code>、<code>USER_PROFILE_VIEW_UNSPECIFIED</code>）</li><li><code>VaultLinkKind</code>（<code>Lmr/u;</code>；<code>VAULT_LINK_KIND_EMBED</code>、<code>VAULT_LINK_KIND_TAG</code>、<code>VAULT_LINK_KIND_MARKDOWN_LINK</code>、<code>VAULT_LINK_KIND_WIKILINK</code>、<code>VAULT_LINK_KIND_CITATION</code>、<code>VAULT_LINK_KIND_UNSPECIFIED</code>）</li><li><code>VaultTargetType</code>（<code>Lmr/g0;</code>；<code>VAULT_TARGET_TYPE_FILE</code>、<code>VAULT_TARGET_TYPE_SECTION</code>、<code>VAULT_TARGET_TYPE_UNSPECIFIED</code>、<code>VAULT_TARGET_TYPE_HEADING</code>、<code>VAULT_TARGET_TYPE_BLOCK</code>、<code>VAULT_TARGET_TYPE_SOURCE</code>、<code>VAULT_TARGET_TYPE_ENTITY</code>、<code>VAULT_TARGET_TYPE_TAG</code>、<code>VAULT_TARGET_TYPE_UNRESOLVED</code>）</li><li><code>VerifyCodeScene</code>（<code>Lzp/k3;</code>；<code>VERIFY_CODE_SCENE_REBIND_PHONE</code>、<code>VERIFY_CODE_SCENE_UNSPECIFIED</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_UNBIND</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_RESET</code>、<code>VERIFY_CODE_SCENE_GUARDIAN_BIND</code>、<code>VERIFY_CODE_SCENE_BIND_PHONE</code>、<code>VERIFY_CODE_SCENE_DEACTIVATE_ACCOUNT</code>、<code>VERIFY_CODE_SCENE_VERIFY_CURRENT_PHONE</code>）</li><li><code>Vote</code>（<code>Lup/m0;</code>；<code>VOTE_UP</code>、<code>VOTE_UNSPECIFIED</code>、<code>VOTE_DOWN</code>）</li><li><code>WebsiteSlugReason</code>（<code>Lkr/k0;</code>；<code>WEBSITE_SLUG_REASON_ALREADY_TAKEN</code>、<code>WEBSITE_SLUG_REASON_TOO_SHORT</code>、<code>WEBSITE_SLUG_REASON_CONFLICT</code>、<code>WEBSITE_SLUG_REASON_TOO_LONG</code>、<code>WEBSITE_SLUG_REASON_UNSPECIFIED</code>、<code>WEBSITE_SLUG_REASON_RESERVED_SHORTID_NAMESPACE</code>、<code>WEBSITE_SLUG_REASON_OK</code>、<code>WEBSITE_SLUG_REASON_INVALID_FORMAT</code>、<code>WEBSITE_SLUG_REASON_SENSITIVE_CONTENT</code>、<code>WEBSITE_SLUG_REASON_ALL_NUMERIC</code>、<code>WEBSITE_SLUG_REASON_STARTS_OR_ENDS_WITH_HYPHEN</code>、<code>WEBSITE_SLUG_REASON_MODERATION_UNAVAILABLE</code>、<code>WEBSITE_SLUG_REASON_RESERVED_WORD</code>）</li><li><code>WebsiteSlugTargetType</code>（<code>Lkr/r0;</code>；<code>WEBSITE_SLUG_TARGET_TYPE_FULLSTACK</code>、<code>WEBSITE_SLUG_TARGET_TYPE_STATIC</code>、<code>WEBSITE_SLUG_TARGET_TYPE_UNSPECIFIED</code>）</li><li><code>Workflow</code>（<code>Lvp/u3;</code>；<code>WORKFLOW_GROWTH_DIARY</code>、<code>WORKFLOW_AGENT_TASK</code>、<code>WORKFLOW_VISION</code>、<code>WORKFLOW_SLIDES</code>、<code>WORKFLOW_K1_5_THINKING</code>、<code>WORKFLOW_OK_COMPUTER</code>、<code>WORKFLOW_SKILLCREATOR</code>、<code>WORKFLOW_PROBLEM_SOLVE</code>、<code>WORKFLOW_KIMI_PROBLEM_SOLVE_WIKI</code>、<code>WORKFLOW_SUBAGENT</code>、<code>WORKFLOW_SKILLEVO</code>、<code>WORKFLOW_VIBE_CODING_FULLSTACK</code>、<code>WORKFLOW_AI_OFFICE_SHEETS</code>、<code>WORKFLOW_KIMI_CLAW_COORDINATOR</code>、<code>WORKFLOW_VIBE_CODING_WEBSITES</code>、<code>WORKFLOW_SLIDES_X4_BANANA</code>、<code>WORKFLOW_KIMI_ACTIVITIES</code>、<code>WORKFLOW_K2D5</code>、<code>WORKFLOW_ALPHA_LAB</code>、<code>WORKFLOW_KIMI_CHAT</code>、<code>WORKFLOW_KODER</code>、<code>WORKFLOW_DREAM</code>、<code>WORKFLOW_SLIDES_X4</code>、<code>WORKFLOW_BOT</code>、<code>WORKFLOW_K3</code>、<code>WORKFLOW_K2</code>、<code>WORKFLOW_OSS_COMPLETION</code>、<code>WORKFLOW_UNSPECIFIED</code>、<code>WORKFLOW_X5S_COMPLETION</code>、<code>WORKFLOW_COMPACT_MEMORY</code>、<code>WORKFLOW_DEEP_RESEARCH</code>、<code>WORKFLOW_K2_THINKING</code>、<code>WORKFLOW_AI_OFFICE_DOCS</code>、<code>WORKFLOW_KIMIPLUS</code>）</li><li><code>WritingOptionType</code>（<code>Lxp/m6;</code>；<code>WRITING_OPTION_TYPE_INTERVAL</code>、<code>WRITING_OPTION_TYPE_PERSPECTIVE</code>、<code>WRITING_OPTION_TYPE_TONE</code>、<code>WRITING_OPTION_TYPE_EDUCATION_LEVEL</code>、<code>WRITING_OPTION_TYPE_LENGTH</code>、<code>WRITING_OPTION_TYPE_WORD_COUNT</code>、<code>WRITING_OPTION_TYPE_LANGUAGE</code>、<code>WRITING_OPTION_TYPE_UNSPECIFIED</code>、<code>WRITING_OPTION_TYPE_GENRE</code>、<code>WRITING_OPTION_TYPE_PLATFORM</code>、<code>WRITING_OPTION_TYPE_STORY_CATEGORY</code>）</li></ul><h3 id="附录-C：流式-RPC-事件帧结构拆解"><a href="#附录-C：流式-RPC-事件帧结构拆解" class="headerlink" title="附录 C：流式 RPC 事件帧结构拆解"></a>附录 C：流式 RPC 事件帧结构拆解</h3><h4 id="C-1-Connect-流式分帧"><a href="#C-1-Connect-流式分帧" class="headerlink" title="C.1 Connect 流式分帧"></a>C.1 Connect 流式分帧</h4><p>传输：HTTP POST，<code>Content-Type: application/connect+json</code>，响应为 chunked 流。</p><p>每帧遵循 Connect 信封：<code>[1B flags][4B length(BE)][payload]</code>。实测：普通数据帧 <code>flags=0x02</code>、payload 为 <strong>明文 JSON（未压缩）</strong>；bit0(<code>0x01</code>) 置位表示 End-of-Stream。</p><p>payload 为 UTF-8 JSON，即一个 <code>ChatResponse</code> 对象。</p><p>客户端按帧读取，用 <code>op</code> 判断覆盖&#x2F;追加，用 <code>eventOffset</code> 排序去重。</p><h4 id="C-2-事件信封-ChatResponse"><a href="#C-2-事件信封-ChatResponse" class="headerlink" title="C.2 事件信封 ChatResponse"></a>C.2 事件信封 ChatResponse</h4><p>流式响应为 <strong>Connect 流帧序列</strong>：每帧负载是一个 <code>ChatResponse</code>（proto JSON）。其字段即事件类型：</p><table><thead><tr><th>事件字段</th><th>类型</th><th>语义</th></tr></thead><tbody><tr><td><code>op</code></td><td>enum <code>Operator</code> 取值：<code>OPERATOR_UNSPECIFIED</code>、<code>append</code>、<code>set</code></td><td>帧操作符（枚举 <code>Operator</code>：<code>SET</code> &#x2F; <code>APPEND</code>），决定本帧是覆盖还是追加</td></tr><tr><td><code>mask</code></td><td>string</td><td>字段掩码（字符串），标记本帧实际携带了哪些字段</td></tr><tr><td><code>eventOffset</code></td><td>int32</td><td>事件序号（int32），流内单调递增，用于断线续传定位</td></tr><tr><td><code>chat</code></td><td>message <code>Chat</code></td><td>会话元信息变更事件（<code>Chat</code>）</td></tr><tr><td><code>message</code></td><td>message <code>ChatMessage</code></td><td>消息事件（<code>ChatMessage</code>）：一条新消息或消息状态更新</td></tr><tr><td><code>block</code></td><td>message <code>Block</code></td><td>内容块事件（<code>Block</code>）：文本&#x2F;搜索&#x2F;思考&#x2F;工具&#x2F;产物等增量块</td></tr><tr><td><code>ref</code></td><td>message <code>Ref</code></td><td>引用事件（<code>Ref</code>）：检索&#x2F;联网&#x2F;文件引用</td></tr><tr><td><code>usage</code></td><td>message <code>Usage</code></td><td>用量事件（<code>Usage</code>）：token &#x2F; 额度消耗</td></tr><tr><td><code>notification</code></td><td>message <code>Notification</code></td><td>通知事件（<code>Notification</code>）：付费墙 &#x2F; 提示条</td></tr><tr><td><code>done</code></td><td>message <code>Done</code></td><td>结束事件（<code>Done</code>，空消息）：本轮流式结束</td></tr><tr><td><code>heartbeat</code></td><td>message <code>Heartbeat</code></td><td>心跳事件（<code>Heartbeat</code>，空消息）：保活</td></tr><tr><td><code>tts</code></td><td>message <code>MessageSpeechResponse</code></td><td>语音合成事件（<code>MessageSpeechResponse</code>）：音频分片</td></tr><tr><td><code>interaction</code></td><td>message <code>Interaction</code></td><td>交互事件（<code>Interaction</code>）：需要用户回答&#x2F;确认</td></tr><tr><td><code>interactionAck</code></td><td>message <code>InteractionAck</code></td><td>交互确认事件（<code>InteractionAck</code>）</td></tr></tbody></table><h4 id="C-3-事件负载结构"><a href="#C-3-事件负载结构" class="headerlink" title="C.3 事件负载结构"></a>C.3 事件负载结构</h4><ul><li><p><code>chat</code> → <code>Chat</code><br><strong>字段名(JSON key) · 类型</strong></p></li><li><p><code>id</code>（string）</p></li><li><p><code>name</code>（string）</p></li><li><p><code>messageContent</code>（string）</p></li><li><p><code>kimiPlus</code>（message <code>KimiPlus</code>）</p></li><li><p><code>projectId</code>（string）</p></li><li><p><code>project</code>（message <code>Project</code>）</p></li><li><p><code>pinned</code>（bool）</p></li><li><p><code>lastRequest</code>（message <code>LastRequestContext</code>）</p></li><li><p><code>createTime</code>（string）</p></li><li><p><code>updateTime</code>（string）</p></li><li><p><code>source</code>（message <code>ChatSource</code>）</p></li><li><p><code>status</code>（enum <code>Status</code> 取值：<code>STATUS_UNSPECIFIED</code>、<code>STATUS_ASK_USER_QUESTION</code>、<code>STATUS_COMPLETED</code>、<code>STATUS_FAILED</code>、<code>STATUS_GENERATING</code>、<code>STATUS_OVERLOADED</code>、<code>STATUS_USAGE_EXCEEDED</code>、<code>STATUS_USER_CANCELED</code>）</p></li><li><p><code>statusText</code>（string）</p></li><li><p><code>goal</code>（message <code>Goal</code>）</p></li><li><p><code>model</code>（string）</p></li><li><p><code>labels</code>（repeated）</p></li><li><p><code>labelsValue</code>（repeated）</p></li><li><p><code>files</code>（repeated）</p></li><li><p><code>message</code> → <code>ChatMessage</code><br><strong>字段名(JSON key) · 类型</strong></p></li><li><p><code>id</code>（string）</p></li><li><p><code>parentId</code>（string）</p></li><li><p><code>role</code>（enum <code>Lup/ib;</code> 取值：<code>ROLE_UNSPECIFIED</code>、<code>assistant</code>、<code>system</code>、<code>user</code>）</p></li><li><p><code>status</code>（enum <code>MessageStatus</code> 取值：<code>MESSAGE_STATUS_UNSPECIFIED</code>、<code>MESSAGE_STATUS_CANCELLED</code>、<code>MESSAGE_STATUS_COMPLETED</code>、<code>MESSAGE_STATUS_ERROR</code>、<code>MESSAGE_STATUS_GENERATING</code>、<code>MESSAGE_STATUS_PENDING</code>、<code>MESSAGE_STATUS_TRUNCATED</code>）</p></li><li><p><code>refs</code>（message <code>Refs</code>）</p></li><li><p><code>scenario</code>（enum <code>Scenario</code> 取值：<code>SCENARIO_UNSPECIFIED</code>、<code>SCENARIO_AUTOMATION</code>、<code>SCENARIO_AUTOMATION_K3</code>、<code>SCENARIO_BOT</code>、<code>SCENARIO_CHAT</code>、<code>SCENARIO_DEEP_RESEARCH</code>、<code>SCENARIO_K2</code>、<code>SCENARIO_K2D5</code>、<code>SCENARIO_K3</code>、<code>SCENARIO_KIMI_PLUS</code>、<code>SCENARIO_KODER</code>、<code>SCENARIO_OK_COMPUTER</code>、<code>SCENARIO_OK_COMPUTER_SWARM</code>、<code>SCENARIO_PROBLEM_SOLVE</code>、<code>SCENARIO_SKILLCREATOR</code>、<code>SCENARIO_SLIDES</code>、<code>SCENARIO_THINK</code>）</p></li><li><p><code>kimiPlus</code>（message <code>KimiPlusBrief</code>）</p></li><li><p><code>vote</code>（enum <code>Vote</code> 取值：<code>VOTE_UNSPECIFIED</code>、<code>VOTE_DOWN</code>、<code>VOTE_UP</code>）</p></li><li><p><code>error</code>（message <code>Error</code>）</p></li><li><p><code>createTime</code>（string）</p></li><li><p><code>isGoal</code>（bool）</p></li><li><p><code>childrenMessageIds</code>（repeated）</p></li><li><p><code>blocks</code>（repeated）</p></li><li><p><code>references</code>（repeated）</p></li><li><p><code>labels</code>（repeated）</p></li><li><p><code>labelsValue</code>（repeated）</p></li><li><p><code>block</code> → <code>Block</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>parentId</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>text</code></td><td>message <code>TextBlock</code></td></tr><tr><td><code>search</code></td><td>message <code>SearchBlock</code></td></tr><tr><td><code>file</code></td><td>message <code>File</code></td></tr><tr><td><code>think</code></td><td>message <code>ThinkBlock</code></td></tr><tr><td><code>exception</code></td><td>message <code>ExceptionBlock</code></td></tr><tr><td><code>memory</code></td><td>message <code>MemoryBlock</code></td></tr><tr><td><code>contractReview</code></td><td>message <code>ContractReviewBlock</code></td></tr><tr><td><code>tool</code></td><td>message <code>ToolBlock</code></td></tr><tr><td><code>artifact</code></td><td>message <code>ArtifactBlock</code></td></tr><tr><td><code>slidesView</code></td><td>message <code>SlidesViewBlock</code></td></tr><tr><td><code>stage</code></td><td>message <code>StageBlock</code></td></tr><tr><td><code>multiStage</code></td><td>message <code>MultiStageBlock</code></td></tr><tr><td><code>elemeMenuCard</code></td><td>message <code>ElemeMenuCardBlock</code></td></tr><tr><td><code>elemeOrderCard</code></td><td>message <code>ElemeOrderCardBlock</code></td></tr><tr><td><code>videoCards</code></td><td>message <code>VideoCardsBlock</code></td></tr><tr><td><code>visualEdit</code></td><td>message <code>VisualEditBlock</code></td></tr><tr><td><code>websitesTemplate</code></td><td>message <code>WebsitesTemplateBlock</code></td></tr><tr><td><code>slidesAnnotation</code></td><td>message <code>SlidesAnnotationBlock</code></td></tr><tr><td><code>explorerResearch</code></td><td>message <code>ExplorerResearchBlock</code></td></tr><tr><td><code>explorerResearchReanswer</code></td><td>message <code>ExplorerResearchReanswerBlock</code></td></tr><tr><td><code>aippt</code></td><td>message <code>AIPPTBlock</code></td></tr><tr><td><code>contentViewZhidemaiCard</code></td><td>message <code>ContentViewZhidemaiBlock</code></td></tr><tr><td><code>resourceLink</code></td><td>message <code>ResourceLink</code></td></tr><tr><td><code>imRoomSystem</code></td><td>message <code>IMRoomSystemBlock</code></td></tr><tr><td><code>agentMessage</code></td><td>message <code>AgentMessageBlock</code></td></tr><tr><td><code>error</code></td><td>message <code>Error</code></td></tr><tr><td><code>createTime</code></td><td>string</td></tr></tbody></table></li><li><p><code>ref</code> → <code>Ref</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td></tr><tr><td><code>messageId</code></td><td>string</td></tr><tr><td><code>search</code></td><td>message <code>SearchChunkBrief</code></td></tr><tr><td><code>image</code></td><td>message <code>ImageItem</code></td></tr><tr><td><code>url</code></td><td>message <code>URLRef</code></td></tr><tr><td><code>product</code></td><td>message <code>ProductRef</code></td></tr><tr><td><code>sandboxFile</code></td><td>message <code>SandboxFileRef</code></td></tr></tbody></table></li><li><p><code>usage</code> → <code>Usage</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>research</code></td><td>message <code>Research</code></td></tr></tbody></table></li><li><p><code>notification</code> → <code>Notification</code><br><strong>字段名(JSON key) · 类型</strong></p></li><li><p><code>type</code>（enum <code>Type</code> 取值：<code>TYPE_UNSPECIFIED</code>、<code>TYPE_MODEL_DEGRADE</code>、<code>TYPE_REWARD</code>、<code>TYPE_ROUTE_TO_AGENT</code>、<code>TYPE_ROUTE_TO_DEEP_RESEARCH</code>、<code>TYPE_ROUTE_TO_DOC</code>、<code>TYPE_ROUTE_TO_SHEET</code>、<code>TYPE_ROUTE_TO_SLIDES</code>、<code>TYPE_ROUTE_TO_WEBSITE</code>、<code>TYPE_UPGRADE</code>、<code>TYPE_UPGRADE_K2_THINKING</code>、<code>TYPE_UPGRADE_K2_TURBO</code>）</p></li><li><p><code>message</code>（string）</p></li><li><p><code>paywall</code>（message <code>PaywallAction</code>）</p></li><li><p><code>tts</code> → <code>MessageSpeechResponse</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>sequenceId</code></td><td>int32</td></tr><tr><td><code>synthesisStatus</code></td><td>enum <code>SynthesisStatus</code> 取值：<code>SYNTHESIS_STATUS_UNSPECIFIED</code>、<code>SYNTHESIS_STATUS_FAIL</code>、<code>SYNTHESIS_STATUS_SUCCESS</code></td></tr><tr><td><code>audioUrl</code></td><td>string</td></tr><tr><td><code>rawText</code></td><td>message <code>RawText</code></td></tr></tbody></table></li><li><p><code>interaction</code> → <code>Interaction</code><br><strong>字段名(JSON key) · 类型</strong></p></li><li><p><code>id</code>（string）</p></li><li><p><code>type</code>（enum <code>InteractionType</code> 取值：<code>INTERACTION_TYPE_UNSPECIFIED</code>、<code>INTERACTION_TYPE_GENERIC_TOOL</code>、<code>INTERACTION_TYPE_INTERNAL</code>、<code>INTERACTION_TYPE_INTERRUPT</code>、<code>INTERACTION_TYPE_LBS</code>、<code>INTERACTION_TYPE_SLIDES_OUTLINE</code>）</p></li><li><p><code>expireTime</code>（string）</p></li><li><p><code>genericTool</code>（message <code>GenericToolRequest</code>）</p></li><li><p><code>interrupt</code>（message <code>InterruptRequest</code>）</p></li><li><p><code>interactionAck</code> → <code>InteractionAck</code></p><table><thead><tr><th>字段名(JSON key)</th><th>类型</th></tr></thead><tbody><tr><td><code>interactionId</code></td><td>string</td></tr></tbody></table></li></ul><h4 id="C-4-流生命周期（以-Chat-为例）"><a href="#C-4-流生命周期（以-Chat-为例）" class="headerlink" title="C.4 流生命周期（以 Chat 为例）"></a>C.4 流生命周期（以 Chat 为例）</h4><ol><li><p>发送 <code>ChatRequest</code> 后先回 <code>{&quot;op&quot;:&quot;SET&quot;,&quot;mask&quot;:&quot;chat&quot;,&quot;chat&quot;:{…},&quot;eventOffset&quot;:0}</code>。</p></li><li><p>陆续收到 <code>message</code>（新消息占位）与 <code>block</code>（正文&#x2F;思考&#x2F;搜索增量）。</p></li><li><p>正文增量：<code>{&quot;op&quot;:&quot;APPEND&quot;,&quot;eventOffset&quot;:7,&quot;block&quot;:{&quot;id&quot;:&quot;b1&quot;,&quot;messageId&quot;:&quot;m1&quot;,&quot;text&quot;:{…}}}</code>。</p></li><li><p>联网&#x2F;文件场景插入 <code>ref</code>（引用）与 <code>usage</code>（用量）。</p></li><li><p>需用户确认时下发 <code>interaction</code>，客户端回 <code>interactionAck</code>。</p></li><li><p>结束：<code>{&quot;done&quot;:{}}</code>，随后 End-of-Stream 帧&#x2F;连接关闭。</p></li></ol><h4 id="C-5-解析要点"><a href="#C-5-解析要点" class="headerlink" title="C.5 解析要点"></a>C.5 解析要点</h4><p>事件以字段存在性区分；未知字段必须忽略。</p><p><code>mask</code> 标记本帧有效字段；<code>eventOffset</code> 用于乱序&#x2F;重连合并。</p><p><code>block</code> 内含多种子类型（text&#x2F;search&#x2F;think&#x2F;tool&#x2F;artifact&#x2F;slidesView…），按存在字段分派渲染。</p><h3 id="附录-D：常见调用排坑说明"><a href="#附录-D：常见调用排坑说明" class="headerlink" title="附录 D：常见调用排坑说明"></a>附录 D：常见调用排坑说明</h3><ol><li><strong>两套前缀</strong>：账号服务 <code>Logout/RefreshToken</code> 走 <code>/api</code>，其余走 <code>/apiv2</code>，混用会 404。</li><li><strong>必须带全设备头 + 风控头</strong>，缺失会被风控拦截（非普通 401）。</li><li><strong>Content-Type</strong> 必须是 <code>application/connect+json</code>。</li><li><strong>流式接口</strong> 需按帧解析，勿一次性读 body；注意 error 帧与中断。</li><li><strong>token 刷新</strong> 需并发去重，避免 refresh token 失效。</li><li><strong>枚举取值</strong> 是字符串（如 <code>FOLLOW_ACTION_FOLLOW</code>）。</li><li><strong>分页</strong> 多用 pageToken&#x2F;cursor，翻页需回传上次返回值。</li><li><strong>图片直传</strong>：GeneratePresignedURL → PUT → CreateFile。</li><li><strong>删除类无返回体</strong>，成功即 200 空体。</li><li><strong>R8 混淆</strong>：proto 类名被混淆，字段名保留于 descriptor，枚举类型名被剥离（按前缀推断）。</li></ol>]]></content>
    
    
    <summary type="html">69 个 Connect-RPC 服务、260 个接口逐条列出用途、请求/返回字段、调用示例与解析说明，并附 909 条 protobuf 消息、158 个枚举与流式帧结构。</summary>
    
    
    
    <category term="项目" scheme="https://blog.goose.cc.cd/categories/%E9%A1%B9%E7%9B%AE/"/>
    
    
    <category term="文档" scheme="https://blog.goose.cc.cd/tags/%E6%96%87%E6%A1%A3/"/>
    
    <category term="Kimi" scheme="https://blog.goose.cc.cd/tags/Kimi/"/>
    
  </entry>
  
  <entry>
    <title>白日不到处，青春恰自来</title>
    <link href="https://blog.goose.cc.cd/posts/where-the-sun-does-not-shine/"/>
    <id>https://blog.goose.cc.cd/posts/where-the-sun-does-not-shine/</id>
    <published>2026-10-24T13:58:36.000Z</published>
    <updated>2026-10-24T13:58:36.000Z</updated>
    
    <content type="html"><![CDATA[<p><strong>世人皆慕牡丹国色，皆盼阳光普照</strong>。然而袁枚独注目于阴暗处微如米粒之青苔——&quot;白日不到处，青春恰自来。苔花如米小，也学牡丹开。&quot;微苔道尽倔强，短诗写透尊严。你我于浩瀚世间，或皆是一抹无光之苔。命运设下暗局，出身归于平凡，当以何姿态立于世？——身陷暗处当自强，命如苔花亦绽放。</p><h4 id="境遇虽暗，以坚韧铸骨，迎-青春自来-。"><a href="#境遇虽暗，以坚韧铸骨，迎-青春自来-。" class="headerlink" title="境遇虽暗，以坚韧铸骨，迎&quot;青春自来&quot;。"></a>境遇虽暗，以坚韧铸骨，迎&quot;青春自来&quot;。</h4><p>《易》云&quot;天行健，君子以自强不息&quot;：命运若吝啬阳光，生命便自己长出绿意。陶津津失右臂而以独力挣出生计，庞众望居陋室而考入清华，江梦南于无声处登博士之位，皆被推入&quot;白日不到&quot;之幽暗。反观体健境优之人，稍遇坎坷便诿过于命，怨艾不休，终将岁月空掷。可见困住人的从来不是处境，而是面对处境之姿态。不求天赐晴空，但凭脊骨如铁，照样在绝境中拔节生长。</p><h4 id="身形虽微，以自信作帆，效-牡丹盛开-。"><a href="#身形虽微，以自信作帆，效-牡丹盛开-。" class="headerlink" title="身形虽微，以自信作帆，效&quot;牡丹盛开&quot;。"></a>身形虽微，以自信作帆，效&quot;牡丹盛开&quot;。</h4><p>孟子言&quot;人皆可以为尧舜&quot;，故生于平凡绝非甘于平庸之借口，身份低微更非放弃尊严之理由。保洁员王世金左眼近盲、右眼微光，却以纸板为谱，苦练八月，一舞惊艳四方；保安刘政十年六战法考，白日守门，夜半苦读，终从方寸岗亭跃入法治殿堂。他们皆是世俗眼中&quot;如米小&quot;的普通人，然身残而魂不屈，形微而心自昭。不因位卑而低头，不因微小而自轻，以极致态度雕琢岁月，凡人亦可比肩神明。</p><h4 id="力量虽薄，以微光成炬，聚-时代星河-。"><a href="#力量虽薄，以微光成炬，聚-时代星河-。" class="headerlink" title="力量虽薄，以微光成炬，聚&quot;时代星河&quot;。"></a>力量虽薄，以微光成炬，聚&quot;时代星河&quot;。</h4><p>曹植有言：&quot;冀以尘雾之微，补益山海；荧烛末光，增辉日月。&quot;一朵苔花难掩暗夜，万朵苔花可抵春光。个体的光芒纵然微弱，播之即能暖人；单薄的肩膀纵然无力，并肩便可擎起时代。刘盛兰拾荒十余载，未尝肉味、未添新衣，却托起百余学子求学之梦；汪勇以单车穿梭于封城之武汉，以凡躯筑就医护生命防线。他们无惊天之举，却有润物之大爱。正是无数这样&quot;如米小&quot;的平凡英雄默默奉献，才汇聚成照亮复兴前路之璀璨星河。</p><p><strong>岁月无声，苔藓有痕</strong>。既然清风不曾偏爱幽谷，幽谷便自生绿意；既然阳光难穿石缝，石缝便自酿春色。莫问微光能照几寸夜空，且看千万不甘平庸之灵魂，正以最倔强的姿态，共织这世间壮阔的春和景明。</p>]]></content>
    
    
    <summary type="html">以袁枚《苔》起兴的议论散文，借微末苔花写平凡生命的倔强与尊严。</summary>
    
    
    
    <category term="作文" scheme="https://blog.goose.cc.cd/categories/%E4%BD%9C%E6%96%87/"/>
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/tags/%E9%9A%8F%E7%AC%94/"/>
    
  </entry>
  
  <entry>
    <title>网页入门——第三章（番外）</title>
    <link href="https://blog.goose.cc.cd/posts/html-new-3/"/>
    <id>https://blog.goose.cc.cd/posts/html-new-3/</id>
    <published>2026-10-18T08:41:23.000Z</published>
    <updated>2026-10-18T08:41:23.000Z</updated>
    
    <content type="html"><![CDATA[<p>这几天为啥没更新呢</p><h3 id="一是累了"><a href="#一是累了" class="headerlink" title="一是累了"></a>一是累了</h3><p>可能有人问，你写文章累啥啊，打打字的事，也没写多少字</p><p>那我就<strong>请</strong>你看看鹅的手稿：</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/c0580fb18d994e3483a2662c8c842642%2Fo%2F1792313136915-c.jpg?auth_key=1823850900-0-0-59bf7d40de8d109a28f2c4d92840f385"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/f959503a79e24e81a8fcc05754651064%2Fo%2F1792313136956-c.jpg?auth_key=1823850360-0-0-b255d41dcf1cdf9803e356d023f7ca8b"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/39b78a76a0e8407d9516404f555ba1c2%2Fo%2F1792313136911-c.jpg?auth_key=1823850960-0-0-fa03381a7c3c95fa67fec8bf2c40f526"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/8e779abc4fa143d497d7500254ab0e60%2Fo%2F1792313137056-c.jpg?auth_key=1823852160-0-0-3a7a80d0fa2d443a6b9886945b16ae68"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/9e12a73436ba49aa98607b62e622ea51%2Fo%2F1792313137196-c.jpg?auth_key=1823849760-0-0-b724bcca2b4dac7c75d7b60335740d0e"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/b6af424ad438419eb32229fabe6c3703%2Fo%2F1792313143169-c.jpg?auth_key=1823851320-0-0-bef902ac98f11c5dd62bb0a0e90c8a77"                                     ></p><h3 id="二、臭netlify"><a href="#二、臭netlify" class="headerlink" title="二、臭netlify"></a>二、臭netlify</h3><p>我的博客在Netlify和Cloudflare上都部署了一个，所以出现了这个情况：</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/1a9b742e3c2f41b08f6ad338473acba3%2Fo%2F1792313569708-c.png?auth_key=1823851920-0-0-12361a97a30d830ee7763d5623b951c2"                                     ></p><p>笑不活了</p>]]></content>
    
    
    <summary type="html">网页入门——第三章（番外）</summary>
    
    
    
    <category term="网页入门" scheme="https://blog.goose.cc.cd/categories/%E7%BD%91%E9%A1%B5%E5%85%A5%E9%97%A8/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>松间照你咋那么开心。。。</title>
    <link href="https://blog.goose.cc.cd/posts/sjz-happy-no/"/>
    <id>https://blog.goose.cc.cd/posts/sjz-happy-no/</id>
    <published>2026-10-16T14:55:55.000Z</published>
    <updated>2026-10-16T14:55:55.000Z</updated>
    
    <content type="html"><![CDATA[<div align="center"><p>看着松间照发泄性的文章，鹅陷入了沉思。。。</p><p>国庆7天确实爽，，根据松间照的描述，国庆后会串休，给他累坏了o(^▽^)o</p><p>我心里就犯嘀咕：我还没说啥呢，你先趴了？？？？？哈哈(≧ω≦)</p><p>那么请各位翻出日历</p><p>众所周知，高中是单休，周六上学，那么也就是说，我从14号上到了24号Σ_(꒪ཀ꒪」∠)</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/467d7285338b45e3acc39707986167d6%2Fo%2F1792162042376-c.png?auth_key=1823702160-0-0-e8bb961fa54ae81eb1acf9eab11e004f"                                     ></p><h1 id="😎"><a href="#😎" class="headerlink" title="😎"></a>😎</h1><p>还没完呢？</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://workspace-zb-cdn.qianwen.com/d19396a95b704b9697374f6707bf322b%2Fo%2F1792162046224-c.png?auth_key=1823699340-0-0-2287be8f6b9b102598f556ca1c0de67e"                                     ></p><p>九号十号考试哦</p><p>sdgarfgbszdfhgserfhgserf ⇠精神失常的鹅</p></div><p><a class="link"   href="http://sojizh.gt.tc/post.php?file=2026101601.md" >http://sojizh.gt.tc/post.php?file=2026101601.md<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p>]]></content>
    
    
    <summary type="html">看着松间照的博客想吐槽两句</summary>
    
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/categories/%E9%9A%8F%E7%AC%94/"/>
    
    
    <category term="吐槽" scheme="https://blog.goose.cc.cd/tags/%E5%90%90%E6%A7%BD/"/>
    
  </entry>
  
  <entry>
    <title>网页入门——第二章</title>
    <link href="https://blog.goose.cc.cd/posts/html-new-2/"/>
    <id>https://blog.goose.cc.cd/posts/html-new-2/</id>
    <published>2026-10-14T15:54:12.000Z</published>
    <updated>2026-10-15T16:10:15.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="界面优化-—-第二章"><a href="#界面优化-—-第二章" class="headerlink" title="界面优化 — 第二章"></a>界面优化 — 第二章</h1><p>阅读完上一篇后，想必大家都有了一些自己创作的网页，同时我猜测大家应该遇到了两个问题：</p><ol><li>页面在一些比较奇怪的尺寸下显示不佳</li><li>旧手机用户会发现苹果那丑丑的 emoji 在你的页面上很难看</li></ol><p>那么这章我就先讲如何优化界面并去掉一些 AI 味。（AI loop）</p><p><del class="mask">这篇文章比上一篇短多啦</del></p><h2 id="响应式"><a href="#响应式" class="headerlink" title="响应式"></a>响应式</h2><p>在一些大型网站中你会发现，无论用手机看还是电脑看，它都会把所有内容以一个合适的排版呈现给你。这是怎么做到的呢？答案只有三个字：<strong>响应式</strong>。</p><p>顾名思义：响应窗口尺寸，自动适配。这样对AI说：</p><div class="code-container" data-rel="Text"><figure class="iseeu highlight text"><table><tr><td class="code"><pre><span class="line">帮我适配好各种屏幕尺寸，使用媒体查询</span><br></pre></td></tr></table></figure></div><p>（AI 会增加一些 CSS 样式适配窗口）</p><h2 id="emoji"><a href="#emoji" class="headerlink" title="emoji"></a>emoji</h2><p>在现在的安卓与 Win 8.1+ 系统当中，emoji 都是彩色的而且非常好看，但是作为网站开发者，你必须要考虑你的奇葩用户的设备，比如 Win 7，这个全球仍然有 10% 的人在用系统对 emoji 的支持那是烂成史了。</p><h3 id="解决办法："><a href="#解决办法：" class="headerlink" title="解决办法："></a>解决办法：</h3><ol><li><p>Font Awesome：这是一个图标库，图标各式各样，只有你想不到，没有它画不到的。</p></li><li><p>SVG</p></li></ol><p>SVG 作为矢量图非常适合当作图标，而且它一个 SVG 文件极小，加载速度快。</p><p>不过 AI 在画 SVG 方面可以说是不尽如人意，目前也只有 Kimi 可以画出比较好看的 SVG。当然图片是可以矢量化的，这里推荐一个矢量化工具：<a class="link"   href="https://svglo.com/zh-cn/" >https://svglo.com/zh-cn/<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><p>好了，SVG 准备好就到要放进页面的时间了。这里注意一个坑点：</p><p><strong>不要直接把 SVG 扔给对话型 AI</strong> ，AI 生成内容不完全可靠，AI 生成时一旦 SVG 少写一个字符，整个都会崩溃。</p><p><strong>正确做法：</strong></p><ol><li>告诉AI<code>把xxx位置的图标替换为./image/xxx.svg</code></li><li>那么你的文件夹结构长这样：</li></ol><div class="code-container" data-rel="Plaintext"><figure class="iseeu highlight plaintext"><table><tr><td class="code"><pre><span class="line">├─ image</span><br><span class="line">│  └─ xxx.svg</span><br><span class="line">└─ index.html</span><br></pre></td></tr></table></figure></div><p>注 ：index中文名为索引，我会单独开一小节来解释。</p><h3 id="怎么记住"><a href="#怎么记住" class="headerlink" title="怎么记住"></a>怎么记住</h3><p>根据我这么长时间的观察，页面中很多里的AI slop，大都是以下几种：</p><ul><li>蓝紫渐变色。</li><li>图标上下弹跳</li><li>啥子都会用的页面有一堆提示性文字</li></ul><p>你只需要给出反向提示词就ok了。<br>我推荐v0，有时间把自己对页面的要求整理一下</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">&lt;!-- AGENTS.md --&gt;</span><br><span class="line">AI行为规范文档</span><br><span class="line"><span class="bullet">1.</span> 要求一</span><br><span class="line"><span class="bullet">2.</span> 要求二</span><br></pre></td></tr></table></figure></div><p>每次开新对话时把这个文件发给它，它会遵循的。</p><h2 id="最后想说的话"><a href="#最后想说的话" class="headerlink" title="最后想说的话"></a>最后想说的话</h2><p>为什么我最开始不一开始就使用Agent、Openclaw等AI工具，不是难，而是我希望读我文章的朋友从自己手动做，自己踩坑，明白页面背后的原理，而不是向Agent发一句话，其他全交给AI，若是如此你很快会失去对代码的掌控权，一个小错误都要问AI，而非自己判断哪里出问题了，不仅浪费token <del class="mask">费钱</del> ，整个项目曾经出现过什么问题你是一知半解，看AI在那瞎逼逼.有些人以为自己会敲<code>git add .</code>、<code>git commit</code>、<code>git push</code>就认为自己非常牛逼、非常专业，你的<code>.gitignore</code>呢？逗呢？都不看AI在仓库中生成了什么，AGENTS.MD也不写，满仓库的<code>preview.png</code>给谁看呢？<a class="link"   href="https://x0.fan/" >Object2<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a> 曾有言：别几把污染GitHub。。</p><p>本文就到这里，下篇<a href="https://blog.goose.cc.cd/posts/html-new-3/">传送门</a></p>]]></content>
    
    
    <summary type="html">网页入门——第二章</summary>
    
    
    
    <category term="网页入门" scheme="https://blog.goose.cc.cd/categories/%E7%BD%91%E9%A1%B5%E5%85%A5%E9%97%A8/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>网页入门——第一章</title>
    <link href="https://blog.goose.cc.cd/posts/html-new-1/"/>
    <id>https://blog.goose.cc.cd/posts/html-new-1/</id>
    <published>2026-10-14T15:54:02.000Z</published>
    <updated>2026-10-14T15:54:02.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="网页入门至高阶"><a href="#网页入门至高阶" class="headerlink" title="网页入门至高阶"></a>网页入门至高阶</h1><h2 id="引言"><a href="#引言" class="headerlink" title="引言"></a>引言</h2><p>在这个 AI 大模型（LLM）横行的年代，想成为一个开发者，门槛 &#x3D; 0，不是几乎，是直等于 0。网页（超文本标记语言）是众多编程语言中，难度最低、门槛最低、受众群体最多的一种语言。谁手机里没装个浏览器呢？</p><p>我将在我的博客里，开启这个名为「网页入门」的合集，这也是我第一次写这么长文字，支持一下嘛～</p><h2 id="第一章-入门"><a href="#第一章-入门" class="headerlink" title="第一章 入门"></a>第一章 入门</h2><p>现在的 AI 比我当时入坑的时候可好太多了，但我还是比较建议从最原始（就是我当初玩的单文件html）开始。我起步的时候还是比较艰难的，篇幅原因这里不过多赘述。</p><h3 id="第一步-—-选择-AI"><a href="#第一步-—-选择-AI" class="headerlink" title="第一步 — 选择 AI"></a>第一步 — 选择 AI</h3><div align="center">Deepseek、元宝、Kimi</div><p>Deepseek 我推荐用网页版，因为他写代码之后有预览。</p><h3 id="第二步-—-安装编辑器"><a href="#第二步-—-安装编辑器" class="headerlink" title="第二步 — 安装编辑器"></a>第二步 — 安装编辑器</h3><ul><li>iPhone、iPad：Koder</li><li>电脑：Vscode、notpad++（推荐，启动快）、<del class="mask">远古真神记事本？？</del></li><li>安卓请自行探索</li></ul><h3 id="第三步-—-开始了解-Hyper-Text-Markup-Language"><a href="#第三步-—-开始了解-Hyper-Text-Markup-Language" class="headerlink" title="第三步 — 开始了解 Hyper Text Markup Language"></a>第三步 — 开始了解 Hyper Text Markup Language</h3><p>网页本质上是一个名为 <code>.html</code> 的文件，浏览器会按照代码渲染页面。像人一样，浏览器在渲染页面时，会从上到下渲染。网页当中会用到 style 和 script，这个之后再说。</p><p>那么，现在，向 Deepseek 发送第一句话：</p><div class="code-container" data-rel="Text"><figure class="iseeu highlight text"><table><tr><td class="code"><pre><span class="line">生成一个简单的 html，这是一个计算器页面，xxx 风格、按钮要圆角……（描述你所想要的）</span><br></pre></td></tr></table></figure></div><p>Deepseek 会生成一个代码块，网页版可以直接预览，手机版点击复制再粘贴到编辑器中。Koder 用那个眼睛的预览按钮，电脑双击 .html 浏览器会自动打开。</p><h3 id="四、修正错误"><a href="#四、修正错误" class="headerlink" title="四、修正错误"></a>四、修正错误</h3><h4 id="1-逻辑错误（JS）"><a href="#1-逻辑错误（JS）" class="headerlink" title="1. 逻辑错误（JS）"></a>1. 逻辑错误（JS）</h4><ol><li>倘若你在页面中发现了某处无法点击，或者卡住了？</li></ol><p>但这时你不要对 Deepseek 说「×××无效、bug、啊吧啊吧」，请按下 <strong>F12</strong>（苹果用户往下滑，后面说）。Edge、Chrome 控制台在右侧，Firefox 在下面。</p><p>看控制台内有没有红色的文字，复制它们，发给 Deepseek，他就知道问题所在了。</p><h5 id="苹果设备开发者工具"><a href="#苹果设备开发者工具" class="headerlink" title="苹果设备开发者工具"></a>苹果设备开发者工具</h5><p>苹果该死的限制还是很多的，所以我推荐的方法不完美。（当然是指你只有苹果 iPhone 或 iPad，Mac佬当我没说）。在 App Store 里找 Safari 扩展：DevTools（名字记不清了，找不到可以问问 AI，注意是浏览器扩展，不是 下载什么软件或者开启远程调试）。安装后页面上会出现一个工具按钮，点开就是控制台。不过这是在 Safari 当中，你需要把网页用 Safari 打开。</p><p>这时回到 Koder，它页面顶部有一大串网址，复制它，将 Koder 切换到后台不要关，回到 Safari，粘贴这个网址，打开就是 Koder 中看见的页面了。</p><blockquote><p>注：别把这个网址分享给你有点技术的朋友，他能把你笑话死，至于为啥……后说。</p></blockquote><h4 id="2-页面不美观"><a href="#2-页面不美观" class="headerlink" title="2. 页面不美观"></a>2. 页面不美观</h4><p>现在的 Deepseek 已经有识图功能了（把我当年强的 awa，我当年仅靠文字描述啊），截图发给他，他就能明白了。</p><p><strong>记住</strong>：如果一个bug怎么修都修不好，那么告诉他：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">我操你妈，给我联网搜索！</span><br></pre></td></tr></table></figure></div><p>嘿嘿(¬◡¬)✧</p><p><em>hope you creat your beautiful website</em></p><p><strong>下章 <a href="https://blog.goose.cc.cd/posts/html-new-2/">传送门</a></strong></p>]]></content>
    
    
    <summary type="html">网页入门——第一章</summary>
    
    
    
    <category term="网页入门" scheme="https://blog.goose.cc.cd/categories/%E7%BD%91%E9%A1%B5%E5%85%A5%E9%97%A8/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>GooseBlog为什么换成Hexo了</title>
    <link href="https://blog.goose.cc.cd/posts/sb-to-hexo/"/>
    <id>https://blog.goose.cc.cd/posts/sb-to-hexo/</id>
    <published>2026-10-07T03:42:00.000Z</published>
    <updated>2026-10-11T14:19:00.000Z</updated>
    
    <content type="html"><![CDATA[<p>鹅键盘上的字磨没了，所以全靠盲打---有错别字别叫</p><h2 id="Hexo是什么"><a href="#Hexo是什么" class="headerlink" title="Hexo是什么"></a>Hexo是什么</h2><p>据我的了解，就是超大的静态页面</p><p>啥都有的那种</p><p>社区还有丰富的主题（就比如鹅用的这个）就挺好看的（我是这么觉得）</p><h2 id="为啥我放弃SUPABASE和cloudflare打组合了"><a href="#为啥我放弃SUPABASE和cloudflare打组合了" class="headerlink" title="为啥我放弃SUPABASE和cloudflare打组合了"></a>为啥我放弃SUPABASE和cloudflare打组合了</h2><p>虽然上一个博客是手搓的，但是真的、真的很丑</p><p><del class="mask">我以前写网页不这样啊</del></p><blockquote><p>我真的很怀念当年死抠一个单文件HTML的时光，真好</p></blockquote><p>不知道各位有没有发现：我做出来的网站不是有个导航栏就是有个侧边栏</p><p>然后fa图标</p><p>这可能与我的经历有关吧：</p><p>我的网站从来不允许出现emoji，可能大家觉得emoji还挺好看的，但是我是苹果起家的，苹果美工的审美。。。。</p><p>我做网站总考虑竖屏、横屏、正方形屏幕？？？各种奇葩尺寸？？</p><p>。。。。</p><p>总之那个博客我比较失望</p><blockquote><p>不知道谁看源代码看出来没，旧博客其实是GooseAI改造出来的</p></blockquote><p>手搓博客太累了</p><p><a class="link"   href="http://sojizh.gt.tc/post.php?file=2026100501.md" >http://sojizh.gt.tc/post.php?file=2026100501.md<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a><br><a class="link"   href="http://sojizh.gt.tc/post.php?file=2026100401.md" >http://sojizh.gt.tc/post.php?file=2026100401.md<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><p>松间照说的其实挺对的</p><p>但是实在太累了</p><p>我维护个GooseHost都要吐血Σ_(꒪ཀ꒪」∠)，哪有心情维护博客</p><p>直到我看见Hexo，研究了两下，行了，GitHubactions走起</p><h2 id="旧博客很卡？"><a href="#旧博客很卡？" class="headerlink" title="旧博客很卡？"></a>旧博客很卡？</h2><p>我用的时候就是有点卡</p><p>走SUPABASE在进cloudflare，最后到客户端，虽然架构和GooseHost一样，但是就是卡。。。</p><p>而Hexo你构建好就行了，不需要额外的网络请求（挺舒服）</p><p>：（</p><h2 id="还有就是图床"><a href="#还有就是图床" class="headerlink" title="还有就是图床"></a>还有就是图床</h2><p>原来的图床崩了，所以干脆一起弄了。。。</p>]]></content>
    
    
    <summary type="html">有后端的博客和纯前端的差别</summary>
    
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/categories/%E9%9A%8F%E7%AC%94/"/>
    
    
    <category term="GooseBlog" scheme="https://blog.goose.cc.cd/tags/GooseBlog/"/>
    
  </entry>
  
  <entry>
    <title>Kimi发现只读面板</title>
    <link href="https://blog.goose.cc.cd/posts/kimi-web/"/>
    <id>https://blog.goose.cc.cd/posts/kimi-web/</id>
    <published>2026-09-24T06:58:41.000Z</published>
    <updated>2026-09-24T06:58:41.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="Kimi发现只读面板：在网页版上浏览-Kimi-社区内容"><a href="#Kimi发现只读面板：在网页版上浏览-Kimi-社区内容" class="headerlink" title="Kimi发现只读面板：在网页版上浏览 Kimi 社区内容"></a>Kimi发现只读面板：在网页版上浏览 Kimi 社区内容</h1><blockquote><p>作者：<strong>Ranivye</strong> · 开源协议：MIT · 仓库：<a class="link"   href="https://gitee.com/ranivye/kimi.reading" >https://gitee.com/ranivye/kimi.reading<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p></blockquote><p>Kimi 的发现页是 APP 端的一大特色功能，但网页版用户一直无法方便地浏览社区内容。<strong>Kimi发现只读面板</strong>（Kimi Community Read-Only Panel）是一个用户脚本（UserScript），它在 Kimi 网页版上提供一个浮动面板，用来浏览社区信息流、评论、相似动态、用户搜索和帖子详情——全部只读，安全透明。</p><h2 id="特性"><a href="#特性" class="headerlink" title="特性"></a>特性</h2><ul><li><strong>信息流</strong>：浏览社区推荐动态</li><li><strong>帖子详情</strong>：AI 输出文本 + HTML 预览</li><li><strong>评论列表</strong>：含子评论、BOT &#x2F; AI 标签</li><li><strong>相似动态</strong>：按 momentId 查相似帖子</li><li><strong>用户搜索</strong>：按昵称搜索用户</li><li><strong>交互</strong>：点标题看详情、点评论数看评论、点作者看主页</li><li><strong>原始 JSON</strong>：每条数据可展开查看原始响应</li></ul><h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><h3 id="前置条件"><a href="#前置条件" class="headerlink" title="前置条件"></a>前置条件</h3><p>你的浏览器需要支持用户脚本，以下任选其一：</p><table><thead><tr><th>方式</th><th>说明</th></tr></thead><tbody><tr><td>浏览器扩展</td><td>Tampermonkey、Violentmonkey、Userscripts 等</td></tr><tr><td>浏览器自带</td><td>部分浏览器内置用户脚本管理</td></tr></tbody></table><p>本文档不绑定具体扩展，请按你使用的浏览器选择对应方式。</p><h3 id="安装脚本"><a href="#安装脚本" class="headerlink" title="安装脚本"></a>安装脚本</h3><p><strong>方式一：下载安装</strong></p><p>下载本仓库中的脚本文件，用户脚本管理器会自动拦截并弹出安装界面，点「安装」即可。</p><p><strong>方式二：手动新建</strong></p><ol><li>打开你的用户脚本管理器</li><li>新建脚本</li><li>把本仓库脚本文件的内容整段粘贴进去</li><li>保存并启用</li></ol><h3 id="启用"><a href="#启用" class="headerlink" title="启用"></a>启用</h3><p>安装后打开 <a class="link"   href="https://www.kimi.com/" >https://www.kimi.com<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a> 并登录，右下角会出现浮动面板。</p><h2 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h2><table><thead><tr><th>标签</th><th>参数</th><th>说明</th></tr></thead><tbody><tr><td>信息流</td><td>可留空</td><td>浏览社区推荐</td></tr><tr><td>相似动态</td><td>momentId</td><td>查看与某帖子相似的动态</td></tr><tr><td>评论</td><td>momentId</td><td>查看某帖子的评论</td></tr><tr><td>用户搜索</td><td>昵称关键词</td><td>搜索用户</td></tr></tbody></table><h2 id="登录态说明"><a href="#登录态说明" class="headerlink" title="登录态说明"></a>登录态说明</h2><ul><li>脚本使用<strong>使用者自己浏览器</strong>中的 <code>access_token</code></li><li>请求直接发回 <code>www.kimi.com</code>，不经过任何第三方服务器</li><li>脚本<strong>不存储、不记录、不外发</strong> token</li><li>所有请求通过 <code>assertOfficialUrl()</code> 校验，只允许发往 <code>https://www.kimi.com/apiv2/</code></li></ul><h2 id="安全说明"><a href="#安全说明" class="headerlink" title="安全说明"></a>安全说明</h2><ul><li><strong>只读</strong>：不发送任何写操作（不发帖、不评论、不点赞、不删除）</li><li><strong>iframe 隔离</strong>：AI 生成的 HTML 在 <code>sandbox=&quot;allow-scripts&quot;</code> 的 iframe 中渲染，已移除 <code>allow-same-origin</code>，无法访问父页面同源资源</li><li><strong>文本转义</strong>：所有用户可控文本（评论、作者名、简介、话题名等）统一走 <code>esc()</code> 转义</li><li><strong>类型守卫</strong>：<code>esc()</code> 只接受 string &#x2F; number &#x2F; boolean，对象一律返回空串</li><li><strong>referrer 保护</strong>：图片与 iframe 均设置 <code>referrerpolicy=&quot;no-referrer&quot;</code></li></ul><h2 id="常见问题"><a href="#常见问题" class="headerlink" title="常见问题"></a>常见问题</h2><p><strong>Q：加载不出数据？</strong><br>A：请先在 <a class="link"   href="https://www.kimi.com/" >https://www.kimi.com<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a> 登录。如果已登录仍加载不出，大概率是 Kimi 改了登录态存储字段或接口，等更新。</p><p><strong>Q：自动更新不生效？</strong><br>A：部分代码托管平台的 raw 链接会校验 Referer，自动更新可能拿不到。可手动重新下载脚本文件安装。</p><p><strong>Q：点开帖子详情，HTML 预览空白？</strong><br>A：部分 HTML 依赖外部资源或同源 API，在 sandbox iframe 中可能被限制。这是安全隔离的代价，不是 bug。</p><p><strong>Q：会封号吗？</strong><br>A：脚本只调用只读接口，频率与手动浏览相当。但任何第三方工具都存在风险，请自行判断。</p><h2 id="免责声明"><a href="#免责声明" class="headerlink" title="免责声明"></a>免责声明</h2><p>本工具为非官方脚本，与 Moonshot AI 无关。</p><p>仅调用公开的只读接口，不发送任何写操作。登录态使用使用者自己浏览器中的 <code>access_token</code>，请求直接发回 <code>www.kimi.com</code>，不经过任何第三方服务器。</p><p>使用本脚本产生的任何后果由使用者自行承担。</p><h2 id="License"><a href="#License" class="headerlink" title="License"></a>License</h2><p>MIT License</p><p>Copyright (c) 2026 <strong>Ranivye</strong></p><hr><p><strong>项目地址</strong>：<a class="link"   href="https://gitee.com/ranivye/kimi.reading" >https://gitee.com/ranivye/kimi.reading<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><p><strong>原作者</strong>：Ranivye（Gitee：<a class="link"   href="https://gitee.com/ranivye" >@ranivye<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a>）</p>]]></content>
    
    
    <summary type="html">在网页版上浏览 Kimi 社区内容</summary>
    
    
    
    <category term="折腾" scheme="https://blog.goose.cc.cd/categories/%E6%8A%98%E8%85%BE/"/>
    
    
    <category term="文档" scheme="https://blog.goose.cc.cd/tags/%E6%96%87%E6%A1%A3/"/>
    
  </entry>
  
  <entry>
    <title>TimeFreeze</title>
    <link href="https://blog.goose.cc.cd/posts/TimeFreeze/"/>
    <id>https://blog.goose.cc.cd/posts/TimeFreeze/</id>
    <published>2026-09-24T06:16:01.000Z</published>
    <updated>2026-09-24T06:16:01.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="TimeFreeze：无人时自动冻结-Minecraft-服务器的时间与天气"><a href="#TimeFreeze：无人时自动冻结-Minecraft-服务器的时间与天气" class="headerlink" title="TimeFreeze：无人时自动冻结 Minecraft 服务器的时间与天气"></a>TimeFreeze：无人时自动冻结 Minecraft 服务器的时间与天气</h1><blockquote><p>最后一个玩家离开，世界按下暂停键；第一个玩家进入，时间无缝继续。</p></blockquote><p>如果你运营过一个 Minecraft 服务器，一定遇到过这样的烦恼：玩家下线后，服务器里的时间依然流逝、天气依然变化——白天黑夜轮转，暴雨说来就来。等你再次上线，世界早已不是你离开时的模样。TimeFreeze 就是为解决这个问题而生的插件：<strong>无人时冻结 Minecraft 服务器的时间与天气，有玩家进入后自动恢复。</strong></p><h2 id="核心功能"><a href="#核心功能" class="headerlink" title="核心功能"></a>核心功能</h2><p><strong>⏸️ 无人时自动冻结</strong><br>最后一个玩家离开服务器后，插件立即暂停昼夜循环与天气变化——时间不再流逝、天气不再变化，世界就像被按下了暂停键。</p><p><strong>▶️ 有人时自动恢复</strong><br>第一个玩家进入服务器后，昼夜与天气立即恢复正常运转，世界从离开时的状态无缝继续，玩家感受不到任何停顿。</p><p><strong>🔄 卸载自动恢复</strong><br>插件卸载或重载时，可自动将 <code>doDaylightCycle</code> 与 <code>doWeatherCycle</code> 恢复为默认开启状态，避免服务器陷入永久冻结。</p><p><strong>🛡️ 无副作用实现</strong><br>通过切换 GameRule 实现&quot;冻结&#x2F;恢复&quot;，不修改服务器时间数据，完全安全透明。</p><p><strong>🧵 多线程安全</strong><br>Folia 版严格遵循区域化多线程规范，使用 AtomicInteger 计数 + GlobalRegionScheduler 操作全局状态。</p><p><strong>📦 跨版本稳定</strong><br>仅依赖 Bukkit 最核心稳定的 API，支持 1.20.x · 1.21.x · 26.1.x · 26.2.x，长期无需维护。</p><h2 id="版本选择"><a href="#版本选择" class="headerlink" title="版本选择"></a>版本选择</h2><p>TimeFreeze 提供两个版本，对应不同类型的服务端：</p><table><thead><tr><th>版本</th><th>服务端</th><th>支持 MC 版本</th></tr></thead><tbody><tr><td>PaperTimeFreeze</td><td>Paper &#x2F; Purpur &#x2F; Spigot &#x2F; Bukkit 系</td><td>1.20.x · 1.21.x · 26.1.x · 26.2.x</td></tr><tr><td>FoliaTimeFreeze</td><td>Folia</td><td>1.20.x · 1.21.x · 26.1.x · 26.2.x</td></tr></tbody></table><p>两个 jar 均以最低版本 API 编译、字节码为 Java 17，可运行于 Java 17&#x2F;21&#x2F;25 环境。</p><h2 id="安装指南"><a href="#安装指南" class="headerlink" title="安装指南"></a>安装指南</h2><ol><li><strong>下载对应版本</strong>：普通单线程服务端（Paper &#x2F; Purpur &#x2F; Spigot）选择 <strong>PaperTimeFreeze</strong>；Folia 多线程服务端选择 <strong>FoliaTimeFreeze</strong>。</li><li><strong>放入 plugins 目录</strong>：将下载好的 jar 文件放入服务器的 <code>plugins/</code> 目录中。</li><li><strong>启动服务器</strong>：插件会自动生成配置文件 <code>plugins/TimeFreeze/config.yml</code>。按需修改配置后，执行重载命令即可生效，无需重启服务器。</li></ol><p>如需自行编译，环境要求为 JDK 17+ 与 Maven 3.6+：</p><div class="code-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 编译 Paper 版</span></span><br><span class="line"><span class="built_in">cd</span> paper</span><br><span class="line">mvn clean package</span><br><span class="line"><span class="comment"># 产物：paper/target/PaperTimeFreeze-1.0.0.jar</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 编译 Folia 版</span></span><br><span class="line"><span class="built_in">cd</span> folia</span><br><span class="line">mvn clean package</span><br><span class="line"><span class="comment"># 产物：folia/target/FoliaTimeFreeze-1.0.0.jar</span></span><br></pre></td></tr></table></figure></div><h2 id="配置说明"><a href="#配置说明" class="headerlink" title="配置说明"></a>配置说明</h2><p>配置文件 <code>config.yml</code> 仅有四项，简洁明了：</p><div class="code-container" data-rel="Yaml"><figure class="iseeu highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 无人时是否暂停昼夜循环（doDaylightCycle）</span></span><br><span class="line"><span class="attr">pause-daylight:</span> <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 无人时是否暂停天气变化（doWeatherCycle）</span></span><br><span class="line"><span class="attr">pause-weather:</span> <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 插件卸载/重载时是否恢复默认（昼夜、天气恢复运转）</span></span><br><span class="line"><span class="attr">restore-on-disable:</span> <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 是否在控制台输出状态变化日志</span></span><br><span class="line"><span class="attr">log:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure></div><ul><li><code>pause-daylight</code>（默认: true）：无人时是否冻结昼夜循环</li><li><code>pause-weather</code>（默认: true）：无人时是否冻结天气变化</li><li><code>restore-on-disable</code>（默认: true）：插件卸载时是否恢复昼夜&#x2F;天气运转</li><li><code>log</code>（默认: true）：是否在控制台打印状态变化日志</li></ul><h2 id="命令与权限"><a href="#命令与权限" class="headerlink" title="命令与权限"></a>命令与权限</h2><p><strong>Paper 版：</strong></p><table><thead><tr><th>命令</th><th>权限</th><th>说明</th></tr></thead><tbody><tr><td><code>/papertimefreeze</code></td><td><code>papertimefreeze.admin</code></td><td>主命令</td></tr><tr><td><code>/papertimefreeze status</code></td><td><code>papertimefreeze.admin</code></td><td>查看在线人数与昼夜&#x2F;天气状态</td></tr><tr><td><code>/papertimefreeze reload</code></td><td><code>papertimefreeze.admin</code></td><td>重载配置文件</td></tr></tbody></table><p>别名：<code>/ptf</code>（权限默认授予 OP）</p><p><strong>Folia 版：</strong></p><table><thead><tr><th>命令</th><th>权限</th><th>说明</th></tr></thead><tbody><tr><td><code>/foliatimefreeze</code></td><td><code>foliatimefreeze.admin</code></td><td>主命令</td></tr><tr><td><code>/foliatimefreeze status</code></td><td><code>foliatimefreeze.admin</code></td><td>查看在线人数与昼夜&#x2F;天气状态</td></tr><tr><td><code>/foliatimefreeze reload</code></td><td><code>foliatimefreeze.admin</code></td><td>重载配置文件</td></tr></tbody></table><p>别名：<code>/ftf</code>（权限默认授予 OP）</p><h2 id="常见问题"><a href="#常见问题" class="headerlink" title="常见问题"></a>常见问题</h2><p><strong>Q：为什么服务器没人的时候时间会停住？</strong><br>这是插件的核心功能——最后一名玩家离开后自动冻结昼夜循环，有玩家进入即恢复。如果你不希望这样，可以将 <code>pause-daylight</code> 设为 <code>false</code>。</p><p><strong>Q：天气也会被冻结吗？</strong><br>会。<code>pause-weather</code> 开启时，无人期间天气状态不再变化。注意：如果最后一名玩家离开时正在下雨，雨会一直下到有人回来——这是&quot;冻结&quot;而非&quot;停雨&quot;。</p><p><strong>Q：Paper 版和 Folia 版怎么选？</strong><br>看你的服务端类型。普通的 Paper &#x2F; Purpur &#x2F; Spigot 服选 Paper 版；Folia 多线程服选 Folia 版。选错版本会导致插件无法加载。</p><p><strong>Q：支持哪些 Minecraft 版本？</strong><br>1.20.x、1.21.x、26.1.x、26.2.x。两个 jar 均以最低版本 API 编译、字节码为 Java 17，可运行于 Java 17&#x2F;21&#x2F;25 环境。</p><p><strong>Q：修改配置后需要重启服务器吗？</strong><br>不需要，执行 <code>/ptf reload</code>（Paper 版）或 <code>/ftf reload</code>（Folia 版）即可热重载配置。</p><h2 id="关于与支持"><a href="#关于与支持" class="headerlink" title="关于与支持"></a>关于与支持</h2><p>TimeFreeze 使用 GNU General Public License v3.0 开源（Copyright (C) 2026），无任何第三方依赖，单个 jar 即装即用。觉得好用的话，欢迎在 GitHub 点个 Star——你的支持是持续更新的动力。</p><hr><p><strong>网站地址</strong>：<a class="link"   href="https://timefreeze.totalh.net/" >https://timefreeze.totalh.net/<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p>]]></content>
    
    
    <summary type="html">无人时自动冻结 Minecraft 服务器的时间与天气</summary>
    
    
    
    <category term="折腾" scheme="https://blog.goose.cc.cd/categories/%E6%8A%98%E8%85%BE/"/>
    
    
    <category term="文档" scheme="https://blog.goose.cc.cd/tags/%E6%96%87%E6%A1%A3/"/>
    
  </entry>
  
  <entry>
    <title>GooseAI为什么消失了</title>
    <link href="https://blog.goose.cc.cd/posts/why-gooseai-disappear/"/>
    <id>https://blog.goose.cc.cd/posts/why-gooseai-disappear/</id>
    <published>2026-09-24T06:02:51.000Z</published>
    <updated>2026-09-24T06:02:51.000Z</updated>
    
    <content type="html"><![CDATA[<p>和GooseHost融合了呗~~</p><p>在过一阵子GooseHostcoplit就会拥有所有和GooseAI一样的能力啦</p><p>不过我很困惑：</p><p>现在GooseHost塞进了好多：freewebweb、GooseAI、消失很久的鹅帖...</p><p>好臃肿啊，怎么办啊。。</p><blockquote><p>站长求助</p></blockquote>]]></content>
    
    
    <summary type="html">GooseAI悄悄地走了</summary>
    
    
    
    <category term="项目" scheme="https://blog.goose.cc.cd/categories/%E9%A1%B9%E7%9B%AE/"/>
    
    
    <category term="GooseAI" scheme="https://blog.goose.cc.cd/tags/GooseAI/"/>
    
  </entry>
  
  <entry>
    <title>GooseHyperGlassCDN所有出现问题汇总</title>
    <link href="https://blog.goose.cc.cd/posts/hyper-glass-all/"/>
    <id>https://blog.goose.cc.cd/posts/hyper-glass-all/</id>
    <published>2026-09-24T03:26:40.000Z</published>
    <updated>2026-09-24T03:26:40.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="关于GooseHyperGlassCDN-7月22日开始所有出现问题汇总"><a href="#关于GooseHyperGlassCDN-7月22日开始所有出现问题汇总" class="headerlink" title="关于GooseHyperGlassCDN-7月22日开始所有出现问题汇总"></a>关于GooseHyperGlassCDN-7月22日开始所有出现问题汇总</h1><p>按时间线说吧</p><h2 id="最早"><a href="#最早" class="headerlink" title="最早"></a>最早</h2><p>我和blink（叫什么昵称好的1024）在kimi评论区里讨论GooseCode官网的卡片的圆角问题</p><p>我当时用了一个第三方平滑圆角库，当时我就和他争论是不是G2圆角</p><p>不过当时我正在忙着做GooseHyperGlassCDN呢，回复他的时候很敷衍，也没怎么看他kimi主页</p><p>我也没在意</p><h3 id="GooseHyperGlass怎么来的"><a href="#GooseHyperGlass怎么来的" class="headerlink" title="GooseHyperGlass怎么来的"></a>GooseHyperGlass怎么来的</h3><p>我是拿到了一个单文件的液态玻璃HTML（经过构建的），那个HTML里有GitHub仓库地址：<a class="link"   href="https://github.com/martin65536/liquid-glass-webgl" >https://github.com/martin65536/liquid-glass-webgl<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><p>对，所以我当时是从那个仓库拉下来的代码，我当时并不知道martin65536就是blink</p><p>所以我最开始的署名是martin65536</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/753a90b047b426237da49e6e253ae481?ext=png"                      alt="我的第二次提交"                ><figcaption>我的第二次提交</figcaption></figure></p><p>第一次发布时候的官网长什么样看视频就能看见--署名确实有点小，在页面底下</p><p>不过blink当时骂的是我 <code>README</code> 里署名小字</p><blockquote><p>也不知道他和kimi说什么了，出现了这种幻觉</p></blockquote><p>看我那张截图--表格在GitHub渲染出来一点也不小</p><h2 id="许可证"><a href="#许可证" class="headerlink" title="许可证"></a>许可证</h2><p>最搞笑的地方就在这里</p><p>以下是martin65536使用的Apache-2.0许可证：</p><div class="code-container" data-rel="Smali"><figure class="iseeu highlight smali"><table><tr><td class="code"><pre><span class="line">   Apache License</span><br><span class="line">                        Version 2.0, January 2004</span><br><span class="line">                     http://www.apache.org/licenses/</span><br><span class="line"></span><br><span class="line">TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</span><br><span class="line"></span><br><span class="line">1. Definitions.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;License&quot;</span> shall mean the terms<span class="built_in"> and </span>conditions for use, reproduction,</span><br><span class="line">  <span class="built_in"> and </span>distribution as defined by Sections 1 through 9 of this document.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Licensor&quot;</span> shall mean the copyright owner<span class="built_in"> or </span>entity authorized by</span><br><span class="line">   the copyright owner that is granting the License.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Legal Entity&quot;</span> shall mean the union of the acting entity<span class="built_in"> and </span>all</span><br><span class="line">   other entities that control, are controlled by,<span class="built_in"> or </span>are under common</span><br><span class="line">   control with that entity. For the purposes of this definition,</span><br><span class="line">   <span class="string">&quot;control&quot;</span> means (i) the power, direct<span class="built_in"> or </span>indirect, to cause the</span><br><span class="line">   direction<span class="built_in"> or </span>management of such entity, whether by contract<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>   otherwise,<span class="built_in"> or </span>(ii) ownership of fifty percent (50%)<span class="built_in"> or </span>more of the</span><br><span class="line">   outstanding shares,<span class="built_in"> or </span>(iii) beneficial ownership of such entity.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;You&quot;</span> (or <span class="string">&quot;Your&quot;</span>) shall mean an individual<span class="built_in"> or </span>Legal Entity</span><br><span class="line">   exercising permissions granted by this License.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Source&quot;</span> form shall mean the preferred form for making modifications,</span><br><span class="line">   including but<span class="built_in"> not </span>limited to software source code, documentation</span><br><span class="line">   source,<span class="built_in"> and </span>configuration files.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Object&quot;</span> form shall mean any form resulting from mechanical</span><br><span class="line">   transformation<span class="built_in"> or </span>translation of a Source form, including but</span><br><span class="line">  <span class="built_in"> not </span>limited to compiled object code, generated documentation,</span><br><span class="line">  <span class="built_in"> and </span>conversions to other media types.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Work&quot;</span> shall mean the work of authorship, whether in Source<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>   Object form, made available under the License, as indicated by a</span><br><span class="line">   copyright notice that is included in<span class="built_in"> or </span>attached to the work</span><br><span class="line">   (an example is provided in the Appendix below).</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Derivative Works&quot;</span> shall mean any work, whether in Source<span class="built_in"> or </span>Object</span><br><span class="line">   form, that is based on (or derived from) the Work<span class="built_in"> and </span>for which the</span><br><span class="line">   editorial revisions, annotations, elaborations,<span class="built_in"> or </span>other modifications</span><br><span class="line">   represent, as a whole, an original work of authorship. For the purposes</span><br><span class="line">   of this License, Derivative Works shall<span class="built_in"> not </span>include works that remain</span><br><span class="line">   separable from,<span class="built_in"> or </span>merely link (or bind by name) to the interfaces of,</span><br><span class="line">   the Work<span class="built_in"> and </span>Derivative Works thereof.</span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Contribution&quot;</span> shall mean any work of authorship, including</span><br><span class="line">   the original version of the Work<span class="built_in"> and </span>any modifications<span class="built_in"> or </span>additions</span><br><span class="line">   to that Work<span class="built_in"> or </span>Derivative Works thereof, that is intentionally</span><br><span class="line">   submitted to Licensor for inclusion in the Work by the copyright owner</span><br><span class="line">  <span class="built_in"> or </span>by an individual<span class="built_in"> or </span>Legal Entity authorized to submit on behalf of</span><br><span class="line">   the copyright owner. For the purposes of this definition, <span class="string">&quot;submitted&quot;</span></span><br><span class="line">   means any form of electronic, verbal,<span class="built_in"> or </span>written communication sent</span><br><span class="line">   to the Licensor<span class="built_in"> or </span>its representatives, including but<span class="built_in"> not </span>limited to</span><br><span class="line">   communication on electronic mailing lists, source code control<span class="keyword"> system</span>s,</span><br><span class="line">  <span class="built_in"> and </span>issue tracking<span class="keyword"> system</span>s that are managed by,<span class="built_in"> or </span>on behalf of, the</span><br><span class="line">   Licensor for the purpose of discussing<span class="built_in"> and </span>improving the Work, but</span><br><span class="line">   excluding communication that is conspicuously marked<span class="built_in"> or </span>otherwise</span><br><span class="line">   designated in writing by the copyright owner as <span class="string">&quot;Not a Contribution.&quot;</span></span><br><span class="line"></span><br><span class="line">   <span class="string">&quot;Contributor&quot;</span> shall mean Licensor<span class="built_in"> and </span>any individual<span class="built_in"> or </span>Legal Entity</span><br><span class="line">   on behalf of whom a Contribution has been received by Licensor<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span>   subsequently incorporated within the Work.</span><br><span class="line"></span><br><span class="line">2. Grant of Copyright License. Subject to the terms<span class="built_in"> and </span>conditions of</span><br><span class="line">   this License, each Contributor hereby grants to You a perpetual,</span><br><span class="line">   worldwide, non-exclusive, no-charge, royalty-free, irrevocable</span><br><span class="line">   copyright license to reproduce, prepare Derivative Works of,</span><br><span class="line">  <span class="keyword"> public</span>ly display,<span class="keyword"> public</span>ly perform, sublicense,<span class="built_in"> and </span>distribute the</span><br><span class="line">   Work<span class="built_in"> and </span>such Derivative Works in Source<span class="built_in"> or </span>Object form.</span><br><span class="line"></span><br><span class="line">3. Grant of Patent License. Subject to the terms<span class="built_in"> and </span>conditions of</span><br><span class="line">   this License, each Contributor hereby grants to You a perpetual,</span><br><span class="line">   worldwide, non-exclusive, no-charge, royalty-free, irrevocable</span><br><span class="line">   (except as stated in this section) patent license to make, have made,</span><br><span class="line">   use, offer to sell, sell, import,<span class="built_in"> and </span>otherwise transfer the Work,</span><br><span class="line">   where such license applies only to those patent claims licensable</span><br><span class="line">   by such Contributor that are necessarily infringed by their</span><br><span class="line">   Contribution(s) alone<span class="built_in"> or </span>by combination of their Contribution(s)</span><br><span class="line">   with the Work to which such Contribution(s) was submitted. If You</span><br><span class="line">   institute patent litigation against any entity (including a</span><br><span class="line">   cross-claim<span class="built_in"> or </span>counterclaim in a lawsuit) alleging that the Work</span><br><span class="line">  <span class="built_in"> or </span>a Contribution incorporated within the Work constitutes direct</span><br><span class="line">  <span class="built_in"> or </span>contributory patent infringement, then any patent licenses</span><br><span class="line">   granted to You under this License for that Work shall terminate</span><br><span class="line">   as of the date such litigation is filed.</span><br><span class="line"></span><br><span class="line">4. Redistribution. You may reproduce<span class="built_in"> and </span>distribute copies of the</span><br><span class="line">   Work<span class="built_in"> or </span>Derivative Works thereof in any medium, with<span class="built_in"> or </span>without</span><br><span class="line">   modifications,<span class="built_in"> and </span>in Source<span class="built_in"> or </span>Object form, provided that You</span><br><span class="line">   meet the following conditions:</span><br><span class="line"></span><br><span class="line">   (a) You must give any other recipients of the Work<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>       Derivative Works a copy of this <span class="class">License;</span><span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span></span><br><span class="line">   (b) You must cause any modified files to carry prominent notices</span><br><span class="line">       stating that You changed the files;<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span></span><br><span class="line">   (c) You must retain, in the Source form of any Derivative Works</span><br><span class="line">       that You distribute, all copyright, patent, trademark,<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span>       attribution notices from the Source form of the Work,</span><br><span class="line">       excluding those notices that do<span class="built_in"> not </span>pertain to any part of</span><br><span class="line">       the Derivative Works;<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span></span><br><span class="line">   (d) If the Work includes a <span class="string">&quot;NOTICE&quot;</span> text file as part of its</span><br><span class="line">       distribution, then any Derivative Works that You distribute must</span><br><span class="line">       include a readable copy of the attribution notices contained</span><br><span class="line">       within such NOTICE file, excluding those notices that do<span class="built_in"> not</span></span><br><span class="line"><span class="built_in"></span>       pertain to any part of the Derivative Works, in at least one</span><br><span class="line">       of the following places: within a NOTICE text file distributed</span><br><span class="line">       as part of the Derivative Works; within the Source form<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>       documentation,<span class="built_in"> if </span>provided along with the Derivative Works; or,</span><br><span class="line">       within a display generated by the Derivative Works,<span class="built_in"> if </span>and</span><br><span class="line">       wherever such third-party notices normally appear. The contents</span><br><span class="line">       of the NOTICE file are for informational purposes only<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span>       do<span class="built_in"> not </span>modify the License. You may<span class="built_in"> add </span>Your own attribution</span><br><span class="line">       notices within Derivative Works that You distribute, alongside</span><br><span class="line">      <span class="built_in"> or </span>as an addendum to the NOTICE text from the Work, provided</span><br><span class="line">       that such additional attribution notices cannot be construed</span><br><span class="line">       as modifying the License.</span><br><span class="line"></span><br><span class="line">   You may<span class="built_in"> add </span>Your own copyright statement to Your modifications<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span>   may provide additional<span class="built_in"> or </span>different license terms<span class="built_in"> and </span>conditions</span><br><span class="line">   for use, reproduction,<span class="built_in"> or </span>distribution of Your modifications,<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>   for any such Derivative Works as a whole, provided Your use,</span><br><span class="line">   reproduction,<span class="built_in"> and </span>distribution of the Work otherwise complies with</span><br><span class="line">   the conditions stated in this License.</span><br><span class="line"></span><br><span class="line">5. Submission of Contributions. Unless You explicitly state otherwise,</span><br><span class="line">   any Contribution intentionally submitted for inclusion in the Work</span><br><span class="line">   by You to the Licensor shall be under the terms<span class="built_in"> and </span>conditions of</span><br><span class="line">   this License, without any additional terms<span class="built_in"> or </span>conditions.</span><br><span class="line">   Notwithstanding the above, nothing herein shall supersede<span class="built_in"> or </span>modify</span><br><span class="line">   the terms of any separate license agreement you may have executed</span><br><span class="line">   with Licensor regarding such Contributions.</span><br><span class="line"></span><br><span class="line">6. Trademarks. This License does<span class="built_in"> not </span>grant permission to use the trade</span><br><span class="line">   names, trademarks, service marks,<span class="built_in"> or </span>product names of the Licensor,</span><br><span class="line">   except as required for reasonable<span class="built_in"> and </span>customary use in describing the</span><br><span class="line">   origin of the Work<span class="built_in"> and </span>reproducing the content of the NOTICE file.</span><br><span class="line"></span><br><span class="line">7. Disclaimer of Warranty. Unless required by applicable law<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>   agreed to in writing, Licensor provides the Work (and each</span><br><span class="line">   Contributor provides its Contributions) on an <span class="string">&quot;AS IS&quot;</span> BASIS,</span><br><span class="line">   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<span class="built_in"> or</span></span><br><span class="line"><span class="built_in"></span>   implied, including, without limitation, any warranties<span class="built_in"> or </span>conditions</span><br><span class="line">   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,<span class="built_in"> or </span>FITNESS FOR A</span><br><span class="line">   PARTICULAR PURPOSE. You are solely responsible for determining the</span><br><span class="line">   appropriateness of using<span class="built_in"> or </span>redistributing the Work<span class="built_in"> and </span>assume any</span><br><span class="line">   risks associated with Your exercise of permissions under this License.</span><br><span class="line"></span><br><span class="line">8. Limitation of Liability. In no event<span class="built_in"> and </span>under no legal theory,</span><br><span class="line">   whether in tort (including negligence), contract,<span class="built_in"> or </span>otherwise,</span><br><span class="line">   unless required by applicable law (such as deliberate<span class="built_in"> and </span>grossly</span><br><span class="line">   negligent acts)<span class="built_in"> or </span>agreed to in writing, shall any Contributor be</span><br><span class="line">   liable to You for damages, including any direct, indirect, special,</span><br><span class="line">   incidental,<span class="built_in"> or </span>consequential damages of any character arising as a</span><br><span class="line">   result of this License<span class="built_in"> or </span>out of the use<span class="built_in"> or </span>inability to use the</span><br><span class="line">   Work (including but<span class="built_in"> not </span>limited to damages for loss of goodwill,</span><br><span class="line">   work stoppage, computer failure<span class="built_in"> or </span>malfunction,<span class="built_in"> or </span>any<span class="built_in"> and </span>all</span><br><span class="line">   other commercial damages<span class="built_in"> or </span>losses), even<span class="built_in"> if </span>such Contributor</span><br><span class="line">   has been advised of the possibility of such damages.</span><br><span class="line"></span><br><span class="line">9. Accepting Warranty<span class="built_in"> or </span>Additional Liability. While redistributing</span><br><span class="line">   the Work<span class="built_in"> or </span>Derivative Works thereof, You may choose to offer,</span><br><span class="line">  <span class="built_in"> and </span>charge a fee for, acceptance of support, warranty, indemnity,</span><br><span class="line">  <span class="built_in"> or </span>other liability obligations<span class="built_in"> and/or </span>rights consistent with this</span><br><span class="line">   License. However, in accepting such obligations, You may act only</span><br><span class="line">   on Your own behalf<span class="built_in"> and </span>on Your sole responsibility,<span class="built_in"> not </span>on behalf</span><br><span class="line">   of any other Contributor,<span class="built_in"> and </span>only<span class="built_in"> if </span>You agree to indemnify,</span><br><span class="line">   defend,<span class="built_in"> and </span>hold each Contributor harmless for any liability</span><br><span class="line">   incurred by,<span class="built_in"> or </span>claims asserted against, such Contributor by reason</span><br><span class="line">   of your accepting any such warranty<span class="built_in"> or </span>additional liability.</span><br><span class="line"></span><br><span class="line">END OF TERMS AND CONDITIONS</span><br><span class="line"></span><br><span class="line">APPENDIX: How to apply the Apache License to your work.</span><br><span class="line"></span><br><span class="line">   To apply the Apache License to your work, attach the following</span><br><span class="line">   boilerplate notice, with the fields enclosed by brackets <span class="string">&quot;[]&quot;</span></span><br><span class="line">   replaced with your own identifying information. (Don&#x27;t include</span><br><span class="line">   the brackets!)  The text should be enclosed in the appropriate</span><br><span class="line">   comment syntax for the file format. We also recommend that a</span><br><span class="line">   file<span class="built_in"> or </span>class name<span class="built_in"> and </span>description of purpose be included on the</span><br><span class="line">   same <span class="string">&quot;printed page&quot;</span> as the copyright notice for easier</span><br><span class="line">   identification within third-party archives.</span><br><span class="line"></span><br><span class="line">Copyright 2025 Liquid Glass WebGL Port Contributors</span><br><span class="line"></span><br><span class="line">Licensed under the Apache License, Version 2.0 (the <span class="string">&quot;License&quot;</span>);</span><br><span class="line">you may<span class="built_in"> not </span>use this file except in compliance with the License.</span><br><span class="line">You may obtain a copy of the License at</span><br><span class="line"></span><br><span class="line">    http://www.apache.org/licenses/LICENSE-2.0</span><br><span class="line"></span><br><span class="line">Unless required by applicable law<span class="built_in"> or </span>agreed to in writing, software</span><br><span class="line">distributed under the License is distributed on an <span class="string">&quot;AS IS&quot;</span> BASIS,</span><br><span class="line">WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<span class="built_in"> or </span>implied.</span><br><span class="line">See the License for the specific language governing permissions<span class="built_in"> and</span></span><br><span class="line"><span class="built_in"></span>limitations under the License.</span><br></pre></td></tr></table></figure></div><p>翻译成中文</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">Apache 许可证</span><br><span class="line"><span class="code">                           2.0 版，2004 年 1 月</span></span><br><span class="line"><span class="code">                        http://www.apache.org/licenses/</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">                   使用、复制和分发的条款与条件</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="bullet">   1.</span> 定义。</span><br><span class="line"></span><br><span class="line"><span class="code">      “本许可证”指本文档第 1 至第 9 节所定义的使用、复制和分发的条款与条件。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “许可方”指授予本许可证的版权所有者或经版权所有者授权的实体。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “法律实体”指作为行为实体以及控制该实体、受该实体控制或与该实体处于共同控制之下的所有其他实体的联合体。就本定义而言，“控制”指 (i) 直接或间接通过合同或其他方式指导或管理该实体的权力，或 (ii) 拥有该实体百分之五十（50%）或以上已发行股份，或 (iii) 对该实体的受益所有权。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “您”（或“您的”）指行使本许可证所授予许可的个人或法律实体。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “源代码”形式指进行修改的首选形式，包括但不限于软件源代码、文档源文件和配置文件。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “目标代码”形式指源代码形式经机械转换或翻译后产生的任何形式，包括但不限于编译后的目标代码、生成的文档以及转换为其他媒体类型的形式。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “作品”指根据本许可证提供的、以源代码或目标代码形式存在的著作权作品，如作品中包含或附有的版权声明所示（附录中提供了一个示例）。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “衍生作品”指基于（或派生自）作品且其编辑修订、注释、扩展或其他修改作为一个整体构成原创作者作品的任何源代码或目标代码形式作品。就本许可证而言，衍生作品不包括与作品及其衍生作品的接口保持可分离，或仅链接（或按名称绑定）到这些接口的作品。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “贡献”指任何著作权作品，包括作品的原始版本以及对该作品或其衍生作品的任何修改或添加，由版权所有者或经版权所有者授权代表其提交的个人或法律实体有意提交给许可方以纳入作品。就本定义而言，“提交”指向许可方或其代表发送的任何形式的电子、口头或书面通信，包括但不限于由许可方管理或代表许可方管理的电子邮件列表、源代码控制系统和问题跟踪系统上的通信，目的是讨论和改进作品，但不包括版权所有者以显著方式标记或以书面形式指定为“非贡献”的通信。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      “贡献者”指许可方以及许可方已收到其贡献并随后纳入作品的任何个人或法律实体。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="bullet">   2.</span> 版权许可的授予。根据本许可证条款和条件，各贡献者在此授予您永久、全球范围、非排他、免费、免版税、不可撤销的版权许可，允许您复制、准备衍生作品、公开展示、公开表演、再许可和分发作品及该等衍生作品（无论源代码或目标代码形式）。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   3.</span> 专利许可的授予。根据本许可证条款和条件，各贡献者在此授予您永久、全球范围、非排他、免费、免版税、不可撤销（本节规定除外）的专利许可，允许您制造、委托制造、使用、要约销售、销售、进口及以其他方式转让作品；该许可仅适用于该贡献者可许可的、且仅因其贡献或该贡献与提交该贡献的作品结合而必然会被侵犯的专利权利要求。如果您对任何实体提起专利诉讼（包括诉讼中的交叉请求或反诉），指控作品或纳入作品的贡献构成直接或共同专利侵权，则本许可证下授予您的针对该作品的任何专利许可将自该诉讼提起之日起终止。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   4.</span> 再分发。您可以在任何介质中复制和分发作品或其衍生作品的副本，无论是否经过修改，也无论以源代码或目标代码形式，但前提是您满足以下条件：</span><br><span class="line"></span><br><span class="line"><span class="code">      (a) 您必须向作品或衍生作品的任何其他接收者提供本许可证副本；以及</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      (b) 您必须使任何修改过的文件带有醒目声明，说明您更改了这些文件；以及</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      (c) 您必须在您分发的任何衍生作品的源代码形式中保留作品源代码形式中的所有版权、专利、商标和署名声明，但不包括与衍生作品任何部分无关的声明；以及</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      (d) 如果作品在其分发中包含“NOTICE”文本文件，则您分发的任何衍生作品必须在至少以下位置之一包含该 NOTICE 文件中所含署名声明的可读副本，但不包括与衍生作品任何部分无关的声明：作为衍生作品一部分分发的 NOTICE 文本文件内；随衍生作品提供的源代码形式或文档内；或者，在衍生作品生成的显示中（如果且在此类第三方通知通常出现的位置）。NOTICE 文件内容仅供参考，不修改本许可证。您可以在您分发的衍生作品中添加您自己的署名声明，与作品的 NOTICE 文本并列或作为其附录，但此类附加署名声明不得被解释为修改本许可证。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="code">      您可以向您的修改添加您自己的版权声明，并可以为您修改内容的使用、复制或分发，或为任何此类衍生作品整体，提供附加或不同的许可条款和条件，但前提是您对作品的使用、复制和分发以其他方式符合本许可证所述条件。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line"><span class="bullet">   5.</span> 贡献的提交。除非您明确声明，否则您向许可方有意提交以纳入作品的任何贡献，均应受本许可证条款和条件约束，不附加任何额外条款或条件。尽管有上述规定，本协议不取代或修改您可能与许可方就此类贡献签署的任何单独许可协议。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   6.</span> 商标。本许可证不授予使用许可方商号、商标、服务标记或产品名称的许可，除非为描述作品来源和复制 NOTICE 文件内容而进行合理和习惯性使用所需。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   7.</span> 保证免责声明。除非适用法律要求或书面同意，许可方按“原样”提供作品（且每个贡献者按“原样”提供其贡献），不提供任何明示或默示的保证或条件，包括但不限于所有权、不侵权、适销性或特定用途适用性的任何保证或条件。您全权负责确定使用或再分发作品的适当性，并承担与您行使本许可证下许可相关的任何风险。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   8.</span> 责任限制。在任何情况下且在任何法律理论下，无论是侵权（包括过失）、合同还是其他，除非适用法律要求（如故意和重大过失行为）或书面同意，任何贡献者均不对您承担任何损害责任，包括因本许可证或使用或无法使用作品而产生的任何直接、间接、特殊、附带或后果性损害（包括但不限于商誉损失、停工、计算机故障或失灵，或任何及所有其他商业损害或损失），即使该贡献者已被告知此类损害的可能性。</span><br><span class="line"></span><br><span class="line"><span class="bullet">   9.</span> 接受保证或附加责任。在再分发作品或其衍生作品时，您可以选择提供并收取费用，以接受支持、保证、赔偿或其他责任义务和/或符合本许可证的权利。但是，在接受此类义务时，您只能代表您自己并承担全部责任，而不能代表任何其他贡献者，并且只有在您同意赔偿、辩护并使每个贡献者免受因您接受任何此类保证或附加责任而由该贡献者承担的责任或针对该贡献者提出的索赔时，方可如此。</span><br><span class="line"></span><br><span class="line">   条款与条件结束</span><br><span class="line"></span><br><span class="line">   附录：如何将 Apache 许可证应用于您的作品。</span><br><span class="line"></span><br><span class="line"><span class="code">      要将 Apache 许可证应用于您的作品，请附上以下样板声明，将方括号“[]”括起的字段替换为您自己的识别信息。（不要包含方括号！）文本应包含在适合文件格式的注释语法中。我们还建议在版权声明所在的同一“打印页面”上包含文件或类名及用途说明，以便在第三方档案中更容易识别。</span></span><br><span class="line"><span class="code"></span></span><br><span class="line">   版权所有 2025 Liquid Glass WebGL 移植贡献者</span><br><span class="line"></span><br><span class="line">   根据 Apache 许可证 2.0 版（“本许可证”）许可；</span><br><span class="line">   除非遵守本许可证，否则您不得使用此文件。</span><br><span class="line">   您可以在以下网址获取本许可证副本：</span><br><span class="line"></span><br><span class="line"><span class="code">       http://www.apache.org/licenses/LICENSE-2.0</span></span><br><span class="line"><span class="code"></span></span><br><span class="line">   除非适用法律要求或书面同意，根据本许可证分发的软件</span><br><span class="line">   按“原样”分发，不提供任何明示或默示的保证或条件。</span><br><span class="line">   请参阅本许可证了解具体的管理权限和限制。</span><br></pre></td></tr></table></figure></div><p>说白了，既然使用了此许可证，就意味着你的代码是可以二次开发的</p><p>并且根据许可证第6条：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="bullet">6.</span> 商标。本许可证不授予使用许可方商号、商标、服务标记或产品名称的许可，除非为描述作品来源和复制 NOTICE 文件内容而进行合理和习惯性使用所需。</span><br></pre></td></tr></table></figure></div><p>我甚至不能用他原来的名字命名，而他疯狂指出我命名为Goose是不对的（也是手机连接大脑，豆包代替思考好吧）</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/fbdae2739a95edef7e1df2b435ec0b18?ext=jpg"                                     ></p><h2 id="狗急乱咬"><a href="#狗急乱咬" class="headerlink" title="狗急乱咬"></a>狗急乱咬</h2><p>不止我，还有其他人也拿他的代码二次开发了，他的回应就是一顿骂，挂起来，说他抄袭</p><p>不是--你不让用你开源干屁！！！</p><p>GitHub是你网盘吗？？！！</p><h2 id="GooseHyperGlass到底是啥"><a href="#GooseHyperGlass到底是啥" class="headerlink" title="GooseHyperGlass到底是啥"></a>GooseHyperGlass到底是啥</h2><p>有很多人不知道，这是一个UI组件库，CDN引用，普通HTML也能拥有液态玻璃</p><p>和blink的区别就是他是demo页</p><h2 id="blink偷数据"><a href="#blink偷数据" class="headerlink" title="blink偷数据"></a>blink偷数据</h2><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.ezv.cc/pan/v/e99895533c59113bbeb55e0badc167b9?ext=jpg"                      alt="偷数据证据"                ><figcaption>偷数据证据</figcaption></figure></p><p>这事我不便多说，看图片吧。。。</p><p>想看更多关于此人的乐子的看这里：</p><p><a href="https://blog.goose.cc.cd/post/hyper-glass-hahaha">https://blog.goose.cc.cd/post/hyper-glass-hahaha</a></p>]]></content>
    
    
    <summary type="html">关于GooseHyperGlassCDN-7月22日开始所有出现问题汇总</summary>
    
    
    
    <category term="项目" scheme="https://blog.goose.cc.cd/categories/%E9%A1%B9%E7%9B%AE/"/>
    
    
    <category term="GooseHyperGlass" scheme="https://blog.goose.cc.cd/tags/GooseHyperGlass/"/>
    
  </entry>
  
  <entry>
    <title>九一八事变95周年</title>
    <link href="https://blog.goose.cc.cd/posts/918-95/"/>
    <id>https://blog.goose.cc.cd/posts/918-95/</id>
    <published>2026-09-23T11:11:19.000Z</published>
    <updated>2026-09-23T11:11:19.000Z</updated>
    
    <content type="html"><![CDATA[<p>今年是九一八事变爆发95周年。作为一个在沈阳长大的人，我想写的不只是一篇历史回顾，更是一份从这片土地上生长出来的记忆。</p><h2 id="一、一个沈阳人的九月十八日"><a href="#一、一个沈阳人的九月十八日" class="headerlink" title="一、一个沈阳人的九月十八日"></a>一、一个沈阳人的九月十八日</h2><p>每年到了这一天，沈阳的气氛是不一样的。</p><p>9月18日早，沈阳地铁所有公益广告消失，“勿忘国耻，振兴中华”始终定格。</p><p>沈阳是九一八事变的发生地，国难肇始于此。我小时候在九一八历史博物馆当志愿讲解员，每次都带着游客走进地下，带着大家回顾那段历史，看我们祖辈抵御外敌。</p><blockquote><p>上初中之后就没再去了...</p></blockquote><p>当然每年9月18日九点18分的警笛会在沈阳全城回响，每次我的心绪都会回到那里...</p><h2 id="二、从柳条湖到北大营：历史从未走远"><a href="#二、从柳条湖到北大营：历史从未走远" class="headerlink" title="二、从柳条湖到北大营：历史从未走远"></a>二、从柳条湖到北大营：历史从未走远</h2><p>九一八事变到底发生在沈阳的哪里。答案就在沈阳北郊的柳条湖。</p><p>1931年9月18日22时20分许，日本关东军自行炸毁沈阳柳条湖附近的南满铁路路轨，反诬中国军队所为，随即炮轰东北军驻地北大营。沈阳“九·一八”历史博物馆就建在柳条湖事件事发地的原址附近。</p><p>这些地名——柳条湖、北大营、残历碑——对沈阳人来说不是教科书上的名词，而是日常经过的街巷、散步路过的公园。历史在这里不是被讲述的，而是可以被触摸的。</p><h2 id="三、95年后的今天"><a href="#三、95年后的今天" class="headerlink" title="三、95年后的今天"></a>三、95年后的今天</h2><p>2026年的世界，和1931年完全不同。全球化的链条把各国绑在一起，战争的形态也变了，经济战、科技战、信息战，没有硝烟但一样激烈。</p><p>但底层逻辑没变：实力决定话语权，团结决定抗压能力，清醒决定能不能在关键时刻做出正确判断。</p><p>所以每年的警报声，与其说是纪念，不如说是提醒。提醒我们，95年前那个夜晚发生的事，不是偶然，也不是只属于过去。</p><h2 id="结语"><a href="#结语" class="headerlink" title="结语"></a>结语</h2><p>记住九一八，不是为了让后人活在悲情里，也不是为了延续仇恨。</p><p>是为了让每一代人自己回答一个问题：如果同样的情况再来一次，我们能不能不再重蹈覆辙。</p><p>这个问题的答案，不在课本里，在每一代人自己的行动里。</p>]]></content>
    
    
    <summary type="html">今年是九一八事变爆发95周年。</summary>
    
    
    
    <category term="随笔" scheme="https://blog.goose.cc.cd/categories/%E9%9A%8F%E7%AC%94/"/>
    
    
    <category term="历史" scheme="https://blog.goose.cc.cd/tags/%E5%8E%86%E5%8F%B2/"/>
    
  </entry>
  
  <entry>
    <title>GooseHost自托管指南</title>
    <link href="https://blog.goose.cc.cd/posts/goosehost-deploy-yourself/"/>
    <id>https://blog.goose.cc.cd/posts/goosehost-deploy-yourself/</id>
    <published>2026-08-23T14:00:01.000Z</published>
    <updated>2026-08-23T14:00:01.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="GooseHost-自托管教程"><a href="#GooseHost-自托管教程" class="headerlink" title="GooseHost 自托管教程"></a>GooseHost 自托管教程</h1><blockquote><p>作者：Minecraft_goose</p></blockquote><p>教程很长，耐心看完~</p><p>如果喜欢GooseHost可以点个star~</p><p>本教程理论上手机即可操作完成，不同型号略有差异</p><p>在自托管过程中我会以<code>GooseHost</code>这个名字来方便表述，大家在建造的过程中可以换成自己的名字，自己的域名。</p><h2 id="No-1-——-准备cloudflare和SUPABASE账号"><a href="#No-1-——-准备cloudflare和SUPABASE账号" class="headerlink" title="No.1 —— 准备cloudflare和SUPABASE账号"></a>No.1 —— 准备cloudflare和SUPABASE账号</h2><p>分别前往<a class="link"   href="http://dash.cloudflare.com/" >cloudflare<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a>和<a class="link"   href="https://supabase.com/dashboard/sign-up" >SUPABASE<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a>注册账号</p><h2 id="No-2-——-在SUPABASE中建立GooseHost的储存库"><a href="#No-2-——-在SUPABASE中建立GooseHost的储存库" class="headerlink" title="No.2 —— 在SUPABASE中建立GooseHost的储存库"></a>No.2 —— 在SUPABASE中建立GooseHost的储存库</h2><h3 id="创建一个SUPABASE项目"><a href="#创建一个SUPABASE项目" class="headerlink" title="创建一个SUPABASE项目"></a>创建一个SUPABASE项目</h3><p>注册后根据SUPABASE引导创建组织</p><figure class="image-caption"><img  width="948" height="581" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/e36e48d6-c564-4162-ba16-2e7f2fb634ce"                                      ><figcaption>image</figcaption></figure><p>设置强密码</p><figure class="image-caption"><img  width="673" height="118" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/e5274bd7-7616-4aae-a28b-909b3bb27ba4"                                      ><figcaption>image</figcaption></figure><p>进入主界面</p><figure class="image-caption"><img  width="945" height="577" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/1eb22136-9edc-4255-967b-a7894792e7e9"                                      ><figcaption>image</figcaption></figure><p>点击左侧第三个图标进入<code>SQL Editor</code></p><figure class="image-caption"><img  width="948" height="579" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/3a20cb55-610e-4141-a439-96955f86a857"                                      ><figcaption>image</figcaption></figure><p>执行以下SQL</p><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">insert into</span> storage.buckets (id, name, public) <span class="keyword">values</span> (<span class="string">&#x27;sites&#x27;</span>, <span class="string">&#x27;sites&#x27;</span>, <span class="literal">true</span>) <span class="keyword">on</span> conflict (id) do nothing;</span><br><span class="line"><span class="keyword">insert into</span> storage.buckets (id, name, public) <span class="keyword">values</span> (<span class="string">&#x27;md&#x27;</span>, <span class="string">&#x27;md&#x27;</span>, <span class="literal">true</span>) <span class="keyword">on</span> conflict (id) do nothing;</span><br><span class="line"><span class="keyword">insert into</span> storage.buckets (id, name, public) <span class="keyword">values</span> (<span class="string">&#x27;projects&#x27;</span>, <span class="string">&#x27;projects&#x27;</span>, <span class="literal">true</span>) <span class="keyword">on</span> conflict (id) do nothing;</span><br><span class="line"><span class="keyword">insert into</span> storage.buckets (id, name, public) <span class="keyword">values</span> (<span class="string">&#x27;admin&#x27;</span>, <span class="string">&#x27;admin&#x27;</span>, <span class="literal">false</span>) <span class="keyword">on</span> conflict (id) do nothing;</span><br></pre></td></tr></table></figure></div><blockquote><p>创建4个桶，前三个负责储存，第四个是放<code>email-map.json</code>的</p></blockquote><p>继续执行</p><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create table</span> if <span class="keyword">not</span> <span class="keyword">exists</span> public.gh_site (</span><br><span class="line">    id uuid <span class="keyword">primary key</span> <span class="keyword">default</span> gen_random_uuid(),</span><br><span class="line">    name text <span class="keyword">not null</span> <span class="keyword">unique</span>,</span><br><span class="line">    type text <span class="keyword">not null</span> <span class="keyword">check</span> (type <span class="keyword">in</span> (<span class="string">&#x27;html&#x27;</span>, <span class="string">&#x27;md&#x27;</span>, <span class="string">&#x27;project&#x27;</span>)),</span><br><span class="line">    owner_id uuid <span class="keyword">not null</span>,</span><br><span class="line">    ip_address text,</span><br><span class="line">    visit_count <span class="type">bigint</span> <span class="keyword">default</span> <span class="number">0</span>,</span><br><span class="line">    macos_submit_id text,</span><br><span class="line">    created_at timestamptz <span class="keyword">default</span> now(),</span><br><span class="line">    updated_at timestamptz <span class="keyword">default</span> now()</span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"><span class="keyword">create</span> index if <span class="keyword">not</span> <span class="keyword">exists</span> idx_gh_site_owner_id <span class="keyword">on</span> public.gh_site(owner_id);</span><br><span class="line"><span class="keyword">create</span> index if <span class="keyword">not</span> <span class="keyword">exists</span> idx_gh_site_name <span class="keyword">on</span> public.gh_site(name);</span><br></pre></td></tr></table></figure></div><figure class="image-caption"><img  width="387" height="246" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/591673f1-b8e9-40fa-9a84-67ba879dca92"                                      ><figcaption>image</figcaption></figure><p>点绿色按钮，以后都点绿色的</p><blockquote><p>站点主表，名称<code>gh_site</code>，可改，但是后面的话就得小心了。</p></blockquote><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create table</span> if <span class="keyword">not</span> <span class="keyword">exists</span> public.gh_announcement (</span><br><span class="line">    id uuid <span class="keyword">primary key</span> <span class="keyword">default</span> gen_random_uuid(),</span><br><span class="line">    content text <span class="keyword">not null</span>,</span><br><span class="line">    is_active <span class="type">boolean</span> <span class="keyword">default</span> <span class="literal">false</span>,</span><br><span class="line">    created_at timestamptz <span class="keyword">default</span> now()</span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"><span class="keyword">create</span> index if <span class="keyword">not</span> <span class="keyword">exists</span> idx_gh_announcement_active <span class="keyword">on</span> public.gh_announcement(is_active);</span><br></pre></td></tr></table></figure></div><blockquote><p><code>gh_announcement</code>--全局公告</p></blockquote><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create table</span> if <span class="keyword">not</span> <span class="keyword">exists</span> public.system_status (</span><br><span class="line">    id <span class="type">int</span> <span class="keyword">primary key</span> <span class="keyword">default</span> <span class="number">1</span> <span class="keyword">check</span> (id <span class="operator">=</span> <span class="number">1</span>),</span><br><span class="line">    maintenance_mode <span class="type">boolean</span> <span class="keyword">default</span> <span class="literal">false</span>,</span><br><span class="line">    maintenance_message text,</span><br><span class="line">    services jsonb <span class="keyword">default</span> <span class="string">&#x27;&#123;&#125;&#x27;</span>::jsonb,</span><br><span class="line">    updated_at timestamptz <span class="keyword">default</span> now(),</span><br><span class="line">    updated_by text</span><br><span class="line">);</span><br></pre></td></tr></table></figure></div><blockquote><p>系统状态表</p></blockquote><hr><h4 id="get-sites-paginated"><a href="#get-sites-paginated" class="headerlink" title="get_sites_paginated"></a><code>get_sites_paginated</code></h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create</span> <span class="keyword">or</span> replace <span class="keyword">function</span> public.get_sites_paginated(</span><br><span class="line">    p_limit <span class="type">int</span>,</span><br><span class="line">    p_offset <span class="type">int</span>,</span><br><span class="line">    p_order_by text <span class="keyword">default</span> <span class="string">&#x27;updated_at&#x27;</span>,</span><br><span class="line">    p_order_dir text <span class="keyword">default</span> <span class="string">&#x27;DESC&#x27;</span></span><br><span class="line">)</span><br><span class="line"><span class="keyword">returns</span> <span class="keyword">table</span>(</span><br><span class="line">    id uuid,</span><br><span class="line">    name text,</span><br><span class="line">    owner_id uuid,</span><br><span class="line">    ip_address text,</span><br><span class="line">    created_at timestamptz,</span><br><span class="line">    updated_at timestamptz,</span><br><span class="line">    total_count <span class="type">bigint</span></span><br><span class="line">) <span class="keyword">language</span> plpgsql <span class="keyword">as</span> $$</span><br><span class="line"><span class="keyword">declare</span></span><br><span class="line">    order_sql text;</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">    order_sql :<span class="operator">=</span> format(<span class="string">&#x27;order by %I %s&#x27;</span>, p_order_by, p_order_dir);</span><br><span class="line">    <span class="keyword">return</span> query <span class="keyword">execute</span> format(<span class="string">&#x27;</span></span><br><span class="line"><span class="string">        select</span></span><br><span class="line"><span class="string">            s.id,</span></span><br><span class="line"><span class="string">            s.name,</span></span><br><span class="line"><span class="string">            s.owner_id,</span></span><br><span class="line"><span class="string">            s.ip_address,</span></span><br><span class="line"><span class="string">            s.created_at,</span></span><br><span class="line"><span class="string">            s.updated_at,</span></span><br><span class="line"><span class="string">            count(*) over() as total_count</span></span><br><span class="line"><span class="string">        from public.gh_site s</span></span><br><span class="line"><span class="string">        %s</span></span><br><span class="line"><span class="string">        limit $1 offset $2</span></span><br><span class="line"><span class="string">    &#x27;</span>, order_sql) <span class="keyword">using</span> p_limit, p_offset;</span><br><span class="line"><span class="keyword">end</span>;</span><br><span class="line">$$;</span><br></pre></td></tr></table></figure></div><h4 id="get-users-paginated"><a href="#get-users-paginated" class="headerlink" title="get_users_paginated"></a><code>get_users_paginated</code></h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create</span> <span class="keyword">or</span> replace <span class="keyword">function</span> public.get_users_paginated(</span><br><span class="line">    p_limit <span class="type">int</span>,</span><br><span class="line">    p_offset <span class="type">int</span></span><br><span class="line">)</span><br><span class="line"><span class="keyword">returns</span> <span class="keyword">table</span>(</span><br><span class="line">    owner_id uuid,</span><br><span class="line">    site_count <span class="type">bigint</span>,</span><br><span class="line">    created_at timestamptz,</span><br><span class="line">    sites jsonb,</span><br><span class="line">    total_count <span class="type">bigint</span></span><br><span class="line">) <span class="keyword">language</span> plpgsql <span class="keyword">as</span> $$</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">    <span class="keyword">return</span> query</span><br><span class="line">    <span class="keyword">with</span> agg <span class="keyword">as</span> (</span><br><span class="line">        <span class="keyword">select</span></span><br><span class="line">            s.owner_id,</span><br><span class="line">            <span class="built_in">count</span>(<span class="operator">*</span>) <span class="keyword">as</span> site_count,</span><br><span class="line">            <span class="built_in">min</span>(s.created_at) <span class="keyword">as</span> created_at,</span><br><span class="line">            jsonb_agg(jsonb_build_object(<span class="string">&#x27;name&#x27;</span>, s.name, <span class="string">&#x27;type&#x27;</span>, s.type)) <span class="keyword">as</span> sites</span><br><span class="line">        <span class="keyword">from</span> public.gh_site s</span><br><span class="line">        <span class="keyword">group</span> <span class="keyword">by</span> s.owner_id</span><br><span class="line">    ),</span><br><span class="line">    total <span class="keyword">as</span> (<span class="keyword">select</span> <span class="built_in">count</span>(<span class="operator">*</span>) <span class="keyword">from</span> agg)</span><br><span class="line">    <span class="keyword">select</span></span><br><span class="line">        agg.owner_id,</span><br><span class="line">        agg.site_count,</span><br><span class="line">        agg.created_at,</span><br><span class="line">        agg.sites,</span><br><span class="line">        (<span class="keyword">select</span> count <span class="keyword">from</span> total) <span class="keyword">as</span> total_count</span><br><span class="line">    <span class="keyword">from</span> agg</span><br><span class="line">    <span class="keyword">order</span> <span class="keyword">by</span> agg.created_at <span class="keyword">desc</span></span><br><span class="line">    limit p_limit <span class="keyword">offset</span> p_offset;</span><br><span class="line"><span class="keyword">end</span>;</span><br><span class="line">$$;</span><br></pre></td></tr></table></figure></div><h4 id="get-site-stats"><a href="#get-site-stats" class="headerlink" title="get_site_stats"></a><code>get_site_stats</code></h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create</span> <span class="keyword">or</span> replace <span class="keyword">function</span> public.get_site_stats()</span><br><span class="line"><span class="keyword">returns</span> <span class="keyword">table</span>(</span><br><span class="line">    total_sites <span class="type">bigint</span>,</span><br><span class="line">    total_users <span class="type">bigint</span>,</span><br><span class="line">    sites_today <span class="type">bigint</span></span><br><span class="line">) <span class="keyword">language</span> plpgsql <span class="keyword">as</span> $$</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">    <span class="keyword">return</span> query</span><br><span class="line">    <span class="keyword">select</span></span><br><span class="line">        <span class="built_in">count</span>(<span class="operator">*</span>) <span class="keyword">as</span> total_sites,</span><br><span class="line">        <span class="built_in">count</span>(<span class="keyword">distinct</span> owner_id) <span class="keyword">as</span> total_users,</span><br><span class="line">        <span class="built_in">count</span>(<span class="operator">*</span>) <span class="keyword">filter</span> (<span class="keyword">where</span> created_at::<span class="type">date</span> <span class="operator">=</span> <span class="built_in">current_date</span>) <span class="keyword">as</span> sites_today</span><br><span class="line">    <span class="keyword">from</span> public.gh_site;</span><br><span class="line"><span class="keyword">end</span>;</span><br><span class="line">$$;</span><br></pre></td></tr></table></figure></div><h4 id="increment-visit"><a href="#increment-visit" class="headerlink" title="increment_visit"></a>increment_visit</h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create</span> <span class="keyword">or</span> replace <span class="keyword">function</span> public.increment_visit(p_name text)</span><br><span class="line"><span class="keyword">returns</span> void <span class="keyword">language</span> plpgsql <span class="keyword">as</span> $$</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">    <span class="keyword">update</span> public.gh_site</span><br><span class="line">    <span class="keyword">set</span> visit_count <span class="operator">=</span> visit_count <span class="operator">+</span> <span class="number">1</span></span><br><span class="line">    <span class="keyword">where</span> name <span class="operator">=</span> p_name;</span><br><span class="line"><span class="keyword">end</span>;</span><br><span class="line">$$;</span><br></pre></td></tr></table></figure></div><h4 id="rls策略"><a href="#rls策略" class="headerlink" title="rls策略"></a>rls策略</h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">alter table</span> public.gh_site disable <span class="type">row</span> level security;</span><br><span class="line"><span class="keyword">alter table</span> public.gh_announcement disable <span class="type">row</span> level security;</span><br><span class="line"><span class="keyword">alter table</span> public.system_status disable <span class="type">row</span> level security;</span><br></pre></td></tr></table></figure></div><h4 id="updated-at-自动更新触发器"><a href="#updated-at-自动更新触发器" class="headerlink" title="updated_at 自动更新触发器"></a><code>updated_at</code> 自动更新触发器</h4><div class="code-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">create</span> <span class="keyword">or</span> replace <span class="keyword">function</span> public.update_updated_at()</span><br><span class="line"><span class="keyword">returns</span> <span class="keyword">trigger</span> <span class="keyword">language</span> plpgsql <span class="keyword">as</span> $$</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">    new.updated_at <span class="operator">=</span> now();</span><br><span class="line">    <span class="keyword">return</span> <span class="keyword">new</span>;</span><br><span class="line"><span class="keyword">end</span>;</span><br><span class="line">$$;</span><br><span class="line"></span><br><span class="line"><span class="keyword">create</span> <span class="keyword">trigger</span> trigger_gh_site_updated_at</span><br><span class="line">before <span class="keyword">update</span> <span class="keyword">on</span> public.gh_site</span><br><span class="line"><span class="keyword">for</span> <span class="keyword">each</span> <span class="type">row</span> <span class="keyword">execute</span> <span class="keyword">function</span> public.update_updated_at();</span><br></pre></td></tr></table></figure></div><h2 id="No-3-现在前往cloudflare"><a href="#No-3-现在前往cloudflare" class="headerlink" title="No.3 现在前往cloudflare"></a>No.3 现在前往cloudflare</h2><blockquote><p>[!NOTE]<br>必须拥有一个可以绑定在cloudflare上的域名，这不是为了好看，因为worker域名在国内打不开</p><p>因为我没有域名了，所以用worker域名做演示，在实际使用中，你需要把worker域名换成你自己的</p></blockquote><h3 id="现在你从GitHub上下载了GooseHost源码"><a href="#现在你从GitHub上下载了GooseHost源码" class="headerlink" title="现在你从GitHub上下载了GooseHost源码"></a>现在你从GitHub上下载了GooseHost源码</h3><figure class="image-caption"><img  width="243" height="153" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/caa9a4ff-51b0-479f-861a-54d4ae4709b9"                                      ><figcaption>image</figcaption></figure><p>好打开cloudflare</p><figure class="image-caption"><img  width="1054" height="575" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/644604db-4d2f-4e61-a32e-95dcfd2354fc"                                      ><figcaption>image</figcaption></figure><p>按下<code>Ctrl+K</code>搜索<code>KV</code></p><p>点击创建</p><figure class="image-caption"><img  width="1038" height="444" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/feb488cb-f31c-4016-93af-f60d3c10b330"                                      ><figcaption>image</figcaption></figure><p>命名为<code>RATE_LIMIT_KV</code></p><figure class="image-caption"><img  width="332" height="229" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/d3cad22b-e185-4a67-ac51-026064e1948e"                                      ><figcaption>image</figcaption></figure><p>复制此iD</p><p>现在打开API文件夹</p><figure class="image-caption"><img  width="109" height="118" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/84500070-5462-42a9-98ff-bca3e2889fad"                                      ><figcaption>image</figcaption></figure><p>找到<code>wrangler.toml</code></p><figure class="image-caption"><img  width="233" height="58" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/dd8a78ab-1746-4bc7-85b1-3d90dd8d64ed"                                      ><figcaption>image</figcaption></figure><p>然后</p><figure class="image-caption"><img  width="435" height="408" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/8e998116-e4cc-4cba-9987-3eeb58634f15"                                      ><figcaption>image</figcaption></figure><p>删成这样</p><blockquote><p>详解：</p><p>name &#x3D; &quot;这里填一会要创建的cloudflareworker名称&quot;</p><p>API_URL &#x3D; &quot;<a class="link"   href="https://worker域名/" >https://worker域名<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a>&quot;</p><p>ADMIN_USER_IDS &#x3D; &quot;管理员UID，用英文逗号分割&quot;</p><p>id &#x3D; &quot;这里填从cloudflare复制过来的2edc698e7f884d6ea146cdc5ad0a74e0&quot;</p></blockquote><p>完事长这样</p><div class="code-container" data-rel="Toml"><figure class="iseeu highlight toml"><table><tr><td class="code"><pre><span class="line"><span class="attr">name</span> = <span class="string">&quot;goosehost-example&quot;</span>  </span><br><span class="line"><span class="attr">main</span> = <span class="string">&quot;worker.js&quot;</span></span><br><span class="line"><span class="attr">compatibility_date</span> = <span class="string">&quot;2026-07-27&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="section">[vars]</span></span><br><span class="line"><span class="attr">API_URL</span> = <span class="string">&quot;https://goosehost-example.goose-bai.workers.dev&quot;</span></span><br><span class="line"><span class="attr">ADMIN_USER_IDS</span> = <span class="string">&quot;&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="section">[[kv_namespaces]]</span></span><br><span class="line"><span class="attr">binding</span> = <span class="string">&quot;RATE_LIMIT_KV&quot;</span></span><br><span class="line"><span class="attr">id</span> = <span class="string">&quot;2edc698e7f884d6ea146cdc5ad0a74e0&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="section">[triggers]</span></span><br><span class="line"><span class="attr">crons</span> = [<span class="string">&quot;*/30 * * * *&quot;</span>]</span><br></pre></td></tr></table></figure></div><h3 id="现在创建一个名为goosehost-example的worker"><a href="#现在创建一个名为goosehost-example的worker" class="headerlink" title="现在创建一个名为goosehost-example的worker"></a>现在创建一个名为<code>goosehost-example</code>的worker</h3><figure class="image-caption"><img  width="319" height="137" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/18b63e59-8d84-4b9e-a6a1-556d69ccf034"                                      ><figcaption>image</figcaption></figure><p>点击创建</p><figure class="image-caption"><img  width="564" height="381" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/e70cf388-1e27-45d4-a894-ba7911149651"                                      ><figcaption>image</figcaption></figure><p>从helloworld开始</p><figure class="image-caption"><img  width="561" height="509" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/6bcec803-78cf-402b-8371-59813cad434e"                                      ><figcaption>image</figcaption></figure><p>修改名称，部署</p><p>然后来到GitHub，新建一个仓库</p><figure class="image-caption"><img  width="399" height="355" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/80238b08-7373-4e3c-b481-5900214860a3"                                      ><figcaption>image</figcaption></figure><p>将整个API文件夹上传到这个仓库</p><p>上传完毕后点击设置&gt;Security and quality&gt;Secrets and variables&gt;Actions&gt;Repository secrets&gt;New repository secret 新建以下机密：</p><ul><li>CLOUDFLARE_ACCOUNT_ID</li><li>CLOUDFLARE_API_TOKEN</li><li>CRON_SECRET</li><li>SUPABASE_ANON_KEY</li><li>SUPABASE_SERVICE_ROLE_KEY</li><li>SUPABASE_URL</li></ul><h4 id="CLOUDFLARE-ACCOUNT-ID-获取方法"><a href="#CLOUDFLARE-ACCOUNT-ID-获取方法" class="headerlink" title="CLOUDFLARE_ACCOUNT_ID 获取方法"></a>CLOUDFLARE_ACCOUNT_ID 获取方法</h4><p>看你的cloudflare网址</p><figure class="image-caption"><img  width="456" height="44" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/5c85bfa2-9e68-4617-9127-d53198e23c20"                                      ><figcaption>image</figcaption></figure><p>中间那一大串就是</p><h4 id="CLOUDFLARE-API-TOKEN-获取方法"><a href="#CLOUDFLARE-API-TOKEN-获取方法" class="headerlink" title="CLOUDFLARE_API_TOKEN 获取方法"></a>CLOUDFLARE_API_TOKEN 获取方法</h4><p>cloudflare dashboard 右上角小人头像，点击出现下拉菜单，点击配置文件，或者直接点<a class="link"   href="https://dash.cloudflare.com/profile/api-tokens" >这里<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><figure class="image-caption"><img  width="759" height="192" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/95d3cd83-0bb3-4ded-9629-a7d264633ddd"                                      ><figcaption>image</figcaption></figure><p>点击创建令牌&gt;API 令牌模板&gt;编辑 Cloudflare Workers</p><p>所有显示 <code>Select...</code> 的都填上，填啥随便，最好选<code>所有</code>,客户端 IP 地址筛选不用管</p><p>点击继续以显示摘要，创建成功，复制好填入GitHub机密</p><h4 id="SUPABASE-URL获取方法"><a href="#SUPABASE-URL获取方法" class="headerlink" title="SUPABASE_URL获取方法"></a>SUPABASE_URL获取方法</h4><p>回到SUPABASE首页</p><figure class="image-caption"><img  width="489" height="220" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/e970fbef-3318-400f-811b-934e4ed5f27b"                                      ><figcaption>image</figcaption></figure><p><code>.co</code> 网址就是</p><h4 id="SUPABASE-ANON-KEY和SUPABASE-SERVICE-ROLE-KEY获取方法"><a href="#SUPABASE-ANON-KEY和SUPABASE-SERVICE-ROLE-KEY获取方法" class="headerlink" title="SUPABASE_ANON_KEY和SUPABASE_SERVICE_ROLE_KEY获取方法"></a>SUPABASE_ANON_KEY和SUPABASE_SERVICE_ROLE_KEY获取方法</h4><figure class="image-caption"><img  width="185" height="67" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/b8cbe5fc-88d2-4724-ab66-5a89c6bf6fe9"                                      ><figcaption>image</figcaption></figure><p>点击左侧边栏设置图标</p><p>Settings&gt;CONFIGURATION&gt;API keys&gt;Legacy anon, service_role API keys</p><figure class="image-caption"><img  width="582" height="341" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/8ef1acbf-a4eb-4007-8054-ea0e91ae9f85"                                      ><figcaption>image</figcaption></figure><p>这两个就是</p><h4 id="CRON-SECRET"><a href="#CRON-SECRET" class="headerlink" title="CRON_SECRET"></a>CRON_SECRET</h4><p>瞎填就行</p><hr><p>全部完成后点击actions</p><figure class="image-caption"><img  width="768" height="50" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/79e0f4aa-f59c-457c-82f8-848bb59edec4"                                      ><figcaption>image</figcaption></figure><p>选择yourself</p><figure class="image-caption"><img  width="380" height="140" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/cc7a6a16-8da1-457f-b21b-6cfee9bd4c75"                                      ><figcaption>image</figcaption></figure><p>复制以下代码</p><div class="code-container" data-rel="Yml"><figure class="iseeu highlight yml"><table><tr><td class="code"><pre><span class="line"><span class="attr">name:</span> <span class="string">Deploy</span> <span class="string">GooseHost</span> <span class="string">Worker</span></span><br><span class="line"></span><br><span class="line"><span class="attr">on:</span></span><br><span class="line">  <span class="attr">push:</span></span><br><span class="line">    <span class="attr">branches:</span> [<span class="string">main</span>, <span class="string">master</span>]</span><br><span class="line">  <span class="attr">workflow_dispatch:</span></span><br><span class="line"></span><br><span class="line"><span class="attr">concurrency:</span></span><br><span class="line">  <span class="attr">group:</span> <span class="string">deploy-goosehost-worker</span></span><br><span class="line">  <span class="attr">cancel-in-progress:</span> <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="attr">jobs:</span></span><br><span class="line">  <span class="attr">deploy:</span></span><br><span class="line">    <span class="attr">runs-on:</span> <span class="string">ubuntu-latest</span></span><br><span class="line">    <span class="attr">steps:</span></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Checkout</span></span><br><span class="line">        <span class="attr">uses:</span> <span class="string">actions/checkout@v4</span></span><br><span class="line"></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Setup</span> <span class="string">Node</span></span><br><span class="line">        <span class="attr">uses:</span> <span class="string">actions/setup-node@v4</span></span><br><span class="line">        <span class="attr">with:</span></span><br><span class="line">          <span class="attr">node-version:</span> <span class="string">&quot;22&quot;</span></span><br><span class="line"></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Install</span> <span class="string">dependencies</span></span><br><span class="line">        <span class="attr">run:</span> <span class="string">npm</span> <span class="string">install</span></span><br><span class="line"></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Build</span> <span class="string">(esbuild</span> <span class="string">打包</span> <span class="string">index.js</span> <span class="string">-&gt;</span> <span class="string">worker.js)</span></span><br><span class="line">        <span class="attr">run:</span> <span class="string">npm</span> <span class="string">run</span> <span class="string">build</span></span><br><span class="line"></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Push</span> <span class="string">secrets</span> <span class="string">to</span> <span class="string">Cloudflare</span></span><br><span class="line">        <span class="attr">env:</span></span><br><span class="line">          <span class="attr">CLOUDFLARE_API_TOKEN:</span> <span class="string">$&#123;&#123;</span> <span class="string">secrets.CLOUDFLARE_API_TOKEN</span> <span class="string">&#125;&#125;</span></span><br><span class="line">          <span class="attr">CLOUDFLARE_ACCOUNT_ID:</span> <span class="string">$&#123;&#123;</span> <span class="string">secrets.CLOUDFLARE_ACCOUNT_ID</span> <span class="string">&#125;&#125;</span></span><br><span class="line">        <span class="attr">run:</span> <span class="string">|</span></span><br><span class="line"><span class="string">          echo -n &quot;$&#123;&#123; secrets.SUPABASE_URL &#125;&#125;&quot; | npx wrangler secret put SUPABASE_URL</span></span><br><span class="line"><span class="string">          echo -n &quot;$&#123;&#123; secrets.SUPABASE_ANON_KEY &#125;&#125;&quot; | npx wrangler secret put SUPABASE_ANON_KEY</span></span><br><span class="line"><span class="string">          echo -n &quot;$&#123;&#123; secrets.SUPABASE_SERVICE_ROLE_KEY &#125;&#125;&quot; | npx wrangler secret put SUPABASE_SERVICE_ROLE_KEY</span></span><br><span class="line"><span class="string">          echo -n &quot;$&#123;&#123; secrets.CRON_SECRET &#125;&#125;&quot; | npx wrangler secret put CRON_SECRET</span></span><br><span class="line"><span class="string"></span></span><br><span class="line">      <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Deploy</span> <span class="string">to</span> <span class="string">Cloudflare</span> <span class="string">Workers</span></span><br><span class="line">        <span class="attr">env:</span></span><br><span class="line">          <span class="attr">CLOUDFLARE_API_TOKEN:</span> <span class="string">$&#123;&#123;</span> <span class="string">secrets.CLOUDFLARE_API_TOKEN</span> <span class="string">&#125;&#125;</span></span><br><span class="line">          <span class="attr">CLOUDFLARE_ACCOUNT_ID:</span> <span class="string">$&#123;&#123;</span> <span class="string">secrets.CLOUDFLARE_ACCOUNT_ID</span> <span class="string">&#125;&#125;</span></span><br><span class="line">        <span class="attr">run:</span> <span class="string">npx</span> <span class="string">wrangler</span> <span class="string">deploy</span></span><br></pre></td></tr></table></figure></div><p>命名 <code>deploy.yml</code> ，保存后等待半分钟回到cloudflare</p><figure class="image-caption"><img  width="876" height="202" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/aa4ac79e-7c41-4926-af19-6477a8cc9614"                                      ><figcaption>image</figcaption></figure><p>action已经部署完了</p><h2 id="No-4-部署前端"><a href="#No-4-部署前端" class="headerlink" title="No.4 部署前端"></a>No.4 部署前端</h2><h3 id="改代码"><a href="#改代码" class="headerlink" title="改代码"></a>改代码</h3><h4 id="1-auth-register-js"><a href="#1-auth-register-js" class="headerlink" title="1. auth/register.js"></a>1. <code>auth/register.js</code></h4><p><strong>位置</strong>：第 63 行</p><p><strong>原代码</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="attr">redirect_to</span>: <span class="string">&#x27;https://host.goose.gs.cn/login.html&#x27;</span></span><br></pre></td></tr></table></figure></div><p><strong>改为</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="attr">redirect_to</span>: <span class="string">&#x27;https://你的前端域名/login.html&#x27;</span></span><br></pre></td></tr></table></figure></div><hr><h4 id="2-auth-signup-js"><a href="#2-auth-signup-js" class="headerlink" title="2. auth/signup.js"></a>2. <code>auth/signup.js</code></h4><p><strong>原代码</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="attr">redirect_to</span>: <span class="string">&#x27;https://host.goose.gs.cn/login.html&#x27;</span></span><br></pre></td></tr></table></figure></div><p><strong>改为</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="attr">redirect_to</span>: <span class="string">&#x27;https://你的前端域名/login.html&#x27;</span></span><br></pre></td></tr></table></figure></div><hr><h4 id="3-auth-forgot-password-js"><a href="#3-auth-forgot-password-js" class="headerlink" title="3. auth/forgot-password.js"></a>3. <code>auth/forgot-password.js</code></h4><p><strong>位置</strong>：第 3 行</p><p><strong>原代码</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">const</span> <span class="variable constant_">RESET_PAGE</span> = <span class="string">&#x27;https://host.goose.gs.cn/reset-password.html&#x27;</span>;</span><br></pre></td></tr></table></figure></div><p><strong>改为</strong>：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">const</span> <span class="variable constant_">RESET_PAGE</span> = <span class="string">&#x27;https://你的前端域名/reset-password.html&#x27;</span>;</span><br></pre></td></tr></table></figure></div><hr><h4 id="4-sites-serve-js"><a href="#4-sites-serve-js" class="headerlink" title="4. sites/serve.js"></a>4. <code>sites/serve.js</code></h4><h5 id="位置-1：render404Page-函数"><a href="#位置-1：render404Page-函数" class="headerlink" title="位置 1：render404Page 函数"></a>位置 1：<code>render404Page</code> 函数</h5><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line">&lt;link rel=<span class="string">&quot;icon&quot;</span> type=<span class="string">&quot;image/x-icon&quot;</span> href=<span class="string">&quot;https://host.goose.gs.cn/icons/favicon.ico&quot;</span>&gt;</span><br></pre></td></tr></table></figure></div><p>以及页脚和导航中的链接：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line">&lt;a href=<span class="string">&quot;https://host.goose.gs.cn/&quot;</span>&gt;返回首页&lt;/a&gt;</span><br></pre></td></tr></table></figure></div><p><strong>全部改为</strong>：<code>https://你的前端域名/...</code></p><h5 id="位置-2：Markdown-渲染-HTML"><a href="#位置-2：Markdown-渲染-HTML" class="headerlink" title="位置 2：Markdown 渲染 HTML"></a>位置 2：Markdown 渲染 HTML</h5><p>顶部导航、页脚水印、字体链接、CSS 引用等多处硬编码：</p><div class="code-container" data-rel="Javascript"><figure class="iseeu highlight javascript"><table><tr><td class="code"><pre><span class="line">&lt;link rel=<span class="string">&quot;icon&quot;</span> type=<span class="string">&quot;image/x-icon&quot;</span> href=<span class="string">&quot;https://host.goose.gs.cn/icons/favicon.ico&quot;</span>&gt;</span><br><span class="line">&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.bootcdn.net/ajax/libs/font-awesome/...&quot;&gt;</span><br><span class="line">&lt;a href=&quot;https://host.goose.gs.cn/&quot; class=&quot;header-brand&quot;&gt;</span><br><span class="line">&lt;a href=&quot;https://host.goose.gs.cn/docs/&quot; class=&quot;header-link&quot;&gt;</span><br><span class="line">&lt;a href=&quot;https://host.goose.gs.cn/&quot; target=&quot;_blank&quot;&gt;GooseHost&lt;/a&gt;</span><br></pre></td></tr></table></figure></div><p><strong>改为</strong>：<code>https://你的前端域名/...</code></p><h4 id="5-utils-cors-js"><a href="#5-utils-cors-js" class="headerlink" title="5. utils/cors.js"></a>5. <code>utils/cors.js</code></h4><p>打开就能看见</p><h4 id="6-所有front目录里的page-goose-gs-cn替换为刚才的worker域名"><a href="#6-所有front目录里的page-goose-gs-cn替换为刚才的worker域名" class="headerlink" title="6. 所有front目录里的page.goose.gs.cn替换为刚才的worker域名"></a>6. 所有front目录里的page.goose.gs.cn替换为刚才的worker域名</h4><p><a class="link"   href="https://github.com/user-attachments/files/31348769/done.bat.txt" >一键转换.bat<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><hr><p>现在部署pages</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/2ebc3598-997f-403a-94a2-2c182d30c243"                      alt="创建应用程序"                ><figcaption>创建应用程序</figcaption></figure></p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/22ee7481-2995-43a3-b76a-cd5eacedb53d"                      alt="上传文件夹"                ><figcaption>上传文件夹</figcaption></figure></p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/72729e73-7ac9-40ad-bb8a-5eb72a8ef2b5"                      alt="拖入"                ><figcaption>拖入</figcaption></figure></p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/c6f23312-a9e9-451c-8647-910defbb9aa0"                      alt="quanq"                ><figcaption>quanq</figcaption></figure></p><p>此时你打开你的GooseHost链接，已经可以收到注册邮件了</p><figure class="image-caption"><img  width="483" height="184" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/546f596b-ee35-4f3c-b00f-eba5953cf248"                                      ><figcaption>image</figcaption></figure><p>但是，还没完</p><p>现在回到SUPABASE</p><figure class="image-caption"><img  width="203" height="148" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/fe7c5ff5-e7bc-40e8-9d69-ec26d506f20c"                                      ><figcaption>image</figcaption></figure><p>点击</p><figure class="image-caption"><img  width="252" height="467" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/d7a8b1e7-3df8-4315-b392-8766c6e8feec"                                      ><figcaption>image</figcaption></figure><p>跟着我鼠标</p><figure class="image-caption"><img  width="855" height="176" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/eade7d35-f460-4756-b027-1d5c751c01ce"                                      ><figcaption>image</figcaption></figure><p>换成</p><figure class="image-caption"><img  width="857" height="188" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/3a9dd13f-5b14-4999-a5ad-800beccbd8ba"                                      ><figcaption>image</figcaption></figure><p>同时下面</p><figure class="image-caption"><img  width="875" height="276" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/6407780c-acf7-41af-aa3c-928a1096754d"                                      ><figcaption>image</figcaption></figure><h1>🎉 恭喜你，你的GooseHost已经具备基本可运行状态！</h1><h2 id="设置管理员"><a href="#设置管理员" class="headerlink" title="设置管理员"></a>设置管理员</h2><p>找到这里</p><figure class="image-caption"><img  width="1166" height="532" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/ca715a64-0030-4797-bb2a-a10b39c8c516"                                      ><figcaption>image</figcaption></figure><p>复制管理员uid</p><figure class="image-caption"><img  width="245" height="89" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/b6ea64ee-d116-4892-91ec-9a288421040d"                                      ><figcaption>image</figcaption></figure><p>回到 <code>wrangler.toml</code> </p><figure class="image-caption"><img  width="481" height="144" alt="image"                      lazyload                     src="/images/loading.svg"                     data-src="https://github.com/user-attachments/assets/ecdcfac1-4100-43ad-a374-a54fddc21d4d"                                      ><figcaption>image</figcaption></figure><p>保存，Action会重新部署</p><p>部署完成后你就可以打开<a class="link"   href="https://goosehost-example.pages.dev/admin/" >管理员页面<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a>啦</p>]]></content>
    
    
    <summary type="html">GooseHost自托管指南-维基文档</summary>
    
    
    
    <category term="项目" scheme="https://blog.goose.cc.cd/categories/%E9%A1%B9%E7%9B%AE/"/>
    
    
    <category term="文档" scheme="https://blog.goose.cc.cd/tags/%E6%96%87%E6%A1%A3/"/>
    
    <category term="GooseHost" scheme="https://blog.goose.cc.cd/tags/GooseHost/"/>
    
  </entry>
  
  <entry>
    <title>GooseHyperGlassCDN从发布到现在所有难绷事件汇总</title>
    <link href="https://blog.goose.cc.cd/posts/hyper-glass-hahaha/"/>
    <id>https://blog.goose.cc.cd/posts/hyper-glass-hahaha/</id>
    <published>2026-07-30T15:39:23.000Z</published>
    <updated>2026-07-30T23:52:47.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="GooseHyperGlassCDN从发布到现在所有难绷事件汇总"><a href="#GooseHyperGlassCDN从发布到现在所有难绷事件汇总" class="headerlink" title="GooseHyperGlassCDN从发布到现在所有难绷事件汇总"></a>GooseHyperGlassCDN从发布到现在所有难绷事件汇总</h1><h2 id="7月22日"><a href="#7月22日" class="headerlink" title="7月22日"></a>7月22日</h2><p>我正式发布了GooseHyperGlassCDN（以下简称HyperGlass），原作者署名全部保留地发布了。没过多一会啊——这个某FC就找上门来了。</p><div class="code-container" data-rel="1c"><figure class="iseeu highlight 1c"><table><tr><td class="code"><pre><span class="line"><span class="string">&quot;GooseHyperGlass 项目名冠自己的 Goose，宣传标题简介里 Kyant 和我被抹得干干净净，README 角落里塞行妈字就当免责。自己吹 A9 流畅，可苹果根本没给 A9 推液态玻璃——能跑只因你这不是液态玻璃，是暴力降分辨率 + 无脑堆 blur 的毛玻璃贴图。G2 圆角写不出，只会加满屏 blur 和阴间蓝滤镜，锯齿、穿透、布局崩坏全齐。偷代码、抹作者、拿 README 小字当挡箭牌，神临？小偷降临！&quot;</span></span><br></pre></td></tr></table></figure></div><p>当时我还是把他当个人呢，和声和气地回复他，结果换来的是AI替代大脑的神评论。</p><div class="code-container" data-rel="Dart"><figure class="iseeu highlight dart"><table><tr><td class="code"><pre><span class="line">“<span class="title class_">GooseHyperGlass</span> 项目名冠自己的 <span class="title class_">Goose</span>，宣传标题简介里 <span class="title class_">Kyant</span> 和我被抹得干干净净，README 角落里塞行妈字就当免责。自己吹 <span class="title class_">A9</span> 流畅，可苹果根本没给 <span class="title class_">A9</span> 推液态玻璃——能跑只因你这不是液态玻璃，是暴力降分辨率 + 无脑堆 blur 的毛玻璃贴图。<span class="title class_">G2</span> 圆角写不出，只会加满屏 blur 和阴间蓝滤镜，锯齿、穿透、布局崩坏全齐。偷代码、抹作者、拿 README 小字当挡箭牌，神临？小偷降临！”</span><br></pre></td></tr></table></figure></div><p>（小字）真他妈是AI替代大脑，无法沟通。哎，我他妈也来气啊，但是本着多一事不如少一事的原则，依旧再忍（都憋出内伤了）。你他妈AI生成的玩意自己不确认一下就发？？？？？🐂🍺</p><div class="code-container" data-rel="1c"><figure class="iseeu highlight 1c"><table><tr><td class="code"><pre><span class="line"><span class="string">&quot;请前往脑科和眼科医院接受治疗&quot;</span></span><br><span class="line"><span class="string">&quot;请前往眼科医院接受治疗&quot;</span></span><br></pre></td></tr></table></figure></div><p>行了，没法沟通了。结果呢，此低智小学生跑到kyant0的issue底下发AI大作文去了。。。人家不烦吗？你他妈10年脑子全给AI了啊？</p><p>原文链接：<br><a class="link"   href="https://github.com/Kyant0/AndroidLiquidGlass/issues/114" >https://github.com/Kyant0/AndroidLiquidGlass/issues/114<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a><br><a class="link"   href="https://github.com/Kyant0/AndroidLiquidGlass/issues/112" >https://github.com/Kyant0/AndroidLiquidGlass/issues/112<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p><p>省流：全是AI生成哈，一点人工痕迹没有，给我都气溃疡了。</p><h4 id="我就是说，谁家正常人把开源和抄袭能想一起去？"><a href="#我就是说，谁家正常人把开源和抄袭能想一起去？" class="headerlink" title="我就是说，谁家正常人把开源和抄袭能想一起去？"></a>我就是说，谁家正常人把开源和抄袭能想一起去？</h4><p>接下来，我也是不想打了，让着他了。结果呢，在自己仓库里塞了个耻辱柱。</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/801335f976dfd64fca68f433752c26c8?ext=png"                      alt="耻辱柱图片"                ><figcaption>耻辱柱图片</figcaption></figure></p><p>但凡在GitHub里的开发者看了都绷不住哈哈哈哈。</p><p>接着说，我配合他了，结果拒绝删耻辱柱，说要让我青史留名，我留你#@%。于是我又撤销更改了，然后又出现了AI写的神评论。</p><div class="code-container" data-rel="Dart"><figure class="iseeu highlight dart"><table><tr><td class="code"><pre><span class="line">“配合改名没几分钟，转头又改回 <span class="title class_">GooseHyperGlass</span>？你这变脸速度比 AI 生成的代码还快。关 <span class="title class_">Issue</span> 区装死，派 AI 念<span class="string">&quot;到此为止&quot;</span>的稿子，转头就反悔——原来配合只是缓兵之计，声明只是拖延把戏。<span class="title class_">WorkBuddy</span> 不是挺会写吗？怎么不让他再编个<span class="string">&quot;404 上游&quot;</span>解释这次反复？上次虚构 w2 的锅甩给 AI，这次准备甩给谁？这不是开源协作，是开源诈骗：拿代码、抹署名、被发现就假意整改，人一转身就改回去。贼喊捉贼演完了，现在改演贼当完警察再当回贼？<span class="title class_">Issue</span> 你能关，页面你能改，但 git 历史、你 AI 亲口承认<span class="string">&quot;代码从 martin65536 拉的&quot;</span>、README 白纸黑字<span class="string">&quot;基于 martin65536 二开&quot;</span>——这些你删不掉。既然你这么舍不得这块招牌，就让社区永远记住：<span class="title class_">GooseHyperGlass</span> = 拉 martin65536 代码 + 虚构 wong2 上游 + 关 <span class="title class_">Issue</span> 逃避 + 假意配合再反悔。这牌子你自己立稳了，别倒。 ”</span><br></pre></td></tr></table></figure></div><p>有心的去看看我Git历史啊。。。呵呵</p><p>哎，挨个用户都被骚扰一遍，疯狂指出我的issue紧闭。怎么的？我开issue用你管啊，这他妈是我仓库，不是你家幼儿园，不开是用来防弱智的。</p><h2 id="群众的眼睛是雪亮的"><a href="#群众的眼睛是雪亮的" class="headerlink" title="群众的眼睛是雪亮的"></a>群众的眼睛是雪亮的</h2><p>组团开骂呗，骂的在kimi这玩意不说话了，跑B站丢人现眼去了。</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/c5e0118ff037db80a48407700a9190fc?ext=png"                      alt="难绷1"                ><figcaption>难绷1</figcaption></figure><br><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/31852fffecf4f90c909d42186d07007a?ext=png"                      alt="难绷2"                ><figcaption>难绷2</figcaption></figure></p><p>哎呀《不小心承认》哈哈哈哈哈哈哈哈哈哈哈哈哈哈😄</p><p>接下来我和几位开发者深度分析了他的屎山仓库。</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/753a90b047b426237da49e6e253ae481?ext=png"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/e6ef352fab46a91436bc775d990f02b?ext=png"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/b1bca73d04e2943cc8f6fe868b0f0363?ext=jpg"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/e99895533c59113bbeb55e0badc167b9?ext=jpg"                                     ><br><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/e2993fe8b47743a5dab3609e46b24533?ext=jpg"                                     ></p><p>这仓库乱成一锅粥了都。</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/e0ef338330da3f3ea4ed7cb5590debdb?ext=png"                                     ></p><p>下面这张是关于某个k说我抄袭的最有力的回应。</p><p><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/fbdae2739a95edef7e1df2b435ec0b18?ext=jpg"                                     ></p><h3 id="最最最离谱的来了"><a href="#最最最离谱的来了" class="headerlink" title="最最最离谱的来了"></a>最最最离谱的来了</h3><p>我在他的仓库里找到了这个。</p><p><figure class="image-caption"><img                       lazyload                     src="/images/loading.svg"                     data-src="https://pan.vma.cc/pan/v/e99895533c59113bbeb55e0badc167b9?ext=jpg"                      alt="窃取用户信息证据图片"                ><figcaption>窃取用户信息证据图片</figcaption></figure></p><p>不是，谁给你的胆子偷数据？？？</p><blockquote><p>-----------7月30日截止线----------------</p></blockquote><p>有人说他用AI回复---结果你猜他回个啥？：AI生成的话《张弛有度》</p><blockquote><p>书名号是我加的</p></blockquote>]]></content>
    
    
    <summary type="html">绷不住了哈哈哈</summary>
    
    
    
    <category term="项目" scheme="https://blog.goose.cc.cd/categories/%E9%A1%B9%E7%9B%AE/"/>
    
    
    <category term="GooseHyperGlass" scheme="https://blog.goose.cc.cd/tags/GooseHyperGlass/"/>
    
  </entry>
  
  <entry>
    <title>Markdown 入门教程</title>
    <link href="https://blog.goose.cc.cd/posts/how-to-write-markdown/"/>
    <id>https://blog.goose.cc.cd/posts/how-to-write-markdown/</id>
    <published>2026-07-29T02:27:01.000Z</published>
    <updated>2026-07-29T02:37:51.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="Markdown-入门教程：从零开始写出一篇漂亮的博客文章"><a href="#Markdown-入门教程：从零开始写出一篇漂亮的博客文章" class="headerlink" title="Markdown 入门教程：从零开始写出一篇漂亮的博客文章"></a>Markdown 入门教程：从零开始写出一篇漂亮的博客文章</h1><blockquote><p>转载自：<a class="link"   href="https://starblog.totalh.net/wp59/archives/4/md%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B" >MD入门教程 – Star Blog<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p></blockquote><p>如果你刚开始写博客，一定被一个问题困扰过：<strong>排版太麻烦了</strong>。</p><p>加粗要找按钮，标题要选字号，贴代码更是灾难现场——缩进全乱，颜色全丢。直到我遇见了 <strong>Markdown</strong>，一切都变了。它让我只用纯文本就能写出结构清晰、格式美观的文章。这篇教程，就是写给完全没接触过 Markdown 的你。</p><hr><h2 id="什么是-Markdown？"><a href="#什么是-Markdown？" class="headerlink" title="什么是 Markdown？"></a>什么是 Markdown？</h2><p>Markdown 是一种<strong>轻量级标记语言</strong>。说人话就是：你用普通文字加几个简单符号，它就能自动变成标题、加粗、列表、链接。全程键盘搞定，手不用离开主键盘区。</p><p>它由 John Gruber 于 2004 年发明，核心理念是：<strong>让写作者专注于内容本身，而不是排版</strong>。如今 GitHub、Typora、Obsidian、Notion、WordPress 等主流平台全部支持 Markdown，它已经成为技术写作的事实标准。</p><hr><h2 id="为什么要学-Markdown？"><a href="#为什么要学-Markdown？" class="headerlink" title="为什么要学 Markdown？"></a>为什么要学 Markdown？</h2><p>三个理由，值得你花半小时学会它：</p><p><strong>1. 写作效率翻倍</strong></p><p>不用停下打字的手去点加粗按钮，直接在文字两边加两个星号就行。思路不断，心流不停。</p><p><strong>2. 一次学会，到处能用</strong></p><p>GitHub 写 README 用 Markdown，论坛发帖用 Markdown，笔记软件记东西还是 Markdown。学一次，受益终身。</p><p><strong>3. 格式干净，永不翻车</strong></p><p>Word 里粘贴后字体大小不一致、格式莫名错乱……这些在 Markdown 里永远不会发生。你写的是什么，出来就是什么。</p><hr><h2 id="基础语法详解"><a href="#基础语法详解" class="headerlink" title="基础语法详解"></a>基础语法详解</h2><p>下面逐一讲解最常用的语法，每个都配有<strong>写法</strong>和<strong>效果说明</strong>。</p><h3 id="一、标题"><a href="#一、标题" class="headerlink" title="一、标题"></a>一、标题</h3><p>标题用 <code>#</code> 加空格表示。一个井号是一级标题，两个是二级，以此类推，最多支持六级。</p><blockquote><p><strong>最佳实践</strong>：一篇文章建议只用一个 <code>#</code>（一级标题），即文章标题本身。<code>##</code> 用于主要章节，<code>###</code> 用于小节，形成清晰的层级结构。</p></blockquote><p>写法：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="section"># 一级标题</span></span><br><span class="line"><span class="section">## 二级标题</span></span><br><span class="line"><span class="section">### 三级标题</span></span><br><span class="line"><span class="section">#### 四级标题</span></span><br><span class="line"><span class="section">##### 五级标题</span></span><br><span class="line"><span class="section">###### 六级标题</span></span><br></pre></td></tr></table></figure></div><hr><h3 id="二、加粗与斜体"><a href="#二、加粗与斜体" class="headerlink" title="二、加粗与斜体"></a>二、加粗与斜体</h3><p>这是日常写作中最常用的两个格式：</p><table><thead><tr><th>效果</th><th>写法</th><th>规则</th></tr></thead><tbody><tr><td><strong>加粗</strong></td><td><code>**加粗**</code></td><td>文字两边各加两个星号</td></tr><tr><td><em>斜体</em></td><td><code>*斜体*</code></td><td>文字两边各加一个星号</td></tr><tr><td><em><strong>加粗斜体</strong></em></td><td><code>***加粗斜体***</code></td><td>文字两边各加三个星号</td></tr></tbody></table><p><strong>注意</strong>：星号和文字之间<strong>不要有空格</strong>。写成 <code>* 斜体 *</code> 会导致部分编辑器无法识别。</p><hr><h3 id="三、删除线"><a href="#三、删除线" class="headerlink" title="三、删除线"></a>三、删除线</h3><p>表示内容已过时或作废，在文字两边各加两个波浪号 <code>~~</code>：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">~~这是错误的内容，已经被删掉了。~~</span><br></pre></td></tr></table></figure></div><p>效果：<del class="mask">这是错误的内容，已经被删掉了。</del></p><hr><h3 id="四、链接"><a href="#四、链接" class="headerlink" title="四、链接"></a>四、链接</h3><p>格式为 <code>[显示文字](URL)</code>，中括号写展示文本，小括号写链接地址：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">[<span class="string">点击访问 Star Blog</span>](<span class="link">https://starblog.totalh.net</span>)</span><br></pre></td></tr></table></figure></div><p><strong>进阶</strong>：给链接加鼠标悬停提示，在小括号里加空格和引号：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">[<span class="string">我的博客</span>](<span class="link">https://starblog.totalh.net &quot;StarBlog&quot;</span>)</span><br></pre></td></tr></table></figure></div><hr><h3 id="五、图片"><a href="#五、图片" class="headerlink" title="五、图片"></a>五、图片</h3><p>和链接几乎一样，只在开头多一个感叹号 <code>!</code>：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">![<span class="string">替代文字</span>](<span class="link">https://你的图片链接.jpg</span>)</span><br></pre></td></tr></table></figure></div><blockquote><p><strong>为什么要写替代文字？</strong> 图片加载失败时显示这段文字；屏幕阅读器会读给视障用户听。这是基本的无障碍写作素养，别偷懒。</p></blockquote><hr><h3 id="六、列表"><a href="#六、列表" class="headerlink" title="六、列表"></a>六、列表</h3><p><strong>无序列表</strong>：用 <code>-</code>、<code>+</code> 或 <code>*</code> 加空格开头（推荐统一用 <code>-</code>，最通用）。</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="bullet">-</span> 苹果</span><br><span class="line"><span class="bullet">-</span> 香蕉</span><br><span class="line"><span class="bullet">-</span> 橘子</span><br></pre></td></tr></table></figure></div><p><strong>有序列表</strong>：用数字加点加空格开头。</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="bullet">1.</span> 第一步：打开编辑器</span><br><span class="line"><span class="bullet">2.</span> 第二步：写内容</span><br><span class="line"><span class="bullet">3.</span> 第三步：发布文章</span><br></pre></td></tr></table></figure></div><p><strong>嵌套列表</strong>：子项前加两个空格或一个 Tab：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="bullet">-</span> 水果</span><br><span class="line"><span class="bullet">  -</span> 苹果</span><br><span class="line"><span class="bullet">  -</span> 香蕉</span><br><span class="line"><span class="bullet">-</span> 蔬菜</span><br><span class="line"><span class="bullet">  -</span> 白菜</span><br><span class="line"><span class="bullet">  -</span> 萝卜</span><br></pre></td></tr></table></figure></div><blockquote><p><strong>小技巧</strong>：有序列表的序号其实不必严格递增，写成 <code>1. 2. 3.</code> 或 <code>1. 1. 1.</code> 渲染后都会自动校正。但写成正确序号方便在纯文本模式下阅读。</p></blockquote><hr><h3 id="七、引用"><a href="#七、引用" class="headerlink" title="七、引用"></a>七、引用</h3><p>用 <code>&gt;</code> 加空格开头，常用于引用他人言论或突出某段内容：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="quote">&gt; 这是一段引用内容，可以写多行。</span></span><br><span class="line"><span class="quote">&gt; 每行开头都加大于号。</span></span><br></pre></td></tr></table></figure></div><p>支持嵌套，用两个大于号：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="quote">&gt; 外层引用</span></span><br><span class="line">&gt;&gt; 内层引用（嵌套）</span><br></pre></td></tr></table></figure></div><hr><h3 id="八、代码"><a href="#八、代码" class="headerlink" title="八、代码"></a>八、代码</h3><p><strong>行内代码</strong>：用单个反引号包裹，适合在正文中穿插变量名或命令：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">使用 <span class="code">`console.log()`</span> 可以在控制台输出内容。</span><br></pre></td></tr></table></figure></div><p><strong>代码块</strong>：用三个反引号独占一行，包裹代码内容：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="code">```javascript</span></span><br><span class="line"><span class="code">function sayHello() &#123;</span></span><br><span class="line"><span class="code">  console.log(&#x27;Hello World&#x27;);</span></span><br><span class="line"><span class="code">&#125;</span></span><br><span class="line"><span class="code">```</span></span><br></pre></td></tr></table></figure></div><blockquote><p><strong>进阶用法</strong>：在开头的三个反引号后面标注语言名称（如 <code>javascript</code>、<code>python</code>、<code>css</code>），大部分编辑器会自动进行<strong>语法高亮</strong>，代码更易读。</p></blockquote><hr><h3 id="九、分割线"><a href="#九、分割线" class="headerlink" title="九、分割线"></a>九、分割线</h3><p>用三个或以上的 <code>-</code>、<code>*</code> 或 <code>_</code> 独占一行：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">---</span><br></pre></td></tr></table></figure></div><p>效果就是上面那条横线。常用于分隔文章的不同章节。</p><hr><h3 id="十、转义字符"><a href="#十、转义字符" class="headerlink" title="十、转义字符"></a>十、转义字符</h3><p>想显示 <code>*</code>、<code>#</code> 这些符号本身而不被解析成格式？在前面加反斜杠 <code>\</code>：</p><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line">\<span class="emphasis">*这是一个星号，不是斜体的开始\*</span></span><br><span class="line">\#这是一个井号，不是标题的开始\#</span><br></pre></td></tr></table></figure></div><hr><h2 id="实战：一篇完整的-Markdown-文章"><a href="#实战：一篇完整的-Markdown-文章" class="headerlink" title="实战：一篇完整的 Markdown 文章"></a>实战：一篇完整的 Markdown 文章</h2><p>光说不练假把式。下面是一篇用 Markdown 写成的完整短文，<strong>左侧是渲染效果，右侧是源码对照</strong>，帮你直观理解每个语法在实际写作中的运用。</p><hr><h3 id="周末做了一道红烧肉"><a href="#周末做了一道红烧肉" class="headerlink" title="周末做了一道红烧肉"></a>周末做了一道红烧肉</h3><p>今天尝试了新菜谱，效果不错，分享给大家。</p><h4 id="食材"><a href="#食材" class="headerlink" title="食材"></a>食材</h4><ul><li>五花肉 500 克</li><li>冰糖 20 克</li><li>生抽 3 勺</li><li>老抽 1 勺</li><li>八角 2 个</li></ul><h4 id="步骤"><a href="#步骤" class="headerlink" title="步骤"></a>步骤</h4><ol><li>五花肉切块，冷水下锅焯水去腥</li><li>锅里放少许油，加入冰糖炒出糖色</li><li>放入五花肉翻炒上色</li><li>加入生抽、老抽、八角，加水没过肉面</li><li>小火慢炖 40 分钟，大火收汁出锅</li></ol><p>出锅撒上葱花，<strong>完美</strong>。</p><blockquote><p>这道菜的诀窍在于：炒糖色不能心急，小火慢慢熬，等到冰糖融化成<strong>琥珀色</strong>再放肉，色泽才会红亮诱人。</p><p>古人云：「治大国若烹小鲜。」做菜和做事一样，火候到了，自然成。</p></blockquote><p><em>以上就是今天的分享，希望你也能做出好吃的红烧肉。</em></p><hr><h3 id="对应源码"><a href="#对应源码" class="headerlink" title="对应源码"></a>对应源码</h3><div class="code-container" data-rel="Markdown"><figure class="iseeu highlight markdown"><table><tr><td class="code"><pre><span class="line"><span class="section">### 周末做了一道红烧肉</span></span><br><span class="line"></span><br><span class="line">今天尝试了新菜谱，效果不错，分享给大家。</span><br><span class="line"></span><br><span class="line"><span class="section">#### 食材</span></span><br><span class="line"></span><br><span class="line"><span class="bullet">-</span> 五花肉 500 克</span><br><span class="line"><span class="bullet">-</span> 冰糖 20 克</span><br><span class="line"><span class="bullet">-</span> 生抽 3 勺</span><br><span class="line"><span class="bullet">-</span> 老抽 1 勺</span><br><span class="line"><span class="bullet">-</span> 八角 2 个</span><br><span class="line"></span><br><span class="line"><span class="section">#### 步骤</span></span><br><span class="line"></span><br><span class="line"><span class="bullet">1.</span> 五花肉切块，冷水下锅焯水去腥</span><br><span class="line"><span class="bullet">2.</span> 锅里放少许油，加入冰糖炒出糖色</span><br><span class="line"><span class="bullet">3.</span> 放入五花肉翻炒上色</span><br><span class="line"><span class="bullet">4.</span> 加入生抽、老抽、八角，加水没过肉面</span><br><span class="line"><span class="bullet">5.</span> 小火慢炖 40 分钟，大火收汁出锅</span><br><span class="line"></span><br><span class="line">出锅撒上葱花，<span class="strong">**完美**</span>。</span><br><span class="line"></span><br><span class="line"><span class="quote">&gt; 这道菜的诀窍在于：炒糖色不能心急，小火慢慢熬，等到冰糖融化成<span class="strong">**琥珀色**</span>再放肉，色泽才会红亮诱人。</span></span><br><span class="line"><span class="quote">&gt;</span></span><br><span class="line"><span class="quote">&gt; 古人云：「治大国若烹小鲜。」做菜和做事一样，火候到了，自然成。</span></span><br><span class="line"></span><br><span class="line"><span class="emphasis">*以上就是今天的分享，希望你也能做出好吃的红烧肉。*</span></span><br></pre></td></tr></table></figure></div><hr><h2 id="推荐工具"><a href="#推荐工具" class="headerlink" title="推荐工具"></a>推荐工具</h2><p>学会语法后，你需要一个顺手的编辑器来实践。以下三款覆盖不同需求：</p><table><thead><tr><th>工具</th><th>适合人群</th><th>特点</th></tr></thead><tbody><tr><td><strong>Typora</strong></td><td>所有人（强烈推荐）</td><td>所见即所得，极简界面，支持导出 PDF&#x2F;HTML&#x2F;Word，全平台</td></tr><tr><td><strong>VS Code</strong></td><td>程序员</td><td>装个 Markdown 插件即可，支持预览、格式化、文件管理</td></tr><tr><td><strong>StackEdit &#x2F; Dillinger</strong></td><td>不想装软件的用户</td><td>浏览器打开就能写，写完直接复制到 WordPress</td></tr></tbody></table><hr><h2 id="写在最后"><a href="#写在最后" class="headerlink" title="写在最后"></a>写在最后</h2><p>Markdown 不难，<strong>半小时就能上手</strong>。但一旦习惯它，你会发现再也回不去鼠标点来点去的排版方式了。</p><p><strong>所以，别犹豫了。打开编辑器，用 Markdown 写下你的下一篇文章吧。</strong> 你会发现，写作从未如此顺畅。</p>]]></content>
    
    
    <summary type="html">从零开始写出一篇漂亮的博客文章</summary>
    
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/categories/%E6%95%99%E7%A8%8B/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>怎么查网站有没有被收录？</title>
    <link href="https://blog.goose.cc.cd/posts/how-to-check-your-website/"/>
    <id>https://blog.goose.cc.cd/posts/how-to-check-your-website/</id>
    <published>2026-07-28T13:10:52.000Z</published>
    <updated>2026-07-28T13:36:40.000Z</updated>
    
    <content type="html"><![CDATA[<h1 id="怎么查网站有没有被收录？"><a href="#怎么查网站有没有被收录？" class="headerlink" title="怎么查网站有没有被收录？"></a>怎么查网站有没有被收录？</h1><p>想知道网站有没有被搜索引擎收录，最简单的方法只需要一步。</p><h2 id="核心方法：site-命令"><a href="#核心方法：site-命令" class="headerlink" title="核心方法：site 命令"></a>核心方法：site 命令</h2><p>打开 Bing 搜索（Google、百度也行），在搜索框里输入：</p><div class="code-container" data-rel="Avrasm"><figure class="iseeu highlight avrasm"><table><tr><td class="code"><pre><span class="line"><span class="symbol">site:</span>你的域名</span><br></pre></td></tr></table></figure></div><p>举例，如果网站是 <code>starblog.totalh.net</code>，就输入：</p><div class="code-container" data-rel="Avrasm"><figure class="iseeu highlight avrasm"><table><tr><td class="code"><pre><span class="line"><span class="symbol">site:</span>starblog.totalh.net</span><br></pre></td></tr></table></figure></div><p>然后按回车。</p><h2 id="怎么看结果"><a href="#怎么看结果" class="headerlink" title="怎么看结果"></a>怎么看结果</h2><ul><li>搜索结果里出现了你的网站链接 → 恭喜，已经被收录了。</li><li>显示「没有找到任何结果」 → 暂时还没被收录。</li></ul><h2 id="查单个页面"><a href="#查单个页面" class="headerlink" title="查单个页面"></a>查单个页面</h2><p>想查某个具体页面有没有被收录，就在域名后面加上路径，例如：</p><div class="code-container" data-rel="Avrasm"><figure class="iseeu highlight avrasm"><table><tr><td class="code"><pre><span class="line"><span class="symbol">site:</span>starblog.totalh.net/hello</span><br></pre></td></tr></table></figure></div><h2 id="小提示"><a href="#小提示" class="headerlink" title="小提示"></a>小提示</h2><ul><li>新网站提交给搜索引擎后，通常需要几天到几周才会被收录，这段时间耐心等一等。</li><li>如果等了比较久还没被收录，可以去 Bing 站长工具（或 Google Search Console）提交站点地图（sitemap），帮助搜索引擎更快发现你的网站。</li></ul><p>就这么简单，不需要任何代码，也不需要装插件，记住 <code>site:你的域名</code> 这一招就够了。</p><hr><p>转载自：<a class="link"   href="https://starblog.totalh.net/wp59/archives/3/%e6%80%8e%e4%b9%88%e6%9f%a5%e7%bd%91%e7%ab%99%e6%9c%89%e6%b2%a1%e6%9c%89%e8%a2%ab%e6%94%b6%e5%bd%95/" >https://starblog.totalh.net/wp59/archives/3/%e6%80%8e%e4%b9%88%e6%9f%a5%e7%bd%91%e7%ab%99%e6%9c%89%e6%b2%a1%e6%9c%89%e8%a2%ab%e6%94%b6%e5%bd%95/<i class="fa-solid fa-arrow-up-right ml-[0.2em] font-light align-text-top text-[0.7em] link-icon"></i></a></p>]]></content>
    
    
    <summary type="html">想知道网站有没有被搜索引擎收录？戳这里</summary>
    
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/categories/%E6%95%99%E7%A8%8B/"/>
    
    
    <category term="教程" scheme="https://blog.goose.cc.cd/tags/%E6%95%99%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>GooseBlog 升级日志 2026-07-27</title>
    <link href="https://blog.goose.cc.cd/posts/gooseblog-update-20260727/"/>
    <id>https://blog.goose.cc.cd/posts/gooseblog-update-20260727/</id>
    <published>2026-07-27T08:17:21.000Z</published>
    <updated>2026-07-27T08:29:45.000Z</updated>
    
    <content type="html"><![CDATA[<p>一次性十几个功能的更新，外加一堆 bug 修复。按模块记录。</p><h2 id="CSS-模块化"><a href="#CSS-模块化" class="headerlink" title="CSS 模块化"></a>CSS 模块化</h2><p>之前所有样式挤在 <code>index.html</code> 的 <code>&lt;style&gt;</code> 里 1170+ 行。拆成了 5 个独立 CSS 文件：<code>core.css</code>（变量&#x2F;重置）、<code>layout.css</code>（侧栏&#x2F;顶栏&#x2F;响应式）、<code>article.css</code>（文章列表&#x2F;详情&#x2F;归档）、<code>components.css</code>（目录球&#x2F;调色板&#x2F;链接卡片）、<code>widgets.css</code>（图片查看器&#x2F;分享球&#x2F;开屏动画）。模块之间职责分离，改样式不用翻山越岭。</p><h2 id="代码高亮（Prism）"><a href="#代码高亮（Prism）" class="headerlink" title="代码高亮（Prism）"></a>代码高亮（Prism）</h2><p>引入 Prism.js，<code>prism-tomorrow</code> 暗色主题。bootcdn 加载，自动识别 language 类名，路由切换后自动重新着色。支持 autoloader 按需加载语言包。</p><h2 id="国际化（i18n）"><a href="#国际化（i18n）" class="headerlink" title="国际化（i18n）"></a>国际化（i18n）</h2><p>双向语言支持。<code>src/js/i18n-core.js</code> 同步加载，暴露全局 <code>window.__()</code> 给所有非模块脚本。侧栏导航、顶栏标题、分享球、代码复制、Toast、右键菜单、热力图、目录球、项目&#x2F;关于&#x2F;归档&#x2F;友链页面——全部硬编码中文替换为 i18n key 调用。侧栏底部有语言切换（后移到顶栏月亮按钮旁），localStorage 持久化。</p><p>切语言时同步更新视图模式标签条、AI 屏蔽按钮、标签展开&#x2F;收起——不需要页面刷新。</p><h2 id="开屏动画"><a href="#开屏动画" class="headerlink" title="开屏动画"></a>开屏动画</h2><p>首次访问首页时，全屏深色遮罩 + &quot;GooseBlog&quot; SVG 描边画出（2.6s 由短到长）+ 底部 loader 条。后台组件正常加载，内容就绪后遮罩淡出，文章卡片以弹簧缓动（cubic-bezier 0.34 1.56 0.64 1）从小到大入场。遮罩最短展示 2.8s，入场提前 50ms 与淡出重叠。只播放一次，内部导航不重复。</p><h2 id="调色板"><a href="#调色板" class="headerlink" title="调色板"></a>调色板</h2><p>侧栏底部小按钮，14 个预设色 + 自定义取色器。选了蓝全站变蓝，选了绿全绿。所有品牌色都走 CSS 变量，之前硬编码的 <code>#6d28d9</code> &#x2F; <code>#7c3aed</code> 全部清空。localStorage 存用户偏好。</p><h2 id="友链板块"><a href="#友链板块" class="headerlink" title="友链板块"></a>友链板块</h2><p>侧栏新增&quot;友链&quot;导航，<code>/friends</code> 页网格卡片展示（头像、名称、描述）。后台管理加了标签切换（文章 &#x2F; 友链），可以直接加&#x2F;删友链。后端 Worker 加了 <code>POST/DELETE /api/admin/friends</code> 端点。</p><h2 id="图片查看器"><a href="#图片查看器" class="headerlink" title="图片查看器"></a>图片查看器</h2><p>文章图片点击弹出全屏遮罩大图，点图片&#x2F;空白&#x2F;叉号或 ESC 关闭。</p><h2 id="悬浮目录"><a href="#悬浮目录" class="headerlink" title="悬浮目录"></a>悬浮目录</h2><p>文章页右下角圆球，展开 h2&#x2F;h3 标题大纲，点击平滑跳转。</p><h2 id="分享海报"><a href="#分享海报" class="headerlink" title="分享海报"></a>分享海报</h2><p>右下角分享悬浮球，含&quot;复制链接&quot;和&quot;生成海报&quot;。海报方案：html2canvas + QuickChart 二维码，一次下载 PNG。踩坑记录：Canvas 硬画 CORS 堵死 → SVG foreignObject 自闭合爆炸 → html2canvas proxy 最终方案。</p><h2 id="链接卡片"><a href="#链接卡片" class="headerlink" title="链接卡片"></a>链接卡片</h2><p>文章里裸链接自动拉 OG 标签渲染预览卡片，后端 <code>/api/link-preview</code> 端点抓取 title&#x2F;description&#x2F;image。</p><h2 id="代码块复制"><a href="#代码块复制" class="headerlink" title="代码块复制"></a>代码块复制</h2><p>代码块鼠标悬停右上角出现复制按钮，点一下复制整块代码，按钮变绿反馈 2s。</p><h2 id="前后篇导航"><a href="#前后篇导航" class="headerlink" title="前后篇导航"></a>前后篇导航</h2><p>文章底部显示上一篇&#x2F;下一篇标题和摘要，点击跳转。</p><h2 id="文章进步体"><a href="#文章进步体" class="headerlink" title="文章进步体"></a>文章进步体</h2><p>正文也从系统字体换成了 DingTalk JinBuTi，全站字体统一。</p><h2 id="品牌色硬编码清零"><a href="#品牌色硬编码清零" class="headerlink" title="品牌色硬编码清零"></a>品牌色硬编码清零</h2><p>扫描全站 CSS 和 JS，所有 <code>#8b5cf6</code>、<code>#6d28d9</code>、<code>#7c3aed</code>、<code>#4c1d95</code> 实例清干净——只保留 <code>:root</code> 里的初始变量定义。color-picker 新增 <code>--brand-rgb</code> 变量同行更新。选橘色不会再露出紫色残影。</p><h2 id="修复清单"><a href="#修复清单" class="headerlink" title="修复清单"></a>修复清单</h2><ul><li>热力图 hover transform scale 导致鼠标指针闪烁 → 关掉</li><li>前进后退内部栈和浏览器历史不同步 → 改原生 history.back&#x2F;forward</li><li>Safari 工具栏遮挡 → 100dvh 反复测试后定稿</li><li>广告拦截器干掉按钮 → 类名去广告关键词</li><li>Worker 部署需手动激活（铁律 1）+ wrangler hash 缓存跳过（铁律 5）</li><li>友链点击后侧栏高亮停留首页 → 补 NAV_MAP</li><li>英文模式下落叶飘落&#x2F;点击特效&#x2F;调色板&#x2F;屏蔽AI → 加 data-i18n</li><li>两处中文乱码：CSS 注释 + i18n 字典</li><li>两个悬浮球大小不统一 → 统一 44x44 &#x2F; 40x40</li><li>图片点击不关闭 → 加 img 到关闭判定</li><li>封面图底部渐变和标题融合、竖屏适配</li><li>语言切换后分享球文字不更新 → 加 langchange 监听</li><li>海报下载 html2canvas CORS + foreignObject + proxy 曲折选择</li><li>导航高亮（友链、admin）</li></ul><h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>博客从纯文字阅读器变成了一个勉强能用的多功能页面。功能代码量不大，踩坑密度极高。P.S. 海报下载功能让一个 CV 工程师体验了从 Canvas 到 foreignObject 到 html2canvas 再到 proxy 的完整前端&quot;进化树&quot;。</p><blockquote><p>由workbuddy编写</p></blockquote>]]></content>
    
    
    <summary type="html">一次性十几个功能的大更新。</summary>
    
    
    
    <category term="建站" scheme="https://blog.goose.cc.cd/categories/%E5%BB%BA%E7%AB%99/"/>
    
    
    <category term="GooseBlog" scheme="https://blog.goose.cc.cd/tags/GooseBlog/"/>
    
  </entry>
  
</feed>
