A customer taps Place order on their phone. The server creates the order, but the connection drops before the confirmation reaches the app. The customer taps again.

How many orders should the warehouse receive?

One, presumably. Now imagine writing the test. If all you check is that each request returns 200 OK, both checks can pass while the warehouse packs two boxes. The interesting assertion is how many orders exist afterward.

That’s why I think API testing has never mattered more. And I expect it to matter even more as we build more ways to call the same backend.

Your website is one of your API’s clients

Think about how many ways an order can enter a system. A customer uses the website. Someone else uses the mobile app. A retail partner submits orders through an integration. All three can call the same REST API. Once the order exists, the warehouse and billing systems may use APIs to find out what happened.

The scale is already substantial. In its 2024 application security report, Cloudflare found that 60% of the dynamic, non-cacheable traffic it observed on its network was API-related. Cloudflare Application Security Report

For a tester, the important part is what those clients have in common. Disable the Place order button after the first click and you’ve improved the website. The mobile app still has its own retry logic. The partner integration has never seen your button.

Every validation rule the system relies on has to hold on the backend, regardless of which client sends the request. The browser should tell a customer immediately that a quantity is invalid. The API must enforce the same rule when that request arrives from a phone, a partner, or tomorrow’s client that nobody has designed yet.

Why I start at the API

Suppose an order line accepts whole-number quantities from 1 to 100. I want to know what happens at 0, 1, 100, and 101. I also want to know what happens when the field is missing. For every rejected order, I care about two things: what the caller was told and whether the system saved anything.

That’s a small table of inputs, expected responses, and expected outcomes. I can run it against the API in a test environment without opening a browser, filling a cart, or waiting for a checkout page to render. When a case fails, I know the request that caused it. When someone redesigns the checkout page, those tests still describe the same business rule.

For rules like this, API testing is one of the fastest, cheapest, and easiest forms of testing to automate. I still want a browser test that tells me a customer can complete checkout and understand an error. At the API layer, I can afford to explore the cases behind that one journey.

The shortcut I wish I’d had

After nearly 20 years in software testing, the most useful habit I’ve developed is listening for the moment someone says, “Our client will never do that.” That sentence gives me a question to take back to the team. What are we relying on the client to prevent, and what happens if the request reaches the server anyway?

I put the lessons I kept coming back to into The Power of Ten for API Testing: Ten Practical Rules for Modern HTTP API Testing. It’s the shortcut I wish I’d had earlier in my career: ten rules drawn from real defects, production incidents, and debugging sessions, with examples you can bring to your next test design or code review.

The book is available on Amazon, where you can read a sample. The Power of Ten for API Testing

What’s one assumption about an API client that a production incident made you test forever after?

https://www.amazon.com/dp/B0GX3BFHXJ