API Testing Fundamentals — The 5 Checks On Every Endpoint
2026-04-14 5 min read
For every endpoint, verify:
- Status code for the happy path AND each error path (400/401/403/404/409/422/500).
- Response schema — required fields, types, nested shapes. Use a JSON schema validator in CI.
- Headers —
Content-Type, caching, CORS, security headers. - Auth — request without a token, with an expired token, with another tenant's token. None should succeed.
- Edge data — empty arrays, nulls, maximum string length, Unicode, SQL-looking input.
Run these in Postman first to learn the shape, then port to your automation framework.
Further reading — verified sources