✎ ShareNotes
Ed. 07 — Public API No key · No login · 20/day free sharenotes.dev
REST API for developers

curl. Paste.
Done.

Create a ShareNotes note from a script, a CI pipeline, or your terminal — one POST request, no API key, no account. Pipe a log file in, get a shareable link back. Free, 20 requests a day per IP.

0 API keys 0 CAPTCHAs 20 req/day free
no auth header just curl
Jump to API reference →
✓ No sign-up · ✓ Free forever · ✓ text/plain or JSON

Is there a free API for creating shareable notes?

ShareNotes has a free public REST API that needs no API key and no account. POST plain text or JSON to https://sharenotes.dev/api/v1/notes and the response contains a shareable URL. JSON bodies accept a custom slug, an expiry of 1h, 24h, 7d or 30d, a PIN, a burnAfterRead flag for single-use notes, and maxViews to delete a note after a set number of reads. The rate limit is 20 note creations per day per IP address.

I

Built for scripts, not for sign-ups.

Auth

No API keys, none to leak.

Nothing to provision, store in a secrets manager, or rotate. The endpoint is open — rate limiting is the only gate.

CI-friendly

No CAPTCHA to solve.

The web editor uses reCAPTCHA; the API doesn't, because a CI runner can't click a checkbox. That's exactly what this endpoint is for.

Limits

20 a day, free.

Per IP address, no tiers, no upsell. Enough for a script that posts a daily log digest or a CI job that shares a failing build's output.

II

Three endpoints. That's the whole API.

Create a note
POST https://sharenotes.dev/api/v1/notes

Send your content as a raw text/plain body, or as JSON (application/json or text/json) if you want a custom slug, an expiry timer, or PIN protection.

# plain text — the whole body becomes the note curl -X POST https://sharenotes.dev/api/v1/notes \ -H "Content-Type: text/plain" \ --data-binary @notes.txt
# JSON — with optional fields curl -X POST https://sharenotes.dev/api/v1/notes \ -H "Content-Type: application/json" \ -d '{ "content": "Deploy notes for v2.3.0...", "customSlug": "deploy-v2-3-0", "expiresIn": "24h" }'

Response — 201 Created:

{ "slug": "deploy-v2-3-0", "url": "https://sharenotes.dev/deploy-v2-3-0", "expiresAt": "2026-06-25T14:32:00.000Z", "burnAfterRead": false, "ownerToken": "…", "ownerUrl": "https://sharenotes.dev/deploy-v2-3-0#own=…" }

ownerToken makes you the note's owner: it deletes the note, and ownerUrl opens its Manage page in a browser (open count, timer, PIN, delete). Keep both out of public logs: anyone with them can change or delete the note.

JSON body fields
FieldRequiredDescription
contentRequiredThe text to share. Ignored if you send a text/plain body instead — the whole raw body becomes the content in that case.
customSlugOptional3-32 chars, lowercase letters/numbers/hyphens. Returns 409 if already taken, 400 if reserved.
expiresInOptionalOne of 1h, 24h, 7d, 30d. Self-destructs after this duration. Omit it and the note has no fixed expiry: it is kept as long as someone opens it at least once every 6 months.
passwordOptionalA 4-6 digit PIN to protect the note.
passwordModeOptionaledit (anyone can view, PIN to edit) or view_edit (PIN for both). Requires password.
titleOptionalUp to 100 characters.
burnAfterReadOptionaltrue destroys the note the first time it is read. Reads after that return 410 with {"burned": true}. Known link-preview bots get a placeholder and don't consume it.
maxViewsOptionalA whole number from 1 to 100: the note is destroyed after that many reads, and burnAfterRead is turned on by itself. Reads of the note return maxViews and viewsLeft; JSON and /raw reads count the same.
Rate limits

20 requests per day per IP address. Every response includes RateLimit-* headers showing your remaining quota for the window. Exceeding the limit returns 429.

Read a note back
GET https://sharenotes.dev/api/v1/notes/:slug
curl https://sharenotes.dev/api/v1/notes/deploy-v2-3-0

Returns the same note shape the editor itself uses: content, updatedAt, passwordRequired, title, expiresAt. 404 if the slug doesn't exist, 410 if it expired.

Read just the text
GET https://sharenotes.dev/:slug/raw
curl https://sharenotes.dev/deploy-v2-3-0/raw > notes.txt

The note's text and nothing else, as text/plain — a link you can hand to curl, wget, an importer or a script. Every note has one; the Raw button on a note opens it. Notes sent through this API come back exactly as sent. Notes written in the web editor come back as the text you see in the note: line breaks and indentation kept, formatting dropped. https://sharenotes.dev/api/v1/notes/:slug/raw is the same endpoint.

Same rules as the JSON read: 404 / 410 as above, 401 for a note PIN-locked for viewing, and a delete-after-reading note is consumed by this read (link-preview bots get an empty body and don't consume it).

Raw links allow 120 requests a minute per IP. Across everyone, there is also a limit of 30 reads a minute of notes over 1 MB, and of 20 MB a minute of editor notes being converted to text. Over a limit you get 429 with Retry-After in seconds, and a refused read never uses up a delete-after-reading note.

Delete a note you made
DELETE https://sharenotes.dev/api/v1/notes/:slug
curl -X DELETE https://sharenotes.dev/api/v1/notes/deploy-v2-3-0 \ -H "Authorization: Bearer <ownerToken>"

With the ownerToken from the create response. Returns {"deleted": true, "slug": "…"}; the note is gone at once, and pages showing it are told. 401 without a token, 403 for a wrong one, 404 if the note isn't there. Wrong tokens are limited like wrong PINs: after 10, the note's owner checks pause for a while (429 with Retry-After).

Errors
400
Validation error — missing content, bad customSlug, invalid expiresIn, etc. Message in the response body.
409
customSlug already taken.
429
Rate limit exceeded — 20 creations a day per IP, or a raw link limit.
404 / 410
(GET only) note not found, or expired.
401 / 403
(DELETE) no ownerToken, or a wrong one.
Use it from pastebinit

If pastebinit stopped working for you after paste.ubuntu.com shut down, this config points it at ShareNotes instead. It works with pastebinit 1.5.1 (Ubuntu 20.04 and 22.04), 1.6.2 (24.04) and 1.7 / 1.8 (25.04 and later); we tested 1.5.1, 1.6.2 and 1.8.0. Why pastebinit broke, and other options.

# one-time setup mkdir -p ~/.pastebin.d curl -fsSo ~/.pastebin.d/sharenotes.dev.conf https://sharenotes.dev/pastebinit/sharenotes.dev.conf # then pipe anything to it dmesg | pastebinit -b sharenotes.dev journalctl -u nginx -n 200 | pastebinit -b sharenotes.dev -t "nginx log" -e 1h

Notes last 24 hours unless you pass -e 1h, 7d or 30d (-e needs pastebinit 1.7 or newer; check with pastebinit -v); -t sets a title. To make ShareNotes the default so you can drop -b, put <pastebinit><pastebin>sharenotes.dev</pastebin></pastebinit> in ~/.pastebinit.xml. View the config file.

Use it from an AI assistant (MCP)

ShareNotes runs a remote MCP server (use cases and setup), so an AI assistant can put text into a note and hand you the link, or read a ShareNotes link you give it. No key, no account.

# the server URL (Streamable HTTP) https://sharenotes.dev/api/mcp # Claude Code claude mcp add --transport http sharenotes https://sharenotes.dev/api/mcp

In claude.ai, add it as a custom connector at claude.ai/customize/connectors. Any other client that supports remote MCP servers over Streamable HTTP takes the same URL.

Four tools. create_note publishes text and returns the link; notes expire after 7 days unless the assistant picks 1h, 24h or 30d, and can be delete-after-reading. read_note reads a note by link or name, a PIN-protected one only with the PIN you give it, and never a delete-after-reading one, because an assistant should not be able to destroy a one-time note meant for a person. check_item ticks a checklist item and add_to_note adds text at the end; neither deletes anything. Notes created this way share a limit of 500 per day across all assistants, and like every note made through the API or MCP they are stored on our server, not end-to-end encrypted.

III

Answers, briefly.

Do I need an API key?

No. The API is public and unauthenticated — there's no key to request, store, or rotate. Abuse is controlled purely by a per-IP rate limit.

What's the rate limit, and can I get more?

20 POST requests per day per IP address. There's currently no paid tier to raise that limit — it's a flat free limit for everyone.

Can I set an expiry or password through the API?

Yes, if you send a JSON body instead of plain text. Include expiresIn (one of 1h, 24h, 7d, 30d) for a self-destruct timer, or password plus passwordMode to PIN-protect the note.

Does it work with pastebinit?

Yes. Save the ShareNotes config into ~/.pastebin.d/, then pipe to pastebinit -b sharenotes.dev. Notes from pastebinit last 24 hours; with pastebinit 1.7 or newer, pass -e 1h, 7d or 30d to change that. Works with pastebinit 1.5.1 (Ubuntu 20.04 and 22.04) and newer.

Is there an official client library?

No — it's a plain REST API, so any HTTP client or curl works. There's no SDK to install.

Is the API stable? Will it change without warning?

The endpoint is versioned at /api/v1/ specifically so it can stay stable. Any breaking change would ship under a new /api/v2/ path rather than altering v1's behavior.

Why use text/plain instead of JSON?

It's the simplest way to pipe a file straight into a note from a shell script — curl --data-binary @file.txt with a text/plain Content-Type, no JSON escaping required. Use JSON only when you need options like a custom slug or expiry.