接口地址

域名:https://open.mindoffice.cn
uri : /open-platform/api/note/v1/add_note

请求地址

https://open.mindoffice.cn/open-platform/api/note/v1/add_note

请求方式

POST+JSON

请求Header

app-id 系统分配
app-secret 系统分配

请求参数

 

字段类型必须描述默认示例值
titlestringNote标题,上限64字title
bodystringNote{"content":"各种格式类型:markdown、富文本、纯文本","format":"text"}
project_idstringMind项目ID/ 事项IDETJ6EO
agsarray标签tags:["LF","LS"]

body 参数 ,要转成json 字符串

字段类型必须描述默认示例值
formatstring内容格式text (纯文本)
markdown (markdown)
rich_text (富文本)
content由format决定,可能是string、array内容

body 内容(tex、rich_text、markdown)

内容模块以文本内容为主体,同时可以选择图文混排、纯文本、markdown

纯文本格式 text 需转成json 字符串
字段类型必须描述默认示例值
formatStringtext模块标签,固定值text 
contentString内容纯文本内容 

 

body值:
"{\"content\":\"123213\",\"format\":\"text\"}"

{
      "format":"text", // 文本标识 
      "content":"123213" // 文本内容
}
富文本格式 rich_text ,需转成json 字符串
字段类型必须描述默认示例值
formatStringtext模块标签,固定值rich_text
contentstring内容纯文本内容
{
        "format": "rich_text",
        "content": [
            {
                "type": "paragraph",
                "content": [
                    {
                        "type": "text",
                        "marks": [
                            {
                                "type": "bold"
                            }
                        ],
                        "text": "所有项目180天收入"
                    }
                ]
            },
            {
                "type": "paragraph",
                "content": [
                    {
                        "type": "text",
                        "text": "最后更新时间:2023-7-7发布人:桃子(每月3日09:15 推送)"
                    }
                ]
            }
        ]
    }


markdown 格式,需要转成json 字符串

字段类型必须描述默认示例值
formatStringtext模块标签,固定值markdown
contentStringMarkdown标签内容使用已支持的Markdown语法构造Markdown内容。 

 

{
    "format": "markdown",
    "content": "**总结性分析总览**\n"
}

 

返回参数

 

字段类型必须描述默认示例值
codestring状态码200200:成功
非200:失败
msgstring提示  
dataobject

 

成功

{
  "code": 200,
  "msg": "OK",
  "data": {}
}

失败

{
  "code": 100002,
  "msg": "appId或appSecret异常,未能查询到app",
  "data": null
}

 

Curl 格式

curl -X POST --location "https://open.mindoffice.cn/open-platform/api/note/v1/add_note" \
    -H "Content-Type: application/json" \
    -H "APP-ID: mind_o1r9fs84jt11t" \
    -H "APP-Secret: WLkHcyFkNL8HA2TPrQX0n6WwStXk" \
    -d "{
          \"title\": \"XX项目记录\",
          \"body\":\"{\\\"content\\\":\\\"各种格式类型:markdown、富文本、纯文本\\\",\\\"format\\\":\\\"markdown\\\"}\",
          \"project_id\":\"ETJ6EO\",
          \"tags\":[\"LS1\",\"Git3\"]
        }"
 更新时间:2026-03-26
上一篇:
下一篇: