API Authentication (Keys, OAuth 2.0, JWT)

Part 6 — proving who you are so the API lets you in.

By SixQuality · API Testing

Most real APIs require you to prove your identity before they respond. Understanding the common authentication schemes is essential, because many API test failures are simply auth problems in disguise.

Common schemes

Token-based authentication

Authenticate get token
→
Send token Authorization header
→
API grants access
Test ideas: verify that missing or invalid credentials return 401, that a valid token grants access, that expired tokens are rejected, and that a user cannot access another user's data (403).

Conclusion

API keys, OAuth 2.0, and JWT are the authentication schemes you will meet most often. Knowing how each proves identity — and testing both the allowed and denied paths — is critical for secure, correct APIs.

← Previous: 5. Working with JSON Request & Response Next: 7. Your First Request in Postman →