API for Product Managers
API Authentication and Authorization Basics
In this lesson
You'll learn the difference between authentication and authorization, the common ways APIs verify access, and how these choices affect your product.
Authentication vs authorization
Authentication: Checks who is making the request, whether it's a user or an app.
Authorization: Decides what that user or app is allowed to see and do.
Common authentication methods
Method | How it works | Common use |
|---|---|---|
API key | A unique key sent with each request | Simple server-to-server integrations |
Basic auth | A username and password sent with each request | Older or internal systems |
OAuth 2.0 | The user grants an app limited access without sharing a password | Sign in with Google, connecting third-party apps |
Bearer token | A token, often a JWT, sent with each request after login | Logged-in sessions in web and mobile apps |
Example
When you log in to your banking app, the bank confirms it's really you. That's authentication. Once you're in, you can see your own accounts but not anyone else's. That's authorization.
Why this matters for you as a PM
Roles and permissions decide what each type of user can see and do.
Sign-in flows shape onboarding and conversion.
Weak authentication creates security and compliance risks for your business.
Common mistakes to avoid
Using authentication and authorization as if they mean the same thing.
Leaving roles and permissions out of the PRD until development is underway.