API
Pastecard has a simple API for reading the contents of a card or writing new text to it. Use of the API is subject to the Terms of Service.
Read
GET https://pastecard.net/api/users/{username}
- Returns JSON that includes the username and current cardText values, as well as other metadata
Write
PUT https://pastecard.net/api/users/{username}/write
- Expects JSON like
{ "text": "your text here" }
- This method completely replaces the existing card text with what is passed to it
- Any text in the resulting cardText value beyond 1034 characters will be truncated
- Returns JSON that includes the username and updated cardText values, as well as other metadata
Append
PUT https://pastecard.net/api/users/{username}/append
- Expects JSON like
{ "text": "your text here" }
- This method adds two new line characters and the passed text to the end of the card
- Any text in the resulting cardText value beyond 1034 characters will be truncated
- Returns JSON that includes the username and updated cardText values, as well as other metadata
Bookmarklet
Enter your ID below to generate a bookmarklet, and then drag it to your bookmarks bar.
When you invoke the bookmarklet, the current page’s URL will be appended to the bottom of your Pastecard. If any text is selected on the page, that text will be appended instead. Any additions over Pastecard’s character limit of 1034 will be truncated.
Blog
- May 2, 2026: Locals Only
- July 22, 2025: Pastecard C
- February 29, 2024: State of the Company, 2024
- April 27, 2023: Pastecard in the App Store
- February 29, 2020: State of the Company, 2020
- May 22, 2018: Pastecard S
- January 12, 2018: Pastecard for iOS
- February 29, 2016: State of the Company, 2016
- February 29, 2012: State of the Company, 2012
- July 14, 2010: Why Pastecard
Source
View the source code for a single-user web app (PHP/JS) and the iPhone app (SwiftUI). Both are provided as reference only.