API authentication and authorization in Postman

API authentication and authorization in Postman

Postman enables you to send auth details with your API requests. APIs use authentication and authorization to ensure that client requests access data securely. Authentication involves verifying the identity of the request sender, while authorization confirms that the sender has permission to carry out the endpoint's operation.

If you're building an API, you can choose from a variety of auth models. If you're integrating with a third-party API, the required authorization will be specified by the API provider.

Request authorization in Postman

You can pass auth details along with any request you send in Postman. Auth data can be included in the header, body, or as parameters of a request. If you enter your auth details in the Authorization tab of a request, Postman will automatically populate the relevant parts of the request for your chosen auth type. You can use variables and collections to store authorization details, enabling you to reuse the same information in multiple places.


Go to the following topics to learn more about request authorization in Postman:

If you have session cookies in your browser, you can sync them to Postman using Postman Interceptor. To learn more, go to Capture traffic from a web browser using Postman Interceptor and Create and capture cookies using Postman’s cookie manager.


Add and manage CA and client certificates in Postman

You can add and manage certificates in Postman to enable authentication when sending requests.

To connect to an API that uses Mutual TLS (mTLS), you need to add a client certificate to Postman. Mutual TLS is an authentication method that requires both the client and the server to confirm their identity with a certificate. Once the identity of both parties is confirmed, an encrypted connection is established.

Managing certificates

In the Postman settings, you can view installed certificates, add a new certificate, or remove a certificate.

  1. Select the settings icon in the header and select Settings.
  2. Select the Certificates tab.

Adding CA certificates

To avoid "self signed certificate" errors when sending requests, add your custom CA certificate to Postman.

  1. Turn on the toggle next to CA Certificates.
  2. Select the PEM file for your CA certificate. (The PEM file can contain multiple CA certificates)

Adding client certificates

To send requests to an API that uses mutual TLS authentication, add your client certificate to Postman.

  1. Select Add Certificate.
  2. Enter the Host domain for the certificate (don't include the protocol). For example, enter postman-echo.com to send requests to the Postman Echo API. The Host field supports pattern matching. If you enter *.example.com, the same client certificate will be used for all example.com subdomains.
  3. (Optional) Enter a custom port number to associate with the domain. If you don't specify a port, Postman uses the default HTTPS port (443).
  4. Select the CRT file and the Key file for your certificate OR select the PFX file for your certificate.
  5. If you used a Passphrase when generating the client certificate, enter it in the box. Otherwise, leave the box blank.
  6. Select Add.

Each client certificate is specific to a domain. To send requests to more domains, add the appropriate certificate for each domain. Don't add more than one certificate for the same domain. If you add more than one certificate for a domain, Postman will use the last certificate added.

Removing a certificate

Remove a certificate if you no longer need it to send requests from Postman.

  • To remove a CA certificate, select the remove icon next to the certificate.
  • To remove a client certificate, select the delete icon next to the certificate.


Follow Guneet Singh for more QA related topics


API authentication and authorization are critical for secure data exchange. Postman makes it easy to experiment with different auth methods,whether it’s OAuth, API keys, or Bearer tokens, by embedding them in headers or parameters. Managing certificates adds an extra layer of security, especially for testing environments that need mutual TLS authentication. How do you usually decide which auth method fits best for your API use case?

To view or add a comment, sign in

More articles by Guneet Singh

Others also viewed

Explore content categories