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.
Try out examples of different types of authorization in a collection template that's ready to be modified to fit your use case. To try out this template, select Authorization methods.
Authentication in Postman
Some APIs require establishing a client's identity with a digital certificate. You can add your certificate authority (CA) or client certificates to Postman so you can access APIs that require authentication. To learn more, go to Add and manage CA and client certificates in Postman.
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:
- Use the Authorization tab of a request or collection to select an auth type and complete relevant details. To learn more, go to Add API authorization details to requests in Postman. For more details on each authorization type you can use, go to Authorization types supported by Postman.
- When you create a request to a public API with Guided Auth set up, Postman will give you the option to automatically set up authorization. To learn more, go to Set up authorization for public APIs using Guided Auth.
- Some APIs enable you to send authentication details as query parameters. Also, Postman may automatically add headers to your request based on your auth setup. To learn more, go to Send parameters and body data with API requests in Postman or Configure headers for API requests 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.
- If you're having issues getting a request to authenticate and run, review the tips in Debug API requests using the Postman Console. If you still have auth problems, check out the authentication tag on the Postman forum.
Last modified: 2024/02/06