Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • jQuery
  • AngularJS
  • ReactJS
  • Next.js
  • React Native
  • NodeJS
  • Express.js
  • MongoDB
  • MERN Stack
  • PHP
  • WordPress
  • Bootstrap
  • Tailwind
  • CSS Frameworks
  • JS Frameworks
  • Web Development
Open In App
Next Article:
What are authentication methods supported in Postman?
Next article icon

How to Use API Keys authentication in Postman

Last Updated : 29 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

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.

postman2

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"

z159

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"

z185

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.

z186

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


Next Article
What are authentication methods supported in Postman?

A

abhiisaxena09
Improve
Article Tags :
  • Web Technologies
  • Geeks Premier League
  • Geeks Premier League 2023
  • Postman-API-Testing

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
    2 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
  • How to Use Postman Online for API Testing
    Postman is a popular form for testing and is active among APIs, whether you're a planner or an exploratory. Postman Online, as known or named at another time or place, is a variant of Postman that runs in your network internet or web viewing software, assigning you API testing and cooperation tasks
    7 min read
  • JWT Authentication In Node.js
    In modern web development, ensuring secure and efficient user authentication is paramount. JSON Web Tokens (JWT) offer a robust solution for token-based authentication, enabling secure transmission of user information between parties. This article provides a step-by-step approach to implementing JWT
    3 min read
  • What are collections in Postman, and how to use them?
    Postman is an Application Programming Interface (API) tool that streamlines the lifecycle of API development and testing efficiently. It can be used to develop, design, document, and test APIs. PrerequisitesBasic HTTP conceptsKnowledge of REST APITable of Content What are collections in Postman?Adva
    3 min read
  • Beginner's Guide to User Authentication in MERN Stack
    User authentication is an essential aspect of web development, allowing users to securely register, log in, and access protected resources within an application. This article aims to provide a beginner-friendly guide to implementing user authentication in a MERN (MongoDB, Express.js, React.js, Node.
    6 min read
  • How to set authorization headers in Postman?
    Web application security is vital, and JSON Web Tokens (JWT) play a key role in authentication and route protection. In this article we will learn how to create a secure backend with Node and Express using JWT, and then we will demonstrate how to set authorization headers in Postman for effective AP
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences