开发者 API 文档

用于管理 E-ink Todo List 待办事项的集成 API。

Base URL

https://www.einktodo.com

请求头 (Headers)

Header必填说明
x-api-key是您的 API Key. 在此获取。
Content-Type是POST/PATCH 请求必须为 application/json。

接口

1. 获取待办列表

GET /api/developer/todo

返回待办事项列表。

参数:

响应:

{
  "data": [
    {
      "id": "...",
      "title": "买牛奶",
      "completed": false
    }
  ],
  "pagination": {
    "total": 1,
    "page": 1,
    "limit": 10,
    "totalPages": 1
  }
}

2. 创建待办

POST /api/developer/todo

创建一个新的待办事项。

请求体:

{
  "title": "买牛奶",
  "remark": "2升, 全脂",
  "tags": ["杂货"]
}

3. 批量创建/更新

POST /api/developer/todo/batch

批量创建或更新多个待办事项。

请求体:

{
  "list": [
    { "title": "任务 1" },
    { "id": "existing-id", "title": "更新任务" }
  ]
}

在找 MCP 集成(连接 Claude Desktop / Cursor、e-ink 设备与显示工具)?它已迁移到 AI 助手页面。