Authentication is the process of verifying the identity of a client before allowing access to protected APIs. Postman supports multiple authentication mechanisms such as Basic Authentication, Bearer Token, and OAuth 2.0.
In HTTP, authentication credentials are passed using the Authorization header. Different authentication schemes define different formats for this header.
// Basic Authentication header format
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
The username and password are combined as username:password and Base64 encoded. Postman does this automatically when you select Basic Auth.
// Bearer token sent with every request
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Bearer tokens are usually JWTs. The server validates the token and grants access without username/password.
// OAuth 2.0 token request parameters
grant_type=authorization_code
client_id=CLIENT_ID
client_secret=CLIENT_SECRET
redirect_uri=https://oauth.pstmn.io/v1/callback
code=AUTH_CODE
Postman opens a browser for login, retrieves the authorization code, and exchanges it for an access token.
OAuth 2.0 follows this sequence:
See how Postman works: Enter credentials below to see how they are converted into a Base64 Authentication Header in real-time.