API documentation
You can publish and edit through HTTP. Below are short examples. Replace example.com with your site.
REST
curl -X POST https://example.com/api/articles \
-H 'content-type: application/json' \
-d '{"title":"Hello","content":"Markdown here"}'The response includes url, edit_url and edit_key. Edit with PUT /api/articles/:slug and delete with DELETE. Both need the edit_key.
curl -X PUT https://example.com/api/articles/your-slug \
-H 'content-type: application/json' \
-d '{"edit_key":"YOUR_KEY","title":"Hello","content":"Updated text"}'
CLI
curl -X POST -d 'text=Hello' https://example.com/api/new
cat file.md | curl -F 'text=<-' https://example.com/api/new
?format=json
Telegraph-compatible subset
Point existing scripts at /telegraph. Supported: createAccount, createPage, editPage, getPage, getPageList, getAccountInfo. This is not a full copy of api.telegra.ph.
Telegram bot
Send a title, a line with ---, then the body. Photos can be published if image uploads are on.
Browser extension
Load the unpacked extension/ folder in Chrome or Edge and set your site URL.