API testing basics: the checks teams skip most often
The interface looks fine, but the API behind it accepts anything. A practical starting point for testing APIs, with the checks that are skipped most and cause the most damage.
Most bugs users see in the interface start in the API. Tests that only click through screens can pass while the API behind them happily accepts invalid data, returns the wrong status or exposes someone else's records.
API tests are also faster and more stable than browser tests, which makes them a good place to invest early. Here is where we start.
Start with the contract
Before testing behaviour, know what the API promises. For every endpoint write down the method, the inputs, the response shape and the status codes. If your team has an OpenAPI or Swagger file, use it. If not, writing even a short list reveals gaps nobody had noticed.
The checks teams skip most
- Wrong status codes. A failed request that returns success with an error message in the body breaks every client that trusts the status code. Check that errors return error statuses.
- Missing or invalid input. Send an empty body, missing required fields, wrong types, very long strings and special characters. The API should reject them clearly, not crash or save garbage.
- Authorization, not just authentication. Being logged in is not the same as being allowed. Try to read or change another user's record by changing an ID in the request.
- Expired and invalid tokens. Confirm that an expired, tampered or missing token is refused every time.
- Duplicate requests. Send the same create or payment request twice. Does it create two records or two charges?
- Pagination and limits. Ask for page zero, a negative page, a huge page size and the last page.
- Error messages that reveal too much. A stack trace or database error in a response helps no user and can help an attacker.
A simple test shape
Each API test follows the same four steps:
- Arrange the data and the user you need.
- Act by sending one request.
- Assert on the status code, the response body and the headers that matter.
- Check the side effect by reading the data back, because a success response does not prove the record was saved correctly.
Tools to begin with
A request tool such as Postman or Insomnia is enough for exploring. For repeatable checks that run in CI, tests written in your project's language, or Playwright's API testing features, keep everything in one place. The best tool is the one your team will actually keep running.
Do not forget the unhappy paths
For every success case, write at least one failure case. Teams usually cover "it works" thoroughly and "it fails safely" barely at all, yet the second is what users and attackers find.
Want a second pair of eyes on your API?
Our Full QA + Automation work includes API checks alongside UI flows. Get a project-specific quote.
Frequently asked questions
Should we test the API or the UI first?
Which tool is best for API testing?
What is the most important API check?
Need this done for you?
We test web, mobile, and desktop apps for startups. Fixed prices, fast turnaround.
See packagesRelated posts
AI agents are rewiring QA in 2026 — the winners, the losers, and what we're doing differently
Playwright MCP, Browser-use, and Claude Code have reshaped what manual QA actually does. Here's who's winning in this shift, who's getting squeezed out, and the workflow we've adopted after 6 months of real client work.
AI, MCP and skills in a real QA process: where each piece fits
AI models, MCP servers and agent skills are often mixed up. Each does a different job. Here is how the three fit into a QA process, where a human must stay in the loop, and the guardrails we keep.