How to Use API Keys authentication in Postman
Last Updated :
29 Jul, 2024
Postman is an API(application programming interface) development tool that helps to build, test and modify APIs. In this tutorial, we will see how to use API Keys authentication in Postman.
The API key is a unique identifier that authenticates requests and if several users are there, their username or email id can be joined with the current date and a secure code meant only for that project by using the md5 mechanism, we can create API Key and can maintain in a database.
Steps to Use API Keys authentication in Postman
Step 1: After downloading and installing the Postman, open the software. Add a new Collection and give it a name like "GFG". Here, we can see, multiple tabs like Authorization, Pre-request scripts, Tests, and Variables.

Step 2: When you hover, on the name of your collection, 3 dots will appear. Click on those 3 dots, and then click on "Add new request"

Step 3: You need to select "GET/POST/PUT/DELETE etc" request from the dropdown down menu as per requirement and click on "Authorization" Tab as shown below.
Example: In this example, we are selecting "GET"

Step 4: Now in the right-side pane, we need to enter key and value as shown
key: x-api-key
value: API Key associated with your account.

You can get API key associated with your account by creating an account on this website
https://api-ninjas.com/api/emoji
Step 5: Now You can simply paste the API in the space provided and click on Send. Output will be shown in the body with the status code; 200 (OK).
API USED
https://api.api-ninjas.com/v1/emoji?name=slightly smiling face
Note: To call this API: we need to provide API Key :
Output
Similar Reads
How to add Bearer Token authentication in Postman ? Postman is a crucial platform for developers, aiding in API testing, creation, and modification. APIs support various website features, such as user registration and login. For secure actions like changing passwords, Bearer Token Authentication is used. Upon login, the server issues a token, acting
3 min read
How to Handle Authentication with Postman API Testing? Authentication is very important for securing access to resources and data. When testing APIs, handling authentication correctly is important to ensure that your tests can interact with secured endpoints effectively. Postman, a popular API testing tool, provides robust features for handling various
4 min read
What are authentication methods supported in Postman? An API platform called Postman is used to create and use APIs. With Postman, you can design better APIs more quickly by streamlining collaboration and simplifying each step of the API lifecycle. Authentication in Postman verifies a user's identification. It includes sending a validated username and
4 min read
How to configure Digest Authentication in Postman? Postman is an important tool in API Development. Postman allows us to test, modify the APIs, and also build new APIs. There is Digest Authentication in Postman which is an authentication method used in the HTTP communication. In this article, we will see how we can configure Digest Authentication in
1 min read
How to generate API documentation using Postman? Postman is a popular API testing tool that is used to simplify the process of developing and testing APIs (Application Programming Interface). API acts as a bridge between two software applications which enables them to communicate and share data. In this article, you will learn how to generate API
2 min read