惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
D
Docker
S
SegmentFault 最新的问题
博客园 - 聂微东
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
GbyAI
GbyAI
L
LangChain Blog
Vercel News
Vercel News
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
T
Threatpost
Scott Helme
Scott Helme
T
Tailwind CSS Blog
Latest news
Latest news
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
The Register - Security
The Register - Security
罗磊的独立博客
P
Proofpoint News Feed
腾讯CDC
S
Schneier on Security
雷峰网
雷峰网
A
About on SuperTechFans
T
Tenable Blog
F
Full Disclosure
Cyberwarzone
Cyberwarzone
博客园_首页
有赞技术团队
有赞技术团队
K
Kaspersky official blog

文章列表

Compulsive curiosity, or, how I built an infinite idea machine Gift details on the subscriber portal Portal link in the archive nav The physicists who convinced Fermilab to send Brazil's emails First, add no friction: How micropayments lost and subscriptions won Filter subscribers and automations by source Automations, rebuilt What email will look like in the future Filter subscribers by bounce date and reason Email could have been X.400 times better Three features are moving behind the paywall Firewall changes and improvements Put your name and voice into your company newsletter Simplified email address settings Subscription wall Inboxes were overwhelming before we'd even named them The US government tried really hard to screw up email Public postmortem: database connection exhaustion Ask a nerd: what is the best way to unsubscribe from newsletters? Bookshop.org embeds Email was into agents before they were cool Passwordless login Rename metadata keys in bulk A spring cleaning for our legal docs Ask a nerd: what happens when you click the spam button? Passkey support for two-factor authentication How Buttondown's API versioning works Safer defaults for the email creation API How to send email to space How we enabled Content Security Policy for everyone Recovery codes for two-factor authentication Filter sent emails by engagement rate How we migrated to TypeIDs without breaking clients How we check every link in your email Use newsletter metadata in your emails Should we bring back email exploders? Sort and filter by open and click rates Custom click tracking domains More newsletter settings in the API Revamped replies Custom email templates for everyone Simplified cancellation Ask a Nerd: Does email length affect deliverability? The changelog, reborn Swedish localization Forwarding an email is not always straightforward Public descriptions for tags OpenAPI spec for archives How Rodrigo brings a humanistic view to consumer technology Subscribers can come from anywhere. Even another newsletter platform's form. Survey responses on the web How Brandon Lucas Green shares his music and supports artists Your newsletter's archives are more valuable than your list Better tag self-management Smarter automation filters Granular API keys Snippets New design settings pages Ask A Nerd: How does newsletter cadence affect deliverability? Starred views More ways to customize your archives Inbox filtering Mastodon follower analytics Ask a Nerd: What are good open, click, and response rates for an email newsletter? How we migrated our database to PlanetScale Two new archive themes Custom buttons now work in Markdown mode Ask a Nerd: Does attaching files to your newsletter hurt deliverability? Seline and Tinylytics support Unban subscribers Announcement bars for your archives Bang paths, source routing, and how email trips were planned Public postmortem: archive downtime 2025 disposables.app Russian localization Ask a Nerd: Can you improve email deliverability with a personal domain? More locale options How we interview customers at Buttondown Bluesky analytics Reply to conversations Minimum viable complexity How Jeffery Hicks goes behind-the-scenes in his newsletter Changes to our stack in 2025 2026: Emails What the hell is a UTM? TK reminders in the editor Randomize survey answer order Why we insourced analytics Scroll sync in the editor 2026: Archives How Jamie Thingelstad uses Buttondown to explore tech topics How Kelly Jensen uses Buttondown to discuss key library issues Keeping feature creep at bay Improved filters Content Security Policy in archives Open source Sniperl.ink Auto-activating RSS reader subscriptions What the hell is ActivityPub? How Igor Ranc built Berlin's largest expat tech newsletter
How (and why) non-technical folks should learn to use an API
Ryan Farley · 2025-03-21 · via

It ain’t exactly the Mississippi, the experiential moat that separates people who write and edit code and people who don’t. It is narrow and shallow. Especially in the realm of email, with its roots in the earliest days of the internet and its relatively simple protocols, someone without a technical background can arrive on that not-so distant shore wetting nothing but their socks. 

For people who don’t know how to read or write code, understanding and interacting with something called an API is fun, empowering, and–even if you don’t use the knowledge to build anything–a worthwhile first step into the water. It’s something you can apply to most modern apps, not just those specific to email.

An application programming interface (API) lets you request information and issue commands to an app or operating system without opening said app or operating system. Ask an API to do something or to respond with specific information and it will, in plain text. 

Everyone should try it at least once.

A five-minute API exercise

You already have everything you need to interact with an API. On a Mac, open Spotlight, type “terminal” and hit enter. Or, in Windows, open the Start menu and type “command prompt” and press enter. Then copy and paste this into your terminal:

curl "https://wttr.in/Seattle?format=4"

Hit enter and you should see a single line of live weather data for Seattle. Try changing the city to your own and doing it again. You just made your first personalized API “call” (using the correct verbiage is essential to sounding cool while working in your terminal). 

Now, many of the apps you already use likely provide access to your account’s data via API. You just need to prove who you are. Buttondown, for example, lets you retrieve your list of subscribers with a call as long as you provide your private key (found in Settings > API). With that copied to your clipboard, you’d open the API documentation, find the command, and replace the placeholder text with your API key. Here’s what it looks like with a Buttondown account:

curl --request GET --url https://api.buttondown.com/v1/subscribers --header "accept: application/json" --header "authorization: Token $BUTTONDOWN_API_KEY"

At first glance, the output from that request seems orders of magnitude more convoluted than opening the app and exporting your list to a spreadsheet. But API outputs are standardized, which means programmers can add them to the code of their app, reformat the data, and voila! Now they have real-time information, styled however and wherever they’d like, without having to code the weather app from scratch or sync your subscriber list to long-term storage. 

You could take another step across that narrow gulley by learning how to filter the output of an API call. Adding ?creation_date=2024-12-18 to the end of the subscriber URL, for instance, would only list people who joined your list on or after December 18, 2024:

curl --request GET --url "https://api.buttondown.com/v1/subscribers?creation_date=2024-12-18" --header "accept: application/json" --header "authorization: Token $BUTTONDOWN_API_KEY"

Inserting API calls into an app-store-ready app isn’t the only way to use these functions. You could, say, run a cURL command inside a basic iOS Shortcut, triggering it after a text or voice input. Or create a custom Windows keyboard shortcut with AutoHotKey to run the call.

Requesting information via an API is the best place to practice. It’s straightforward and nearly impossible to screw anything up with your account or its data. Updating data with a call is a different story.

Creating or altering records via API

Hopefully, you’re starting to feel more confident about how to read schema and apply small tweaks to get the results you want. So let’s try something a tiny bit more difficult: updating a subscriber’s notes. 

But first, a disclaimer. While most API calls will reject anything that requires writing over existing data, only experiment with records that you aren’t afraid to lose. If you’ve already added notes to a subscriber’s record and then make an API call to add new notes, the previous ones will be replaced with the new ones. For now, stick to subscribers whose Notes field is currently blank.

With that out of the way, open the cURL tab on the updating a subscriber documentation and try to personalize it on your own. You might be able to do it correctly without any additional help!

Step one would be replacing {id_or_email} with the email address of the subscriber you want to update. Then, change $BUTTONDOWN_API_KEY to your own. Assuming you don’t want to update the subscriber’s email address, delete that line. Write something of your own after ”notes”:. Finally, there are some very fiddly, very annoying syntax differences between making this API call in a Mac Terminal versus in a Windows Command prompt. 

In Windows, you need backslashes before any quotation mark inside the curly brackets:

curl -X PATCH "https://api.buttondown.com/v1/subscribers/{id_or_email}" -H "accept: application/json" -H "Authorization: Token $BUTTONDOWN_API_KEY" -H "Content-Type: application/json" -d "{ \"notes\": \"I updated this via the API!\" }"

In macOS or Linux, switch the double quotes just outside of the curly brackets to single quotes and remove the backslashes inside of the curly brackets. Everything else is exactly the same. Make the necessary adjustments, send the API call, and open your Buttondown account to double-check that the note was added. It’s that easy.

Wrapping it in a user-friendly interface

You don’t need to create a full-blown app to abstract out the terminal, confusing backslashes, and 36-character API key. MacOS or iOS can do that for you.

Open Shortcuts on your iPhone, iPad, or Mac. Create a new Shortcut, and name it “Add a new subscriber.” Type Ask for input into the search bar and tap it. Select Prompt and enter something like “Add a new subscriber email.”

Next, search for and add the Get Contents of URL action, pasting this URL into the “Get Contents Of” field https://api.buttondown.com/v1/subscribers. If it shows “Get Contents Of Ask For Input” by default, delete the “Ask For Input” field then paste in the URL. 

Switch Method POST and add the following:

  • A Header key of “accept” followed by “application/json”
  • Another header key pair consisting of “Content-Type” and “application/json” in the field to its right.
  • One last header key pair named “authorization” with “Token ” followed by your API key in the field next to it.
  • Set Request Body set to JSON.
  • Below the Request Body, add a new field named “data,” tap the newly created field, add a new text field, and insert the “Ask for Input” variable (on a Mac, you’ll need to right-click to add it).

The next time you’re at an in-person event and meet someone interested in staying connected via your newsletter, tap the shortcut, enter their email, and that’s all she wrote! Shortcuts will run the API call without you needing to futz with any of the syntax.

Applying the same basic ideas, you could create Shortcuts that add tags to a subscriber or add metadata like first and last names. You may not get them on the first try, but neither do people who do this stuff for a living! Trial and error is part and parcel of building software and automations. Sometimes the error message will be enough to deduce what’s wrong. If not, chatbots are pretty good at troubleshooting this stuff too. Heck, if you’ve got an actual use case for an API call in mind, reach out and someone from our team might be able to help. 

Build it the way you want it

For the vast majority of cases, it will be easier and more reliable to move data into and out of your newsletter via built-in integrations or an automation platform like Zapier. But where’s the fun in that? 

Working in a terminal, even as a one-off experiment, is worth it if only to gain a new perspective on how the apps you use store, share, and secure your data. It’ll make you a smarter, more efficient creator. 

Turn what you learned into the topic of your next newsletter. Bring some people with you on the journey across the moat. We’re here on the other side, ready to pull you ashore and give you a tour.