Blog

November 15, 2026 · Ihor Stefaniv · 2 min read

API testing checklist: 40 checks to run before a release

Status codes, validation, auth, idempotency, pagination, performance and security — a copy-and-use checklist for REST APIs, grouped by risk.

How to use this checklist

Go through it per endpoint for new APIs, and per change for existing ones. Not every item applies to every endpoint — but every skipped item should be a conscious decision. The theory behind it is in API testing in depth.

1. Status codes and responses

  1. Success returns the right code: 200 read, 201 create (with Location), 204 delete.
  2. A missing resource returns 404, not 500 or 200 with an empty body.
  3. Invalid input returns 400/422 with a clear, field-level error.
  4. Errors have a consistent format across endpoints.
  5. Error responses don't leak stack traces, SQL or internal hostnames.

2. Schema and data

  1. Every required field is present, with the correct type.
  2. No unexpected extra fields (especially internal ones).
  3. Dates use one format (ISO 8601) and a stated time zone.
  4. Money uses decimals or minor units consistently — no floating-point surprises.
  5. Enums return only documented values.
  6. Null vs. missing field behaves as documented.

3. Validation

  1. Required fields missing → 400.
  2. Wrong types (string for number, array for object) → 400.
  3. Boundary values for numbers and lengths — use the boundary value calculator.
  4. Unicode, emoji and RTL text are stored and returned intact.
  5. Very large payloads are rejected with 413, not a timeout.
  6. Unknown fields in the request are ignored or rejected — as documented.

4. Authentication

  1. No token → 401.
  2. Expired or malformed token → 401, not 500.
  3. A token after logout or password change no longer works.
  4. Tokens never appear in URLs or logs.

5. Authorization

  1. User A can't read user B's resource by changing the ID (IDOR) → 403/404.
  2. User A can't modify or delete user B's resource.
  3. Each role can call only its permitted endpoints.
  4. Hidden UI actions are also blocked at the API.
  5. Mass assignment: sending role=admin or price=0 in the body has no effect.

6. Idempotency and concurrency

  1. Repeating PUT/DELETE gives the same result.
  2. POST with the same Idempotency-Key doesn't create a duplicate.
  3. Parallel requests on a limited resource (last item, one-time code) succeed exactly once.

7. Lists

  1. Pagination: first, last, empty and out-of-range pages.
  2. Page size limits are enforced.
  3. Sorting is stable — no item appears on two pages.
  4. Filters combine correctly; special characters in search don't break the query.

8. Performance and limits

  1. p95 response time meets the requirement under realistic data volumes.
  2. Rate limiting returns 429 with Retry-After.
  3. Timeouts on slow dependencies produce a clean error.

9. Security and operations

  1. HTTPS only; HTTP redirects or is refused.
  2. CORS allows only intended origins.
  3. Security headers present on API responses where relevant.
  4. A request ID is returned and logged, so bugs can be traced.

Automate the stable part

Items 1–13 and 18–28 automate well: a schema check plus a parametrized table of negative cases covers most of them. See API test automation with JSON Schema and Postman in practice.

Read next