TestopiusTestopius
2026-10-30·6 min read

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.

APIbackendautomationQA

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?
Both matter, but API tests are faster and more stable, so they are a good early investment. UI tests then confirm that the pieces work together for a real user.
Which tool is best for API testing?
Postman or Insomnia work well for exploration. For repeatable automated checks, use whatever fits your stack and runs in CI, such as tests in your project's language or Playwright's API features.
What is the most important API check?
Authorization. Confirm that one user cannot read or change another user's data by changing an identifier in the request.

Need this done for you?

We test web, mobile, and desktop apps for startups. Fixed prices, fast turnaround.

See packages
Author

Testopius

QA engineer with 7+ years testing web, mobile, and desktop products. We deliver fixed-price, fixed-timeline manual audits and Playwright automation for startups and small teams.

Related posts