A private API can require a username and password before it serves a request. In Postman on the Linux desktop, Basic Auth supplies that pair to an endpoint that uses HTTP Basic authentication.
Postman encodes the pair in Base64 in the Authorization header. Anyone who can read the header can recover the password, so use an HTTPS endpoint with a trusted certificate.
The Lightweight API Client can send the request without a Postman account. It keeps your requests and request history on the device.
Steps to set basic authentication in Postman:
Start with a new GET request open in the Lightweight API Client's default layout. You'll need a read-only HTTPS endpoint that requires Basic Auth and an API username and password you're authorized to use.
- Click the URL field beside GET.
An empty field shows Enter URL or paste text.
- Enter your protected endpoint's HTTPS URL in the URL field.
https://api.example.test/v1/basic-authis the example endpoint. - Click Send to make the request without credentials.
The response is ready when Postman shows its status, time, and size.
- Confirm that the response shows
401 Unauthorized.
If you get a different status, check the protected endpoint in your API documentation before proceeding.
- Open the request's Authorization tab.

- Open the Type list.

- Select Basic Auth.

- Click the Username field.

- Enter your API username, replacing any existing value.
The example username is
user. - Click the Password field.
The field can display your password in plain text, including in screenshots and screen shares.
- Enter your API password, replacing any existing value.
The disposable example password is
example-password. - Click Send to repeat the same request with Basic Auth.
The status, time, and size update when the response arrives.
- Verify the response against the success status and content your API documents.
The example returns
200 OKwith"authenticated": trueand"user": "user"in Body. A repeated401 Unauthorizedmeans the API still refused the request.