安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/celend/memo-api

必需环境变量

MAIMEMO_TOKEN

文档

MaiMemo Open API

Auth & Base

  • Base URL: https://open.maimemo.com/open/api/v1
  • Token: env var $MAIMEMO_TOKEN — set via app (墨墨背单词 → 开放 API)
  • Auth header: Authorization: Bearer $MAIMEMO_TOKEN
bash
curl -s -X ${METHOD} "${BASE}/${PATH}" \
  -H "Authorization: Bearer $MAIMEMO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '${BODY}'

Rate limits: 20/10s, 40/60s, 2000/5h

Key Concepts

  • voc_id resolution: Most endpoints need voc_id, not spelling. Resolve via GET /vocabulary?spelling=word or POST /vocabulary/query (batch up to 1000).
  • POST for updates: Update endpoints use POST /resource/{id}, not PUT/PATCH.
  • Status values: Resources use status enums (PUBLISHED, UNPUBLISHED, DELETED) — vary by domain.
  • Timestamps: All times are ISO 8601. Study date filters use Beijing timezone (UTC+8).

Domain Routing

TaskRead reference file
Look up voc_id / spelling → idvocabulary-api.md
CRUD custom definitionsinterpretations-api.md
CRUD mnemonics (联想/谐音/派生/词根/词源/固搭/语法/对比 etc.)notes-api.md
Manage word lists / cloud notepadsnotepads-api.md
CRUD example sentencesphrases-api.md
Study progress, records, schedulesstudy-api.md

Before calling any endpoint, read the corresponding reference file for exact params, body schema, and curl examples.

Study Usage Scenes

All study endpoints are POST and beta (需要打开自动同步).

Today's Progress

Endpoint: POST /study/get_study_progress (empty body) Returns: finished (done count), total (target count), study_time (ms)

SceneEndpointKey params
Words left todayget_study_progresscompute total - finished
Study time todayget_study_progressstudy_time (ms → min)

Today's Words

Endpoint: POST /study/get_today_items

SceneEndpointKey params
Forgotten words todayget_today_itemsis_finished: true, filter first_response = "FORGET"
New words todayget_today_itemsis_new: true
Unfinished wordsget_today_itemsis_finished: false
Specific word historyget_today_itemsspellings: ["word"] or voc_ids: ["id"]

Study Records

Endpoint: POST /study/query_study_records

SceneEndpointKey params
Words due in next N daysquery_study_recordsnext_study_date.end: "YYYY-MM-DDT00:00:00+08:00", as_count: true
Total words in planquery_study_recordsas_count: true (no filters)
Frequently forgotten (sticky)query_study_recordsiterate pages, filter tags = "STICKING"
Well-familiar wordsquery_study_recordsiterate pages, filter tags = "WELL_FAMILIAR"
Export all study dataquery_study_recordspaginate via sliding next_study_date window, limit: 1000

Multi-domain Workflow Hints

  • Add mnemonic to word: Vocabulary (get voc_id) → Notes (create)
  • Add example sentence: Vocabulary (get voc_id) → Phrases (create)
  • Add custom definition: Vocabulary (get voc_id) → Interpretations (create)
  • Build word list from study data: Study records (query) → Notepads (create with spellings)
  • Full word info: Vocabulary (get voc_id) → Interpretations + Notes + Phrases (list all)