<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by APIHiver on Medium]]></title>
        <description><![CDATA[Stories by APIHiver on Medium]]></description>
        <link>https://medium.com/@apihiver?source=rss-77d4b343295e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XhAZhcH_MyN4PN1VVLljMg.png</url>
            <title>Stories by APIHiver on Medium</title>
            <link>https://medium.com/@apihiver?source=rss-77d4b343295e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:10:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apihiver/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Google Says It Banned a Developer’s Account by Mistake, and Is Changing How You Get Back In]]></title>
            <link>https://medium.com/@apihiver/google-says-it-banned-a-developers-account-by-mistake-and-is-changing-how-you-get-back-in-11f5fd8cdade?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/11f5fd8cdade</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 17:02:42 GMT</pubDate>
            <atom:updated>2026-11-30T17:02:42.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A worn brass key and a small closed padlock on a scratched wooden hallway table, with a locked front door behind them" src="https://cdn-images-1.medium.com/max/1024/1*UoRkYXJ_7eaVTKY5iCsxOA.jpeg" /></figure><p>Over the last weekend of November 2026, a developer posted a short, frustrated message on X: his Google account had been banned. By Monday, Google&#39;s CEO was replying, Google&#39;s official news account had published a long explanation, and the company had announced a change to how locked accounts get unlocked.</p><p>If you rely on a Google account for email, photos, files or developer tools, this one is worth understanding. Here is what is confirmed, what is the developer&#39;s own account, and what is still unknown.</p><h3>1) What happened</h3><p>The developer is Noah Dunnagan, who posts on X as @itsnoahd and works at Railway. According to TechRadar, he reported on November 28 that his Google account had been banned and that he could not get back in. His own post on X carries a November 29 timestamp in my browser, so outlets differ by a day on the exact date. I am saying &quot;the weekend of November 28 and 29&quot; for that reason.</p><p>TechRadar reports that the account became unavailable across Gmail, Google Photos and Antigravity, Google&#39;s AI coding tool. The message he saw said the account had been judged to violate Google&#39;s policies and might have been created by a computer program or a bot. That was not true.</p><p>Other outlets list slightly different affected services (one includes Drive and password reset). I could only confirm the TechRadar list myself, so treat the exact list as reported, not proven.</p><h3>2) What Noah says caused it</h3><p>In his follow-up post, Noah said the account has since been unbanned. He gave his own explanation of the cause: he had not used the account for a while, and then he activated a gift that came with a trial period. In his words, that combination &quot;tripped a few fraud signals.&quot;</p><p>He also said it was not related to his use of Antigravity, and that using Antigravity with a Google account is safe. He added that he had been in contact with people at Google DeepMind in recent weeks, and that he hoped raising the issue would help people who do not have that kind of contact.</p><p>That last point matters. It is his explanation, not Google&#39;s confirmed root cause. Google has not said which signals fired.</p><h3>3) What Google said</h3><p>Google&#39;s official news account on X published a long post. The key points, in the order Google made them:</p><ul><li>It called the suspension &quot;a mistake on our part&quot; and said it had nothing to do with AI usage.</li><li>It said automated systems look for unusual signals of possible account hijacking or abuse, &quot;the same way a bank monitors for fraudulent account access.&quot; In rare cases these produce a false positive, and that is what happened here.</li><li>It said that people who actually break the prohibited-use rules for Gemini or Antigravity would normally lose access to that one service, after a warning, without losing the rest of their account.</li><li>It said false positives are rare, and normally SMS verification resolves them. If SMS or other verification does not work, there is an appeal process.</li><li>It said it is &quot;significantly expanding the use of SMS verification&quot; so that more suspensions can be fixed by the user directly, with the change starting to roll out &quot;tomorrow.&quot; The post is dated November 30, so that means December 1.</li><li>It said a temporarily locked account does not lose its emails, photos or files, and full access returns after successful verification or appeal.</li></ul><p>Sundar Pichai also replied on X. According to the text TechRadar embedded, he confirmed it was automated account security signals, not Antigravity usage, and said the SMS expansion would let more people fix this &quot;in seconds, without waiting on us.&quot;</p><h3>4) What the fix actually is</h3><p>In plain terms: if Google&#39;s automated system locks your account by mistake, it will more often let you prove you are a real person by getting a text message on your phone, instead of sending you straight into a slower appeal.</p><p>That is a sensible change. A text code is quick, and it puts the fix in the owner&#39;s hands.</p><h3>5) What has not been explained</h3><p>This is where I want to be careful, because several things are not answered by anything I read:</p><ul><li>Google has not said which accounts or which countries get the SMS option first, or whether it applies to every kind of lockout.</li><li>Google has not said how often false positives happen. It only says &quot;rare.&quot;</li><li>Google has not said what signals triggered this particular lock, so nobody can say how to avoid it.</li><li>Google&#39;s own help page for disabled accounts, when I opened it on November 30, still described only the &quot;Start Appeal&quot; route, with no mention of SMS. It says that if an appeal is not approved the account stays unavailable and can be permanently disabled and considered for deletion, and that for some policy violations only a limited number of appeals are reviewed. A rollout can simply be new, but it means the written rules and the announced change do not match yet.</li><li>Not everyone is satisfied. TechRadar notes that many people think account owners should not need inside contacts or a viral post to get help, and that users on Hacker News described the appeal process as largely automated and opaque. Those are user reports I did not verify.</li></ul><p>One more distinction worth keeping: Google says this specific case was a temporary suspension and a false positive. A permanent ban for a real policy violation is a different thing, and the announcement does not change that.</p><h3>6) What you can do today</h3><p>None of this is a guarantee, but these are cheap and sensible:</p><ul><li>Make sure your Google account has a working recovery phone number and recovery email. SMS recovery cannot help if the number on file is old.</li><li>Use the account occasionally. Noah&#39;s own explanation points to a long idle period plus a new trial as the trigger. That is his theory, not a Google rule, so do not treat it as a promise.</li><li>Keep a backup of anything important (email, photos, documents) outside Google. Google&#39;s own help page lists data download as something you may be able to do from a disabled account, but it also says that is not possible for every violation.</li><li>If you build on Google tools for work, consider a separate account for development, so a lockout does not take your personal email with it.</li></ul><h3>What I did not verify</h3><ul><li>I did not reproduce a lockout or try the SMS flow. It had not rolled out when I wrote this, and I cannot test it on demand.</li><li>I did not confirm the exact date of the original ban, the full list of affected services, or the exact time of restoration. Outlets differ.</li><li>I did not see Google&#39;s statement about the SMS expansion anywhere except its own post and the outlets quoting it.</li><li>Everything about why the account was flagged is Noah&#39;s account, not Google&#39;s.</li></ul><h3>Sources read</h3><ul><li><a href="https://x.com/NewsFromGoogle/status/2127222026578563134">Google News account on X, November 30</a></li><li><a href="https://x.com/itsnoahd/status/2127063986550034473">Noah Dunnagan on X, November 29</a></li><li><a href="https://www.techradar.com/computing/google-admits-its-been-banning-accounts-by-mistake-ceo-sundar-pichai-says-sms-fix-will-stop-lengthy-false-positive-lockouts-for-gmail-photos-and-drive">TechRadar</a></li><li><a href="https://www.fonearena.com/blog/497745/google-account-suspension-incident-sms-verification-expansion.html">FoneArena</a></li><li><a href="https://thetechlantis.com/news/google-sms-verification-account-bans">Techlantis</a></li><li><a href="https://dev.to/frankchu/1-flag-locked-gmail-drive-photos-googles-fix-is-sms-3c53">DEV Community post by frank chu</a></li><li><a href="https://support.google.com/accounts/answer/40695">Google Account Help: Your account is disabled</a></li></ul><h3>A question for you</h3><p>Would you trust a text message code to settle an account lock, or do you think a human should review these cases? And have you ever been locked out of a Google account? I would like to hear what happened.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11f5fd8cdade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Dates Without a Timezone Differ Between Machines]]></title>
            <link>https://medium.com/@apihiver/api-dates-without-a-timezone-differ-between-machines-ab2865f764dc?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab2865f764dc</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 16:39:25 GMT</pubDate>
            <atom:updated>2026-11-21T16:39:25.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Two cards: the same date string with no timezone read as 04:30 UTC on a computer set to India time and 18:00 UTC on one set to Los Angeles" src="https://cdn-images-1.medium.com/max/1024/1*C4g6IxobW033BjzeeFopTQ.png" /></figure><p>A date without a timezone means different moments on different computers. I parsed the same strings on two machine settings to show it.</p><h3>1) The test</h3><p>I ran the same JavaScript on a computer set to India time (UTC plus 5:30) and again with the timezone set to Los Angeles.</p><pre>string                        India time        Los Angeles<br>2026-11-17T10:00:00Z          10:00 UTC         10:00 UTC<br>2026-11-17T10:00:00+05:30     04:30 UTC         04:30 UTC<br>2026-11-17T10:00:00           04:30 UTC         18:00 UTC<br>2026-11-17                    00:00 UTC         00:00 UTC</pre><h3>2) What it means</h3><p>Strings that end in Z or an offset gave the same instant everywhere. The string with a time but no zone was read as local time, so it came out 13.5 hours apart on the two settings. A date with no time, in this test, was read as midnight UTC.</p><h3>3) A simple rule</h3><ul><li>Send timestamps in ISO 8601 with Z or an offset.</li><li>Store them in UTC.</li><li>Convert to local time only when showing them.</li></ul><h3>What I did not test</h3><p>JavaScript’s Date parsing only. Other languages treat zone-less strings differently, and I did not test daylight saving changes or the non-ISO format, which also depends on the machine.</p><p>What timestamp format does your API use?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab2865f764dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Two-Account Test That Finds Broken Object Authorization]]></title>
            <link>https://medium.com/@apihiver/the-two-account-test-that-finds-broken-object-authorization-206a57670dac?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/206a57670dac</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:51:32 GMT</pubDate>
            <atom:updated>2026-11-17T17:51:32.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Two cards: a token-only check returned Bob’s order to Alice with a 200 response, and an owner check returned a 404 with no data" src="https://cdn-images-1.medium.com/max/1024/1*-32dmBTPc5inRSwdwa-LJA.png" /></figure><p>Broken object-level authorization sounds abstract until you see it. The API checks that you are logged in, then returns whatever object ID you ask for, even if it belongs to someone else. Here is the test that finds it with no special tools.</p><h3>1) Two ordinary accounts</h3><p>I made a tiny orders API with two users, Alice and Bob. Order 1 belongs to Alice and order 2 belongs to Bob. The first version only checks that the token is valid.</p><h3>2) The replay</h3><p>Log in as Alice and request her own order. Then request Bob’s order ID with Alice’s token:</p><pre>alice own order 1   : 200 {&quot;id&quot;:1,&quot;owner&quot;:&quot;alice&quot;,&quot;total&quot;:40}<br>alice -&gt; bob&#39;s 2    : 200 {&quot;id&quot;:2,&quot;owner&quot;:&quot;bob&quot;,&quot;total&quot;:99}</pre><p>Both calls return 200. Every individual response looks healthy, which is why this slips past scanners and through code review. Nothing is crashing. The data is just going to the wrong person.</p><h3>3) The fix</h3><p>After loading the object, compare its owner to the caller and refuse if they differ:</p><pre>if (order.owner !== user) return 404</pre><p>I reran the same replay and Alice’s request for Bob’s order no longer returned his data.</p><h3>4) Make it a habit</h3><ul><li>Test every endpoint that takes an ID, not just the reads. Updates and deletes need the same check.</li><li>Do not trust the user ID sent in the request body when the token already says who the caller is.</li><li>Keep the two-account replay as an automated test, so a future change cannot quietly remove the check.</li></ul><h3>What I did not test</h3><p>This is a deliberately small server written for the test. Real systems add roles, shared objects and nested resources, which make the rules harder than one owner field.</p><p>Does your test suite include a “wrong user” case for every ID endpoint?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=206a57670dac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 CORS Cases Tested in a Real Browser, and Which Ones Fail]]></title>
            <link>https://medium.com/@apihiver/7-cors-cases-tested-in-a-real-browser-and-which-ones-fail-ccd762d159df?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccd762d159df</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:50:22 GMT</pubDate>
            <atom:updated>2026-11-17T17:50:22.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Three cards from a browser CORS test: 4 requests blocked by the browser, 3 that worked in Chrome, and 200 from curl every time" src="https://cdn-images-1.medium.com/max/1024/1*7ul9ZO8ZgNVspnmEPmYP9g.png" /></figure><p>“It works in Postman” is one of the most common sentences in frontend debugging. Postman is not a browser, so it ignores the rules that make browsers block cross-origin calls. I built a tiny test to see which cases the browser actually rejects.</p><h3>1) The setup</h3><p>A web page on localhost:4600 calls an API on localhost:4601. Different port means different origin. I ran seven requests from the page in Chrome and recorded what happened. Plain curl to the same API returned 200 every time.</p><h3>2) The results</h3><pre>1 no CORS headers, simple GET            BLOCKED<br>2 Allow-Origin: *, no credentials        OK<br>3 Allow-Origin: *, with credentials      BLOCKED<br>4 exact origin + Allow-Credentials       OK<br>5 custom header, server ignores OPTIONS  BLOCKED<br>6 custom header, preflight answered      OK<br>7 JSON POST, preflight redirected (301)  BLOCKED</pre><h3>3) What each one teaches</h3><p>Case 1: with no CORS headers the browser blocks the response even though the server sent it. Case 3 versus case 4: the wildcard works until you send cookies or credentials, then the server must name the exact origin and allow credentials. Cases 5 and 6: a custom header such as X-Api-Key triggers a preflight OPTIONS request, and the server has to answer it. Case 7: a preflight that gets a redirect fails, which is easy to hit with an http to https redirect or a trailing slash.</p><h3>4) A quick debugging order</h3><ul><li>Open the Network tab and find the OPTIONS request, if there is one.</li><li>Read the response headers on it, not only on the main call.</li><li>Check for a redirect on the preflight.</li><li>If you send credentials, replace the wildcard with the real origin.</li></ul><h3>What I did not test</h3><p>I tested one browser, Chrome, with a local server, and only these seven cases. I did not test other browsers, caching of preflight responses, or any proxy in front of the API.</p><p>Which of these has cost you the most time?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccd762d159df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Same Webhook Replayed Three Ways: Only One Dedupe Was Right]]></title>
            <link>https://medium.com/@apihiver/same-webhook-replayed-three-ways-only-one-dedupe-was-right-8dbbf82a9375?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dbbf82a9375</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:48:41 GMT</pubDate>
            <atom:updated>2026-11-17T17:48:41.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Webhook providers say “at least once”. That means your handler will sometimes see the same event twice. I tested three ways of handling it and only one gave the right answer.</p><h3>1) The scenario</h3><p>A customer buys 5 extra seats on account 812. The provider sends the event, our server processes it but the acknowledgement is lost, so the provider sends event e1 again. Later, after a retry on its side, it also creates a new event e2 for the same order. Three deliveries, one purchase.</p><h3>2) The three handlers</h3><pre>no dedupe         seats added: 15   (correct: 5)<br>dedupe by event   seats added: 10   (correct: 5)<br>dedupe by order   seats added: 5    (correct: 5)Three cards showing seats added after the same webhook was delivered three times: 15 with no dedupe, 10 with event ID dedupe, 5 with order dedupe<br></pre><p>With no dedupe, every delivery adds seats. Deduplicating on the event ID fixes the repeated e1 but not e2, because e2 has a different ID. Only the handler keyed on the business operation, here account plus order, adds exactly 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHSlb4RRRxZ_Kg0QRL4m-Q.png" /></figure><h3>3) The idea to take away</h3><p>Write down what must happen exactly once in your business terms, such as “add 5 seats for order 77”, and make that the key. The event ID is a good first filter, but it only tells you about delivery, not about the purchase.</p><h3>4) Practical notes</h3><ul><li>Store the key and apply the change in one database transaction, so a crash cannot leave one without the other.</li><li>Return a success status for a duplicate, so the provider stops retrying.</li><li>Keep keys for as long as the provider may retry.</li></ul><h3>What I did not test</h3><p>I ran this in memory with three hand-written events. I did not test concurrent duplicates arriving at the same instant, which need a database constraint or lock, and I did not test any real provider’s retry behaviour.</p><p>What do you use as your dedupe key?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dbbf82a9375" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why a Fixed-Window Rate Limiter Lets Through Double the Limit]]></title>
            <link>https://medium.com/@apihiver/why-a-fixed-window-rate-limiter-lets-through-double-the-limit-b82051c7bcf1?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b82051c7bcf1</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:47:36 GMT</pubDate>
            <atom:updated>2026-11-17T17:47:36.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Two cards comparing a fixed window rate limiter, which let 200 requests through in 0.2 seconds, with a sliding window limiter that let 100 through" src="https://cdn-images-1.medium.com/max/1024/1*6v1lubPT5UQ85f4zH47lSg.png" /></figure><p>A rate limit of 100 requests a minute sounds simple. Then a client sends 100 requests at the very end of one minute and 100 more at the start of the next, and your limiter happily lets all 200 through in a fifth of a second.</p><p>I wrote a small simulation of three common limiters with a fake clock, so the result is exact and repeatable.</p><h3>1) The setup</h3><p>Each limiter allows 100 requests per 60 seconds. The test sends 100 requests at 59.9 seconds, then 100 more at 60.1 seconds. That is 200 requests inside 0.2 seconds, straddling a minute boundary.</p><h3>2) The result</h3><pre>fixed window     allowed 200 of 200<br>sliding window   allowed 100 of 200<br>token bucket     allowed 100 of 200</pre><p>The fixed window counts requests per calendar minute and resets the counter at the boundary. A well-timed client gets two full allowances back to back. The sliding window and the token bucket both remember recent requests, so the second burst is rejected.</p><h3>3) Does it matter?</h3><p>It depends on what the limit protects. If the limit exists to keep a database alive, a double burst of 200 is the exact moment it hurts. If it only enforces a fair-use quota over a month, the boundary effect is harmless. I would not call the fixed window wrong, only cheaper and less strict.</p><h3>4) What to pick</h3><ul><li>Fixed window: simplest, one counter per client. Fine for coarse quotas.</li><li>Sliding window: strict, but stores recent timestamps or two counters.</li><li>Token bucket: allows short bursts up to the bucket size, then limits to a steady rate. A good default for public APIs.</li></ul><h3>What I did not test</h3><p>This is a simulation of the algorithms with a fake clock, not a production limiter. I did not test it across several servers, where a shared store such as Redis is needed, and I did not measure the memory cost of each approach.</p><p>Which limiter does your API use, and did you pick it on purpose?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b82051c7bcf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Write API Documentation That Developers Actually Use]]></title>
            <link>https://medium.com/@apihiver/how-to-write-api-documentation-that-developers-actually-use-e4ebacb249ad?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ebacb249ad</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technical-writing]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:11:20 GMT</pubDate>
            <atom:updated>2026-11-17T17:11:20.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Side by side comparison of the same API endpoint documented two ways: a vague version with no example, and a copy-paste version with a curl request, a sample response and two error cases" src="https://cdn-images-1.medium.com/max/1024/1*89jFbzqgjjfh_5VQ0vsXWg.png" /></figure><p>Ask developers what makes an API hard to use and the answer is usually the same: the documentation. In Postman’s 2020 State of the API report, lack of documentation was the top obstacle to consuming APIs, cited by 54.3% of respondents (that figure comes from news coverage of the survey, not the report itself, and I could not confirm the percentage in later editions).</p><p>I wanted to see what that means on the page, so I built a tiny invoices API on my own machine and wrote its docs two ways. Here is what changed between the version nobody can use and the one people can.</p><h3>1) Count the time to your first call</h3><p>Nordic APIs defines “time to first call” as the time between a developer reaching your docs or signing up for a key and making their first successful call. They are honest that there is no standard benchmark: it varies with how complex and how well-known the API is. They note that Twilio has talked about getting developers running in five minutes or less.</p><p>You do not need a benchmark. You need your own number. Sit someone who has never seen your API in front of your docs and time them. Whatever step they get stuck on is the first thing to fix.</p><h3>2) Make the first example copy-paste</h3><p>My first draft of the example looked reasonable:</p><pre>curl http://localhost:4455/v1/invoices?status=paid -H &quot;Authorization: Bearer test_key_123&quot;</pre><p>I pasted it into my terminal and got this:</p><pre>zsh: no matches found: http://localhost:4455/v1/invoices?status=paid</pre><p>zsh, the default shell on a Mac, treats the question mark as a wildcard. The request never left my machine. The fix is one pair of quotes, and every URL with a query string in your docs should have them:</p><pre>curl &quot;http://localhost:4455/v1/invoices?status=paid&quot; \<br>  -H &quot;Authorization: Bearer test_key_123&quot;</pre><p>This is the kind of bug that only shows up when you actually paste the example, which is why you should.</p><h3>3) Show the response right under the request</h3><p>Here is what that working command returned when I ran it:</p><pre>{&quot;data&quot;:[{&quot;id&quot;:&quot;inv_1001&quot;,&quot;status&quot;:&quot;paid&quot;,&quot;amount&quot;:4900,&quot;currency&quot;:&quot;usd&quot;}],&quot;has_more&quot;:false}</pre><p>Putting this directly below the request lets a reader check that their call worked without reading anything else. It also answers questions the reference rarely does: amounts are in cents, and the list is wrapped in a “data” field.</p><h3>4) Document the failures as carefully as the success</h3><p>A beginner’s first call usually fails. I tried the two most common mistakes. With no key:</p><pre>HTTP/1.1 401 Unauthorized<br>{&quot;error&quot;:{&quot;code&quot;:&quot;invalid_api_key&quot;,&quot;message&quot;:&quot;Missing or wrong API key. Send it as: Authorization: Bearer &lt;key&gt;&quot;}}</pre><p>And with a bad value:</p><pre>{&quot;error&quot;:{&quot;code&quot;:&quot;invalid_parameter&quot;,&quot;param&quot;:&quot;status&quot;,&quot;message&quot;:&quot;status must be &#39;paid&#39; or &#39;open&#39;&quot;}}</pre><p>Both errors name the problem and say how to fix it. List them in the docs next to the endpoint, with the status code, so a developer who hits one can find the answer by searching the page.</p><h3>5) Keep four kinds of page apart</h3><p>The Diataxis framework, developed by Daniele Procida, says documentation serves four different needs: tutorials (learning by doing), how-to guides (finishing a specific task), reference (facts about the machinery) and explanation (the why). My own view is that most messy docs mix these in one page, so a reader who wants one answer has to wade through the other three. Give each its own place.</p><h3>6) Make the reference complete, and say what to do about old things</h3><p>Google’s developer documentation style guide says API reference should cover every class, method and parameter, with its purpose, how to use it and what can go wrong. It also says that when something is deprecated, the docs should tell the reader what to do instead so their code keeps working. A parameter with no description is a support ticket waiting to happen.</p><h3>7) Introduce every code sample</h3><p>The same guide says each sample should be introduced in the text, and that when you leave code out of a snippet, an explanatory comment is better than a bare ellipsis. A reader should never have to guess what a block of code is for or what is missing from it.</p><h3>The short checklist</h3><ul><li>Time a newcomer from landing on the docs to a successful call.</li><li>Put one copy-paste request at the top, with quoted URLs.</li><li>Show the real response directly underneath.</li><li>List the common errors with status codes and fixes.</li><li>Keep tutorials, how-tos, reference and explanation on separate pages.</li><li>Describe every parameter, and say what replaces anything deprecated.</li><li>Run your own examples before you publish them.</li></ul><h3>What I did not test</h3><p>I tested one small API, on my own computer, in one shell. I did not watch real developers use the docs, so nothing here is a measurement of what works best. The Postman number is from 2020 and secondhand. The rules from Nordic APIs, Diataxis and Google’s style guide are their guidance, which I summarised; the zsh failure and the three API responses above are the parts I ran myself.</p><p>What is the first thing that trips you up in a new API’s documentation?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ebacb249ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 n8n claims I checked against the docs and a local test]]></title>
            <link>https://medium.com/@apihiver/seven-n8n-claims-i-checked-against-the-docs-and-a-local-test-ec1857bd8f49?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec1857bd8f49</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 06:10:19 GMT</pubDate>
            <atom:updated>2026-11-14T06:13:29.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A copper water pipe with a single slow drip falling into a dented tin cup, with an unused red alarm bell on the wall behind it" src="https://cdn-images-1.medium.com/max/1024/1*MYYu5kIr0psAYtZGHIQjMQ.jpeg" /></figure><p>Most n8n articles are lists of workflows to build. This one goes the other way: it takes the advice people give about running n8n in production and checks it. I read n8n’s own documentation, then ran n8n 1.97.1 (installed from npm, Node 20) on a laptop, next to a small local server that counted every request n8n sent. Seven claims, with a verdict on each.</p><h3>The short answer</h3><ul><li>Wrong: “the default timeout is 30 seconds” (it is off by default).</li><li>Wrong: “n8n never cleans up old executions” (pruning is on by default).</li><li>Half true: “Retry On Fail keeps trying” (three tries, then it stops).</li><li>True: every item runs a node separately.</li><li>Wrong: “a 200 from your webhook means the work succeeded”.</li><li>True, with setup: an error workflow catches failures.</li><li>Unsupported: “n8n breaks above 50 items”.</li></ul><h3>1) “The default execution timeout is 30 seconds”</h3><p>One guide I read says so. The documentation says otherwise: EXECUTIONS_TIMEOUT defaults to -1, which disables the workflow timeout. EXECUTIONS_TIMEOUT_MAX defaults to 3600 seconds and only limits how high you can set a per-workflow timeout. In my test, the HTTP Request node sent its call with its own timeout of 300,000 ms, which is five minutes. So a slow API can hold a run open far longer than 30 seconds unless you set a limit yourself.</p><h3>2) “Self-hosted n8n keeps every execution forever”</h3><p>Also wrong. The docs say pruning is enabled by default: finished executions are deleted after 336 hours (14 days) or once the total passes 10,000, whichever comes first. Two details from the same page are worth knowing. Executions that carry tags or ratings are never pruned. And on the default SQLite database, pruned data does not shrink the file; the space is reused, and you need DB_SQLITE_VACUUM_ON_STARTUP or a manual VACUUM to get it back. I did not wait 14 days to watch this happen, so this one is from the docs only.</p><h3>3) “Retry On Fail keeps trying until it works”</h3><p>I pointed a node at an endpoint that always returns HTTP 500 and turned Retry On Fail on without changing anything else. The endpoint received exactly three requests, spaced 1,081 ms and 1,008 ms apart. Then the node failed. Retries only help with temporary trouble such as a brief outage; they do nothing for a bad request or a permanent error. This is the behaviour of 1.97.1, so check the node settings on your version.</p><h3>4) “Each item runs the node separately”</h3><p>True, and it is the one that costs money. A Code node returned 50 items into an HTTP Request node, and my server logged 50 separate requests. A 500-row spreadsheet means 500 calls. If the API you call has a price or a rate limit, count your items before you connect the nodes.</p><h3>5) “If my webhook returned 200, it worked”</h3><p>I built two workflows that fail on purpose, one with a thrown error in a Code node and one that exhausts its retries. The webhook was set to answer as soon as the request arrived. Both callers got HTTP 200, and both executions failed. If the caller needs to know the outcome, the response has to wait for the last node. Two limits from the docs also apply: the test URL listens for 120 seconds, and on n8n Cloud a webhook that takes longer than 100 seconds returns a 524 error.</p><h3>6) “An error workflow will catch failures”</h3><p>Mostly true, once you set it up. An error workflow must start with an Error Trigger node, and you choose it in each workflow’s settings. I attached one to my failing workflows. It ran for the Code node error and for the exhausted retries, and it ran once per failed execution, not once per retry. The payload included the execution ID, a link to the execution, the error message, the last node that ran and the workflow name. Per the docs, if the trigger node itself fails, the payload has a different shape. I did not test manual runs from the editor or trigger-node failures.</p><h3>7) “n8n crashes above 50 items”</h3><p>I found no such limit in the documentation. It says n8n does not restrict how much data a node handles, and memory use depends on the amount of JSON, binary data, node count, the Code node, and manual executions, which keep a copy of the data for the editor. Its suggestions are to process smaller chunks (200 rows per run instead of 10,000), split work into sub-workflows, avoid the Code node where you can, avoid manual runs for large data, and raise the Node.js memory limit with --max-old-space-size. My test used only 50 items, so I cannot say where your server&#39;s limit is.</p><h3>A short checklist</h3><ul><li>Set a workflow timeout on anything that calls a slow API.</li><li>Connect an error workflow that sends you a message, and use the same one everywhere.</li><li>Count items before connecting a node that calls a paid or rate-limited API.</li><li>Do not read a 200 from an immediate-response webhook as success.</li><li>On SQLite, plan for the file size even with pruning on.</li></ul><h3>What I did not verify</h3><p>I ran one version, 1.97.1. The documentation I read is the current version, which may be newer than 1.97.1, so defaults may have changed. I did not test n8n Cloud, queue mode, manual-run behaviour of error workflows, memory at scale, or the pruning schedule. The claims I corrected come from guides I read while researching, and I have not named them.</p><h3>Sources</h3><ul><li><a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/executions">n8n docs: Executions environment variables</a></li><li><a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/manage-execution-data">n8n docs: Manage execution data</a></li><li><a href="https://docs.n8n.io/build/flow-logic/handle-errors-gracefully">n8n docs: Handle errors gracefully</a></li><li><a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/fix-memory-issues">n8n docs: Fix memory issues</a></li><li><a href="https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/common-issues">n8n docs: Webhook node common issues</a></li></ul><p>Which of these had you assumed was true?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec1857bd8f49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Six claims about AI agents and API design: what held up and what did not]]></title>
            <link>https://medium.com/@apihiver/six-claims-about-ai-agents-and-api-design-what-held-up-and-what-did-not-fd44e657ce73?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd44e657ce73</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 19:01:45 GMT</pubDate>
            <atom:updated>2026-11-12T19:10:47.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Workbench with five loose single-purpose hand tools on one side and one open multi-tool alone in a patch of window light on the other" src="https://cdn-images-1.medium.com/max/1024/1*nSddHOtpxrdaem9Cs3xExg.jpeg" /></figure><p>Nordic APIs published “6 Ways Traditional API Design Has Changed Forever” on September 17, 2026. Its argument is that AI agents are changing how APIs get designed. I read it, opened the sources it leans on, and ran one small test of my own.</p><p>The short version: the biggest claim holds up, and I can show it with numbers. One quote is real but is used for a different point than its source makes. One claim I could not check at all.</p><figure><img alt="Diagram comparing two API shapes for the same question: five sequential resource calls totalling 7,215 bytes versus one capability call of 174 bytes" src="https://cdn-images-1.medium.com/max/1024/1*2rglty4e1KZ2MyaYu99YLg.jpeg" /></figure><h4>How the six claims scored</h4><ul><li>Machines come before humans: partly true. It is a direction, not today’s practice.</li><li>Several kinds of consumer: reasonable advice, thin evidence.</li><li>Capabilities instead of resources: holds up, and I tested it.</li><li>Just in time security: the survey number is real, but it measures worry, not incidents.</li><li>System wide failures: the quote is real, but it comes from a 2024 article about microservices, not agents.</li><li>Regulation: I did not verify it.</li></ul><h4>Claim 1: machines come before humans</h4><p>The article says API design now privileges machines over humans. Postman’s 2025 State of the API survey, with more than 5,700 respondents, puts a number on where the industry actually is. 89% of developers use generative AI, but only 24% design APIs with agents in mind. 60% still design mainly for humans, and 16% have not considered agents as consumers at all. So this is a direction, not the current practice. Postman sells API tooling, so read its framing with that in mind. The figures come from its own survey.</p><h4>Claim 2: several kinds of consumer</h4><p>The article says one size rate limits and keys to the kingdom access no longer fit when agents and people use the same API. That is sensible, and Postman’s report lists the same fixes: tell agent traffic from human traffic, scope keys narrowly, and use shorter lived tokens. But both are recommendations. Neither shows how many APIs have changed. I would treat it as good advice, not as a measured shift.</p><h4>Claim 3: capabilities instead of resources</h4><p>This is the strongest claim, and three teams that build agent tooling say the same thing independently. Anthropic’s guide to writing tools for agents calls wrapping existing API endpoints a common error, and suggests one schedule_event tool instead of separate list_users, list_events and create_event tools. Vercel recommends one deploy_project tool instead of four that each cover a piece of a deployment. Amplitude says it started with 96 tools, mostly one per endpoint, and that connecting to its server used 57% of one customer’s 200K context window before a single tool call. Its cohort tools went from nine to one.</p><p>One caveat. All three are about the tool layer that sits on top of an API, usually MCP, not about REST itself. The resource endpoints are still there underneath.</p><p>So I tested the idea on a small local server. It has one made up customer with 20 orders. The task is the kind an agent gets: what is the status of the customer’s latest order, and can it be refunded? Resource style means finding the customer by email, listing their orders, then fetching the order, its shipment and its refund eligibility. Capability style is one POST with the email. Both returned the same answer on all three runs.</p><ul><li>Resource style: 5 calls, 7,215 bytes, three rounds in sequence because later calls need IDs from earlier ones.</li><li>Capability style: 1 call, 174 bytes.</li></ul><p>By the usual rule of thumb of four characters per token, that is roughly 1,800 tokens against 43. That is an estimate, not a measured token count.</p><p>Two things limit this test. The client is a script, not a language model, so it shows how much an agent would have to read and chain, not how well an agent copes. And 6,192 of the 7,215 bytes come from the order list, so a customer with three orders would narrow the byte gap, though not the number of calls. A capability endpoint also has a cost. Someone has to design, document and version it, it answers one question, and it hides fields that another consumer might need. Anthropic’s advice is a few well chosen workflows, not deleting the resource API.</p><h4>Claim 4: just in time security</h4><p>The article cites “51% of developers” being concerned about unauthorized or excessive API calls from agents, and the figure traces back to the Postman survey above. 51% of developers worry about it, making it their top security concern, followed by 49% worried about AI systems reaching sensitive data and 46% worried about leaked credentials. That is a survey of worry, not a count of incidents. The move to short lived tokens appears as advice in the material I read. I did not verify how widely it has been adopted.</p><h4>Claim 5: failures are now system wide</h4><p>The article quotes a USENIX piece by Theo Klein and Jennifer Klein: most frontend services have many transitive dependencies, and risky dependencies typically exist in production unnoticed until one causes a major outage. I found the article, and both sentences are in it. But it is called “Hunting for Risky Dependencies”, it was published in April 2024, and it is about Google Maps microservices. Nothing in it mentions AI agents.</p><p>What it does show is concrete. Google Pay depended on a Maps backend that was never meant to serve users. A problem in a moderation system left 1% of merchants unable to edit their listings and 12% unable to create one. And about 30 services across Search, Ads and Commerce turned out to depend on internal only Maps backends. Good advice, map your dependencies, but a lesson about microservices, not something agents changed.</p><h4>What I did not verify</h4><ul><li>Claim 6, regulation. The article names FHIR in healthcare and open finance rules. I did not check either.</li><li>I did not run a real language model agent. The test used a script.</li><li>I read Postman’s web summary of its survey, not the full report.</li><li>Vercel says teams saw meaningful improvements from workflow tools but gives no numbers. Amplitude’s figures are its own, from its own blog post. I could not check either independently.</li></ul><h4>If you only change one thing</h4><p>Look at what you expose to agents and find the three to five call chains that always travel together, like find the customer, list their orders, fetch the latest one. Build one endpoint or tool for each chain and keep the resource API underneath. That is the part of the article I would act on.</p><p>If you have put an API in front of an agent, did you keep one tool per endpoint or merge them? What broke first?</p><p>Sources I read: Nordic APIs, “6 Ways Traditional API Design Has Changed Forever” (September 17, 2026). Postman, 2025 State of the API Report. USENIX ;login:, “Hunting for Risky Dependencies” (April 2024). Anthropic, “Writing effective tools for AI agents”. Vercel, “The second wave of MCP: Building for LLMs, not developers”. Amplitude, “Lessons from consolidating our MCP server” (October 6, 2026). The test server and client are small Python scripts I wrote for this post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd44e657ce73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google’s new Gemini model writes nothing, and that is the point]]></title>
            <link>https://medium.com/@apihiver/googles-new-gemini-model-writes-nothing-and-that-is-the-point-8ae308d3189e?source=rss-77d4b343295e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ae308d3189e</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[APIHiver]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 09:24:01 GMT</pubDate>
            <atom:updated>2026-11-12T09:24:01.087Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of what we ask a language model to do is not writing. We ask whether a message is spam, which queue a ticket belongs in, whether a photo shows damage. Then our code takes the answer and branches. Google’s new Gemini Decisions API, launched on November 11, 2026, is built for exactly that: you ask a list of fixed questions and get probabilities back, not sentences.</p><p>It is the fastest-rising search next to the word API on Google Trends this week, so I read Google’s launch post, its developer docs, OpenAI’s competing docs and several write-ups to work out what it is and where it falls short. I have not run it myself, and I say what that means at the end.</p><figure><img alt="Diagram of one shared input with three typed questions: yes/no 0.94, choice human_escalation 0.76, score 2.99, each with a confidence bar" src="https://cdn-images-1.medium.com/max/1024/1*XOJIGeRE2u2hfC39nft36w.png" /></figure><h4>How it works</h4><p>You send one input, which can be text, images, audio, video or PDFs, plus up to 1,000 independent questions about it. Each question is one of three kinds. A yes or no check returns the probability that a statement is true. A choice question picks one of 2 to 255 options and gives a probability for each. A score question rates the input on an ordered scale you define. Every answer also carries a confidence value, so your code can act on a sure answer and hand an unsure one to a person.</p><p>Google says the model scores your options in a single pass instead of writing an answer one token at a time. Its docs state that it generates zero text tokens, so output is always zero. In Google’s own example, a support message about broken headphones comes back as a 0.94 probability of a defect, a best action of human escalation at 0.76, and a churn score of 2.99 out of 3.</p><h4>What it costs</h4><p>Google lists $0.10 per million input tokens and nothing for output. The shared input is billed once per request, however many questions you ask. That example ticket used 324 input tokens, which by my arithmetic is about $32 for a million such requests. The same record checked by 20 separate calls instead of one request would cost roughly sixteen times more, because you would pay for the record 20 times. There is a free tier in Google AI Studio, but Google may use free tier data to improve its products.</p><h4>Google versus OpenAI</h4><p>OpenAI shipped its own Decisions API first and made it generally available on October 22, with the same list price. The differences are about inputs and extras. Gemini reads audio, video and PDFs and allows 1,000 questions per request, against 400 at OpenAI, and it has a free tier. OpenAI supports prompt caching, JSON and tool call history as input, and zero data retention for eligible customers. Caching matters: for a big document reused on every request, one outside write-up estimates about $1,100 on Gemini versus about $200 on OpenAI per million requests, and my own arithmetic from the published prices agrees. With fresh input every time, such as a new ticket or photo, caching does not help and the per token cost is the same.</p><h4>Where it falls short</h4><ul><li>It cannot write, explain, call tools or use thinking. Google’s model page lists all of these as unsupported.</li><li>A choice question always spreads probability across your options, even when none fits, so you need an other option or a confidence check.</li><li>Input is untrusted. Google’s docs warn that user text can argue for its own classification, so keep a human or second check on anything that moves money.</li><li>It is still in beta on the Gemini Developer API, with no caching, no batch mode and no Google Cloud support yet.</li></ul><h4>What I did not verify</h4><p>I did not call the API. It needs a key from Google AI Studio, and Google’s playground was not open to me. So the speed, accuracy and calibration claims are Google’s own, and I found no independent benchmark yet. Google’s latency figure of 150 to 250 milliseconds covers inputs up to 16K tokens, not the full 262,144 token window. The costs above are my arithmetic from list prices, not a bill, and I did not test OpenAI’s endpoint either. The free tier limits come from two outside write-ups.</p><p>If you already run an LLM call that returns a single word, would you move it to a decision endpoint, and what would you need to see first: your own accuracy numbers, caching, or general availability?</p><p>A longer version with comparison tables and every source is at <a href="https://apihiver.com/blog/gemini-decisions-api">https://apihiver.com/blog/gemini-decisions-api</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ae308d3189e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>