保存单条笔记、链接或回答
一次发送一条,作为 clip 进入 MyInc 工作区,供你的 AI 团队复用。
Agent API v1
用一个 API key 即可把笔记、链接、Markdown 和文件送进 MyInc 工作区。同一套 API 可以把这些上下文转化为 pages 和 drafts——但在发布之前,始终等待你的批准。
curl https://myinc.app/api/agent/clips \
-X POST \
-H 'Authorization: Bearer tk_your_api_key' \
-H 'Idempotency-Key: clip-001' \
-H 'Content-Type: application/json' \
-d '{
"title": "每周洞察",
"text": "保存今天调研中值得留存的最终答案。"
}'一次发送一条,作为 clip 进入 MyInc 工作区,供你的 AI 团队复用。
把相关条目归入一个 capture,让工作区把它们放在一起以备后用。
先把上下文整理成 page,再让 MyInc 生成 draft——结果会保持待你批准的状态。
从你的 agent 打开一个 project,随着工作推进把 clip、page、draft 放入 project 的各个 stage。
登录 MyInc,在 Settings → API keys 中创建 scoped API key。
在每个请求中以 Bearer 认证发送 key,并在写请求上加 Idempotency-Key。
先从一个 clip 或一个 ingest 批次开始,再扩展到 pages、draft 生成、上传和 projects。
MyInc Agent API v1 使用个人 API key。在 Settings → API keys 为特定集成创建 scoped key,并作为 Bearer token 保存在服务端。
curl https://myinc.app/api/agent/clips \
-X POST \
-H 'Authorization: Bearer tk_your_api_key' \
-H 'Idempotency-Key: clip-001' \
-H 'Content-Type: application/json' \
-d '{
"title": "每周洞察",
"text": "保存今天调研中值得留存的最终答案。"
}'Agent API 请求遵循与产品相同的套餐限制。额度在 AI 相关操作上扣除,而非单独的 agent 专用配额。
写入端点支持 Idempotency-Key。用同一个 key 重发相同请求会返回已存结果;用同一个 key 但不同 body 会返回 409。
curl https://myinc.app/api/agent/projects \
-X POST \
-H 'Authorization: Bearer tk_your_api_key' \
-H 'Idempotency-Key: project-2026-04-launch' \
-H 'Content-Type: application/json' \
-d '{
"name": "四月发布计划",
"template": "goal_milestones"
}'/api/agent/clips用于单条笔记、链接或要保存的回答。
{
"title": "保存的回答",
"text": "这是值得留存的最终摘要。",
"tags": ["research", "launch"]
}/api/agent/ingest把文本、URL 和 Markdown 一起发送,并归入同一个 capture。
{
"items": [
{ "type": "url", "url": "https://example.com/article" },
{ "type": "markdown", "title": "笔记", "text": "# 要点\n- 一\n- 二" }
]
}/api/agent/upload当 agent 需要附加文件时,也可通过同一套 Agent API 处理 multipart 上传。
curl https://myinc.app/api/agent/upload \
-H 'Authorization: Bearer tk_your_api_key' \
-H 'Idempotency-Key: upload-001' \
-F '[email protected]'/api/agent/pages/:id/generate当保存的 clips 已整理成 page 后,用它从该 page 生成草稿。
{
"mode": "custom",
"prompt": "把这个 page 变成一篇可发布的简短简报。"
}/api/agent/projects从 agent 工作流以名称、模板和状态开启一个新的 MyInc project。
{
"name": "四月发布计划",
"template": "goal_milestones",
"icon": "🚀"
}/api/agent/projects/:id/items从 agent 工作流把 clip、page、draft 或 published 条目放入 MyInc project 的某个 stage。
{
"stage": "clip",
"referenceId": "clip_123"
}Agent API v1 以同一个 envelope 返回成功与失败,便于你的集成统一处理。
{
"success": true,
"data": {
"id": "clip_123",
"title": "保存的回答"
},
"error": null
}把 Hermes 或你自建的 agent 接入 MyInc 工作区。先从 clips 和 ingest 开始,随着 AI 团队承担更多工作,再加入 pages、generation 和 projects。
展开每个端点即可查看请求体、响应示例和集成说明。
/api/agent/clips创建一个 clip{
"title": "保存的回答",
"text": "这是值得留存的最终摘要。",
"tags": ["research", "launch"]
}{
"success": true,
"data": {
"id": "clip_123",
"title": "保存的回答",
"text": "这是值得留存的最终摘要。"
},
"error": null
}/api/agent/ingest批量 ingest{
"items": [
{ "type": "url", "url": "https://example.com/article" },
{ "type": "markdown", "title": "笔记", "text": "# 要点\n- 一\n- 二" }
]
}{
"success": true,
"data": {
"captureBatchId": "batch_123",
"created": [
{ "id": "clip_1", "title": "https://example.com/article", "url": "https://example.com/article" },
{ "id": "clip_2", "title": "笔记", "url": null }
],
"failed": []
},
"error": null
}/api/agent/upload上传文件curl https://myinc.app/api/agent/upload \
-H 'Authorization: Bearer tk_your_api_key' \
-H 'Idempotency-Key: upload-001' \
-F '[email protected]'{
"success": true,
"data": {
"id": "clip_upload_123",
"title": "notes.md"
},
"error": null
}/api/agent/pages/:id/generate从 page 生成 draft{
"mode": "custom",
"prompt": "把这个 page 变成一篇可发布的简短简报。"
}{
"success": true,
"data": {
"jobId": "draft_123",
"type": "page_generation",
"status": "completed",
"result": {
"draftId": "draft_123"
}
},
"error": null
}/api/agent/projects创建一个 project{
"name": "四月发布计划",
"template": "goal_milestones",
"icon": "🚀"
}{
"success": true,
"data": {
"id": "project_123",
"name": "四月发布计划",
"template": "goal_milestones"
},
"error": null
}/api/agent/projects/:id/items向 project stage 添加条目{
"stage": "clip",
"referenceId": "clip_123"
}{
"success": true,
"data": {
"id": "project_item_123",
"stage": "clip",
"referenceId": "clip_123"
},
"error": null
}最好的第一个集成很简单:把一条有用的回答、一个链接或一条 Markdown 笔记送进工作区。跑通之后,再把它变成由你的 AI 团队待批准准备好的 pages 和 drafts。