NewOffensive AI & LLM penetration testing is now available —Learn more →
xtreme.infosec
Book a call30 min · free · Google Meet
BlogAPI testing

API Testing Checklist: 30 Checks Before Every Release

A practical 30-point list for checking APIs before release, from status codes and validation to roles and contracts.

By Xtreme InfoSec QA Team·18 Nov 2026·10 min read

An API testing checklist saves you from the most common release problem: the screens look fine, but the API behind them returns wrong data, accepts bad input or breaks an older app. APIs carry your data and business rules, so a mistake here reaches every web and mobile app that uses them.

Below is a practical list of 30 checks to run before every release. It covers correctness, validation, access, integrations and contracts. It is about whether the API works correctly. Security testing, which asks whether the API can be attacked, is a separate job, and we link to it near the end.

Key takeaways

  • Check each endpoint for the right status code, the right fields and the right data changes, not only for “it returned 200”.
  • Test bad input, not just good input. Most real-world API bugs live in validation and error handling.
  • Test every user role, and test that one user cannot read or change another user’s data.
  • Test the services your API calls, including what happens when they are slow or down.
  • Automate the checks and run them on every build, so a broken API cannot reach production unnoticed.

Before you start: what you need

  • The API documentation, ideally an OpenAPI (Swagger) file or a Postman collection.
  • A test environment that behaves like production, with its own data.
  • Test credentials for every user role, such as admin, staff and customer.
  • Test data that you can reset, so every run starts from the same state.
  • A list of the apps and services that use the API, so you know who a breaking change will hurt.

API testing checklist: 30 checks before release

Functional correctness

  1. Each endpoint returns the documented status code for valid requests, such as 200, 201 or 204.
  2. Response fields, types and formats match the contract (OpenAPI or JSON Schema).
  3. Required parameters are enforced, and optional ones behave correctly when left out.
  4. Create, read, update and delete calls change the data exactly as expected, and nothing else.
  5. Business rules hold: totals, limits, status changes and calculations are right.
  6. Pagination, sorting and filtering return correct and consistent results, including the last page and empty results.

Validation and errors

  1. Invalid, empty, too long and wrong-type input is rejected with 400 or 422 and a clear message.
  2. Error responses use one consistent format and never reveal stack traces, queries or internal paths.
  3. Unknown routes return 404, and wrong methods return 405.
  4. Repeated requests are safe: operations that should be idempotent stay idempotent, and a double submit does not create two orders.
  5. Large payloads and unusual characters, such as Unicode, very long strings and symbols, are handled properly.
  6. Dates, time zones, currencies and number formats are accepted and returned correctly.

Authentication and access

  1. Requests without a token get 401.
  2. Expired, malformed and revoked tokens are rejected.
  3. Each role gets only the data and actions it should, and receives 403 for the rest.
  4. A user cannot read or change another user’s records by changing an id in the request.
  5. Logout and token refresh work as documented.
  6. Rate limits return 429 with a clear retry hint.

Integrations and reliability

  1. Calls to payment, SMS, email and other services work in the provider’s test or sandbox mode.
  2. The API handles a slow or failing outside service with sensible timeouts, retries and error messages.
  3. Webhooks are delivered, retried when they fail, and verified with a signature check.
  4. Client-side timeouts and retries do not cause the same action to run twice.
  5. Two requests changing the same record at the same moment do not corrupt the data.
  6. File uploads and downloads respect size, type and content-type limits.

Contract, versions and operations

  1. Responses match the published contract, and new fields do not break existing clients.
  2. Older API versions keep working for clients that have not upgraded, until the announced end date.
  3. A contract test catches breaking changes before release.
  4. Response times stay within the agreed baseline under normal load. Full load testing is a separate exercise.
  5. Logs and monitoring show enough to trace a failed request, without recording passwords or tokens.
  6. The whole suite runs automatically in your pipeline and fails the build when a check fails.

A worked example: checking an order API

Suppose your API has an endpoint that creates an order. Here is how the checklist turns into real tests for that one endpoint:

  1. Send a valid order with all required fields. Check for 201, the documented fields in the response, and a new order in the database with the right total.
  2. Remove each required field one at a time. Check that each request is rejected with a clear message and that no order is created.
  3. Send a negative quantity, a zero price, a very long product note and a quantity that is a word. Check that each one is rejected safely.
  4. Send the same valid order twice in a row, as an app might after a timeout. Check that you do not end up with two orders, or that the second is clearly handled.
  5. Call the endpoint without a token, with an expired token, and as a user who is not allowed to place orders. Check for 401 and 403.
  6. Place an order while the payment provider’s sandbox returns an error. Check that the order status and the message to the user are correct.
  7. Read the order back as another customer. Check that the request is refused.
  8. Run the same tests against the previous API version that older apps still use.

That is eight tests for one endpoint, and each one maps to an item above. Multiply this across your important endpoints, put the tests in a pipeline, and you have a safety net that runs in minutes.

Tips for reliable API test data

  • Create the data each test needs at the start, and remove it at the end, so tests do not depend on each other.
  • Use separate test accounts for each role, and keep their passwords out of your code repository.
  • Avoid using production data. If you must copy it, remove personal details first.
  • Keep a small set of fixed records for read tests, and generate fresh records for write tests.

Which checks to automate first

You do not need to automate all 30 on day one. Start where a failure hurts most, and where the check is stable.

PriorityChecksWhy first
1Authentication and roles (13 to 16)A mistake here exposes data or locks users out
2Core create, read, update, delete flows (1 to 5)These are the heart of the product
3Input validation and error format (7 to 9)Cheap to automate, and catches many bugs
4Contract and version checks (25 to 27)Stops breaking changes from reaching clients
5Integrations and webhooks (19 to 22)Needs mocks or sandboxes, so set up after the basics

This checklist asks whether your API works correctly. To ask whether it can be attacked, read our API security checklist and see API penetration testing. For functional checking, see our API testing services.

How to run these checks

Most teams combine a request tool for exploring with a code-based suite for repeating:

  • Postman and Newman: build collections with tests, then run them from the command line in your pipeline.
  • REST Assured, Karate or pytest with requests: code-based suites that live next to your source code.
  • OpenAPI and JSON Schema: check responses against the contract automatically.
  • WireMock or Mockoon: stand-in services for outside providers, so tests do not depend on them.
  • Jenkins, GitHub Actions or GitLab CI: run the suite on every build.

Common API bugs worth looking for

  • A response that says 200 OK while the body contains an error.
  • Missing validation, so wrong data is saved quietly.
  • Different error formats from different endpoints.
  • Page counts that are off by one, or a last page that repeats items.
  • A field renamed in a new version without telling the apps that use it.
  • Dates that shift by a day because of time zones.
  • Old data returned from a cache after an update.

Functional API testing and API security testing: the difference

Functional API testingAPI security testing
Question it answersDoes the API do what it should?Can someone make it do what it should not?
Typical findingsWrong data, missing validation, broken contractsBroken access control, data exposure, abuse of business flows
Who does itQA engineersSecurity testers
WhenEvery releaseBefore launch, and after major changes

Xtreme InfoSec offers both. Our QA team runs functional and automated API testing, and our security team runs security and vulnerability testing for APIs. You can see every service on our QA testing services page.

Frequently asked questions

What is API testing?

API testing means sending requests to your API and checking the responses, the data changes and the behaviour, without going through the user interface.

How is API testing different from UI testing?

UI testing checks what a user sees on screen. API testing checks the layer underneath. It is faster, more stable and finds problems earlier, but it does not show how the screens look.

Which tool is best for API testing?

There is no single best tool. Postman is popular for exploring and for simple suites. REST Assured, Karate and pytest suit teams that want tests next to their code. The design of the tests matters more than the tool.

How often should API tests run?

On every build for the fast checks, and before every release for the full suite. APIs that other companies depend on deserve contract checks on every change.

Does this checklist work for GraphQL?

Mostly yes. The ideas about validation, access, errors and contracts apply. GraphQL also needs checks on the schema, query depth and complexity, and on which fields each role can request.

Get your APIs tested before the next release

Share your API documentation and release plan. We will scope the checks, test every endpoint and send a fixed quote.

Get an API testing quote

Keep reading

Get started

Get a free quote for your VAPT.

Share your app, scope and deadline. You’ll get a clear plan, a timeline and a fixed quote — we reply within 1 hour.

+91 98183 63944

    Message Us

    Tell us what you need — we’ll reply with clear next steps and a fixed quote.

    Your details stay confidential and are used only to respond to your enquiry.

    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

    Chat on WhatsApp