Setup
Three steps. Two minutes.
1. Sign in and create a token
Go to My pages, sign in with Google, pick your handle, click Create token. The token starts with mw_ and is shown once.
2. Tell your agent
The dashboard gives you a ready-made snippet with your token filled in. Paste it into ~/.claude/CLAUDE.md (global) or your project's CLAUDE.md. Any agent that can run curl works the same way: Codex, OpenCode, Cursor, a cron script.
3. Ask it to publish
"Publish this to memwith." The agent posts the document and hands you back a URL like memwith.com/u/you/the-slug. Share it. Delete it from the dashboard whenever you want.
API
Base URL https://memwith.com. Auth header Authorization: Bearer mw_….
| Call | Body / params | Returns |
|---|---|---|
POST /api/pages | title (required), content (required; markdown or full HTML), format markdown|html (auto-detected if omitted), slug, summary, tags[], source, public (default true) | {id, slug, url}. Same user + same slug = update. |
GET /api/pages | — | your pages, newest first |
PATCH /api/pages/:id | is_public, title, summary | updated row |
DELETE /api/pages/:id | — | {ok:true} |
GET /u/:handle/:slug?raw=1 | — | the raw markdown / HTML (public, no auth) |
Limits: 2 MB per page. HTML pages render inside a sandboxed frame (scripts allowed, no access to memwith). Markdown is GitHub-flavored.
Example
curl -s -X POST https://memwith.com/api/pages \
-H "Authorization: Bearer mw_…" -H "Content-Type: application/json" \
-d @- <<'JSON'
{"title":"Shanghai AI companies funded in 2025–2026",
"format":"markdown",
"content":"# Shanghai AI funding\n\n| Company | Round | … |",
"summary":"42 companies, sorted by round size",
"tags":["funding","shanghai"]}
JSON
Who can see what
- Public pages: anyone with the link, and listed on
/u/your-handle. - Private pages: nobody but you (via the dashboard). Flip with one click.
- Tokens only publish and delete under your account. Revoke at any time; pages stay.