Loading...
Loading...
Operate a Memos instance over its REST API. Use when the user wants to create, search, update, or delete memos, manage tags, attachments, or user settings through a reachable Memos server.
npx skill4agent add zzci/skills pma-mem$MEMOS_URLhttp://memos:5230$MEMOS_TOKEN$MEMOS_URL$MEMOS_TOKENcurl -sjq-H "Authorization: Bearer $MEMOS_TOKEN"/api/v1/updateMask{collection}/{id}memos/abc123users/roypageSizepageTokennextPageToken{"code": N, "message": "...", "details": []}PRIVATEPROTECTEDPUBLICNORMALARCHIVED# Health check (no auth needed)
curl -s "$MEMOS_URL/api/v1/instance/profile" | jq
# List memos
curl -s -H "Authorization: Bearer $MEMOS_TOKEN" \
"$MEMOS_URL/api/v1/memos?pageSize=10" | jq
# Create memo
curl -s -X POST -H "Authorization: Bearer $MEMOS_TOKEN" \
-H 'Content-Type: application/json' \
"$MEMOS_URL/api/v1/memos" \
-d '{"content":"Hello from CLI","visibility":"PRIVATE"}' | jq
# Search memos by content filter
curl -s -H "Authorization: Bearer $MEMOS_TOKEN" \
"$MEMOS_URL/api/v1/memos?filter=content.contains(\"keyword\")" | jq
# Update memo content
curl -s -X PATCH -H "Authorization: Bearer $MEMOS_TOKEN" \
-H 'Content-Type: application/json' \
"$MEMOS_URL/api/v1/memos/{uid}?updateMask=content" \
-d '{"content":"Updated content"}' | jq
# Delete memo
curl -s -X DELETE -H "Authorization: Bearer $MEMOS_TOKEN" \
"$MEMOS_URL/api/v1/memos/{uid}" | jq
# Archive memo
curl -s -X PATCH -H "Authorization: Bearer $MEMOS_TOKEN" \
-H 'Content-Type: application/json' \
"$MEMOS_URL/api/v1/memos/{uid}?updateMask=state" \
-d '{"state":"ARCHIVED"}' | jqreferences/rest-api.mdreferences/workflows.mdreferences/rest-api.mdreferences/workflows.md