From the course: Introducing Postman

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Authenticate requests

Authenticate requests - Postman Tutorial

From the course: Introducing Postman

Start my 1-month free trial

Authenticate requests

- [Instructor] Collections and folders are more than mere containers. Both may contain additional information that controls how the requests within them behave. One such place is authentication. Many of the APIs we use require some form of authentication. Chances are that we need the same authentication data on each of the requests to a particular API. Consider the case of boards on our sample API. When we're not authenticated, the API returns only those boards marked as public. If we want to retrieve a particular user's private boards, we need to authenticate the request. Let's create a new request to get an authentication token, which we can attach to those subsequent requests. For this request, we'll be sending credentials to the API. Note that this uses clear text for demonstration purposes. APIs you use will likely have different requirements. We'll be sending data in the request body, so we need to change the HTTP method to Post. The sample API uses the slash auth route to…

Contents