How to Access Information about a Postman API Authenticated User

An authenticated user of the Postman API is the owner of the API key that you’re sending through a request. Accessing information about an authenticated user is really useful when you want to populate a user interface, or when you need that information to interact with other systems. Now, you can use the /me Postman API endpoint to access what you need—including the authenticated user’s username, full name, and email address.

What information is available

Retrieving information about the authenticated user works by making a GET request to the Postman API /me endpoint. You’ll be able to find the user’s information by inspecting the response’s user attribute. You will find the following attributes:

 

NameDescription
idA numeric value representing the Postman user ID.
usernameA string with the user’s username.
emailA string with the user’s e-mail address.
fullNameA string with the user’s full name.
avatarThe URL of the user’s profile picture.
isPublicA boolean that indicates if the user profile is public. Public profiles have the isPublic value set to true; private profiles have the isPublic value set to false.

Retrieve the user’s information now

Now that you’ve seen how it works—and what specific (and helpful) user information you can retrieve—try it yourself today by opening the “API Key Owner” request in the Postman Public Workspace and execute a request.


What do you think about this topic? Tell us in a comment below.

Comments

Your email address will not be published. Required fields are marked *



This site uses Akismet to reduce spam. Learn how your comment data is processed.

You might also like: