Posting notes¶
A note is a file. Post its bytes to POST /<feed> and say in Content-Type what kind of file it is:
curl -H "Content-Type: text/markdown" --data-binary @note.md https://notes.example.com/homelab-7f3k2q9x4m8wz
The feed is created by its first note; there is nothing to set up. To reserve a name before posting, create the feed without a note: POST /api/v1/feeds/<feed> with optional JSON {"password", "read_id"}, the MCP tool create_feed, createFeed / create_feed in the client packages, or Create feed without a note in the web UI (on notefeed.me it needs an account whose license covers one more feed). notefeed answers 201 with the note's id, its url in the web UI, the feed's read_url (the RSS link for readers, see Read links) and the note's file and file_url. The file on disk is the body exactly as posted. From Python or Node, the client libraries build the request for you.
Use --data-binary, not -d
curl -d strips newlines. And set the Content-Type: without it curl sends a form type, which notefeed refuses with 415.
Types¶
Content-Type is required and nothing is guessed:
| Content type | A note of |
|---|---|
text/markdown |
markdown, UTF-8, at most 100 KB |
image/png, image/jpeg, image/gif, image/webp |
a picture of that format |
multipart/form-data |
a note with its pictures |
Anything else, including text/plain and no type at all, is 415. A body that is not what it declares is refused too.
With an instance password¶
If the instance has a password (NOTEFEED_PASSWORD), send it as a bearer token:
curl -H "Authorization: Bearer $NOTEFEED_PASSWORD" -H "Content-Type: text/markdown" \
--data-binary @note.md https://notes.example.com/homelab-7f3k2q9x4m8wz
A feed can have a password of its own as well: see Feed passwords.
Titles¶
A markdown note shows its text as written. Where a name is needed (RSS, the API, the browser's title) it is titled by its first heading, or else its first line. To set a title of your own, send X-Note-Title (at most 100 characters, one line), or fill in the Title field in the web UI; PATCH changes it later. The title is metadata, not part of the file: replacing the content keeps it, and an empty title makes the note follow its text again. A title of your own also shows as the heading above the text.
Sender¶
A note can say who posted it: send X-Note-Sender (at most 100 characters, one line), fill in the Sender field in the web UI, or pass sender from a client or MCP; PATCH changes it later, and an empty one removes it. It is a label, not a proof: whoever can post to the feed can write any name. A note the feed's owner posts signed in, without a sender of its own, shows the feed's Your name on your notes setting (or, on an own instance with sign-in, the name from the identity provider): change the setting and it changes on all of them. Anyone else signed in through a provider gets their own name on the note. The sender shows next to the note's time, in RSS and in the API; the feed's Show who posted setting hides it from readers.
Long notes¶
A note is GitHub-flavoured markdown: tables, task lists, strikethrough and autolinks work. Raw HTML stays text, on the page and in RSS. For a longer text, such as a blog post:
- Code: a fenced block with a language (
```yaml) is highlighted, on the page and ashljs-classes in RSS; one without a language, or with a language it doesn't know, stays plain. - Diagrams: a
```mermaidblock is drawn as a Mermaid diagram on the note's own page, in the browser, with its source a click away; a block that doesn't parse stays as its source. Cards and RSS show the source. - A picture's size: add
#width=480(or#height=270, or both,#width=480&height=270) to its link:. The picture shows at that size in CSS pixels, never wider than the column, on the page and in RSS. It works on a picture posted with the note too:withshot.pngattached keeps the size on the stored picture. Elsewhere the fragment is ignored and the picture shows at its own size. - Headings: on a note's own page each heading has an anchor (
#on hover) to link to that part, and a note with three or more second- and third-level headings starts with a table of contents.
Tags¶
Tags are short labels, such as ci, deploy or failed, so readers and tools can tell notes apart:
curl -H "Content-Type: text/markdown" -H "X-Note-Tags: ci,deploy" --data-binary '# Deploy finished' "$NOTEFEED_URL/$FEED"
- At most 10 per note, each 1 to 32 characters of lowercase letters, digits,
-,_,.and:. - Tags are free labels set by whoever posts: no identity, no access. They show on the read link and in RSS like the note itself.
?tag=cion the feed page, the read-only view, the note list of the API and the RSS feed (/r/<read id>/feed.xml?tag=ci) shows only notes with that tag.- A note's tags can be changed afterwards with a
PATCH(see Editing) or Edit on its page: the whole list is replaced, and the note keeps its id, address and date.
A note's language¶
A note can say what language it is in:
curl -H "Content-Type: text/markdown" -H "X-Note-Language: de" --data-binary @post.md "$NOTEFEED_URL/$FEED"
X-Note-Languageis a language tag (de,en,pt-BR). The note's page, the read link, RSS (<dc:language>) and Atom (xml:lang) mark the note's text with it, so screen readers and feed readers read it in that language; its foot shows it quietly, asDE.- In the web UI it is the Language field of the compose box.
PATCH(language) changes it later, and an empty one removes it. - Notes used to carry it as a
lang:detag. A post or an edit that still sends a single such tag, and not the field, sets the language instead of storing the tag. For older notes,scripts/move-lang-tags.mtsin the repository moves a whole feed's (--apply; without it, it only lists them).
A note's date¶
Every note has a date: when it is placed in its feed, the read link and RSS. It is the time of posting unless you send X-Note-Date:
curl -H "Content-Type: text/markdown" -H "X-Note-Date: 2025-03-01T09:30:00+01:00" --data-binary @note.md "$NOTEFEED_URL/$FEED"
- An ISO 8601 date and time with its offset (
Z,+01:00), or a date alone, which is midnight UTC. Any time from 1970 to the end of 9999. - In the past: the note takes its place by that date, as if it had been posted then. An old changelog entry is one example.
- In the future: the note is scheduled. Readers do not see it (not on the read link, in RSS or in the read API; its address answers
404) until its date. You see it on the feed page and in the API, marked as scheduled. Nothing runs at that time: the note is there when the next request comes after it. - On a multipart post every note gets the date, the images a millisecond before the text. Images posted with a note move with it: when the note's date changes, theirs change with it. An image posted on its own and only linked from a note keeps its own date: schedule it too if it must not be seen before the note.
- On a feed with a free note cap, the oldest notes by date go first. A scheduled note counts.
- Until 0.28.0 the header was
X-Note-Created. A post that still sends it gets400, namingX-Note-Date.
Changing the date¶
A note's date can be changed at any time, also after it is published. Its id, URLs and RSS guid stay.
curl -X PATCH -H "Content-Type: application/json" -d '{"date": "2026-12-01T09:00:00Z"}' "$NOTEFEED_URL/api/v1/feeds/$FEED/notes/$ID"
In the web UI it is a field in the compose box (to schedule) and in a note's edit form. The clients take date when posting and updating, the CLI --date, MCP post_note and edit_note date.
Drafts¶
A draft is a note on its feed that readers do not see: not on the read link, in RSS or in the read API, and its address and its pictures' files answer 404. You see it on the feed page and in the API, marked as a draft, and edit it like any note. Post one with X-Note-Draft: true:
curl -H "Content-Type: text/markdown" -H "X-Note-Draft: true" --data-binary @note.md "$NOTEFEED_URL/$FEED"
curl -X PATCH -H "Content-Type: application/json" -d '{"draft": false}' "$NOTEFEED_URL/api/v1/feeds/$FEED/notes/$ID" # publish it
- Publishing changes nothing else: the note keeps its id, its links and its date. A date in the past places it there (in RSS too, below newer notes); a date in the future makes it a scheduled note. Set the date in the same
PATCHif it should be now. {"draft": true}makes a published note a draft again: readers stop seeing it.- Pictures posted with a draft are drafts too, and follow it when it is published or made a draft again. Such a picture's own state can't be changed (
400): publish or hide its note. - A draft picture can't be the feed's title image, and a note whose picture is the title image can't become a draft (
409,title_image). - A draft counts toward a feed's free note cap like any note.
- Its pictures show on the feed page and the note's page, which take them from the feed itself (
/<feed>/files/<file>), not from the read link. Through the API they areGET /api/v1/feeds/{feed}/files/{file}(with the feed password, if any); the clients'file()and MCPget_notewithpictureget them too. The same goes for a scheduled note's pictures. - A draft, like a scheduled note, has no Report link: no reader can see it to report it. It gets one once it is published.
Which notes readers see, by state; each arrow is a change you make (a draft flag or a date), or the scheduled date arriving:
stateDiagram-v2
direction LR
[*] --> Draft: post with X-Note-Draft true
[*] --> Published: post, date now or past
[*] --> Scheduled: post, date in the future
Draft --> Published: draft false, date now or past
Draft --> Scheduled: draft false, date in the future
Published --> Draft: draft true
Scheduled --> Draft: draft true
Scheduled --> Published: its date comes, or a date now or past
Published --> Scheduled: a date in the future
note right of Published: the only state readers see
In the web UI it is the Draft box in the compose box and in a note's edit form. The clients take draft when posting and updating, the CLI post --draft and update --draft / --publish, MCP post_note, post_file and edit_note draft.
Polling¶
A note's id is random: it carries no time and no order, and a date can move into the past. A program that wants new notes asks for the newest page and looks for ids it has not seen before. A scheduled note shows up there when its time comes.
Editing and deleting notes¶
All three use the note's API URL, /api/v1/feeds/<feed>/notes/<id>, and need what posting needs: the instance password, the feed's own password.
URL=https://notes.example.com/api/v1/feeds/homelab-7f3k2q9x4m8wz/notes/Vq3xH8mTn2KfLw0aZr9bYe
curl -X PUT -H "Content-Type: text/markdown" --data-binary @note.md "$URL" # replace the content
curl -X PATCH -H "Content-Type: application/json" -d '{"title": "Backup finished"}' "$URL" # title, alt text of a picture, tags or date
curl -X PATCH -H "Content-Type: application/json" -d '{"tags": ["backup", "done"]}' "$URL" # the whole new list; [] removes them
curl -X DELETE "$URL" # gone for good
- The id stays. A
PUTorPATCHkeeps the note's id and URLs (and its date, unless thePATCHchanges it), so its RSS item keeps itsguid; a reader that already fetched it may keep showing the old text. There is no history. - A note keeps its type: a markdown note takes markdown, a PNG another PNG. A
PUTwithmultipart/form-dataadds pictures. - No undo and no trash. Anyone who can post to a feed can edit and delete its notes; the read link cannot. Deleting the last note leaves the feed, empty.
Ids and filenames¶
A note's id is 22 random characters, such as Vq3xH8mTn2KfLw0aZr9bYe: it has no time in it and nothing to read from it, so neither its file name nor its URLs carry its title or its date. The file is <DATA_DIR>/<feed>/<id>.md (or .png, .jpg, .gif, .webp), with the note's metadata in a small .json file next to it.
From 0.28.0 a note's id is random and carries no time. On the first start after the update, existing notes get new ids and keep their dates. Old links to single notes and to files stop working. A note's references to its own feed's files are rewritten; links from one feed into another feed's notes are not. If the main key is in a key service and it is down while this migration is still pending, notefeed does not start.
Errors¶
Error responses are JSON, {"error": "<reason>", "code": "<code>"}: match on the status or the code. Every status and code of every endpoint is in the REST API. The ones scripts meet most: 401 a missing or wrong password, 402 a license needed on notefeed.me, 415 a wrong or missing Content-Type, 429 too many requests this minute (Retry-After says how long to wait), 507 a cap is reached.