# 内容库小说文件上传接口

更新时间:2024-03-19 19:54:42

# 1 接口概述

# 1.1 接口介绍

该接口用于小说原文上传,原文将用于识别视频内容提高各渠道分发效率。

# 1.2 上传规则

  • 目前仅支持文本文件类型上传,大小控制在400KB以内。

# 1.3 流程说明


 "extraInfo" : {
  "textFileKey":"f2b8ccd4-02d3-4d7b-ab03-02a9b4a93a"
  //......
}

# 2 接口地址

POST   https://open.kuaishou.com/openapi/mp/developer/feed/doc/upload (opens new window)

# 3 接口定义

# 3.1 请求参数

参数类型位置含义是否必须
access_tokenstring放到 query param, 即url后面接口调用凭证
app_idstring放到 query param, 即url后面小程序 appId
file文件 multipart/form-data

# 3.2 请求响应

返回数据类型含义
data.fileKeystring返回文件的key,这个key在创建feed时传递以绑定和feed的关系。

# 3.3 成功响应

{
    "result": 1,
    "error_msg": "success",
    "data": {
        "fileKey": "9a922bec-6a18-4dfb-ac4b-768dd3f82048"
    }
}

# 3.4 失败响应

{
    "result": 10000200,
    "error_msg": "文件包含敏感内容"
}
Copyright ©2026, All Rights Reserved