Authentication and Authorization are core security concepts used in APIs. Postman provides a dedicated Authorization tab to configure and test different authentication mechanisms easily while sending API requests.
In Postman, authentication is configured from the Authorization tab. The selected authorization type automatically adds required headers or parameters to the request.
// Authorization header using Bearer Token
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
// Basic Authentication header format
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
If the authentication details are valid, the API returns a successful response (200 OK). If invalid, it may return 401 Unauthorized or 403 Forbidden errors.
Select an auth type and type credentials to see how the header is constructed.
Request Flow: