#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

API Keys, Bearer Tokens, and Basic Auth

Why Authentication Matters

Most real-world APIs are protected, so a request needs to prove who is calling before the server returns any data. Postman's Authorization tab lets you attach the right credentials to a request without writing any extra code.

API Keys

An API key is a unique string issued by the API provider. In Postman you can send it as a query parameter or, more commonly, as a custom header such as x-api-key. Select API Key in the Authorization tab, enter the key name and value, and choose whether it should be added to the header or the query string.

Bearer Tokens

Bearer tokens are typically issued after a login or OAuth flow and sent in the Authorization header as Bearer <token>. Choosing the Bearer Token type in Postman and pasting the token automatically formats the header correctly for you.

Basic Auth

Basic Auth sends a username and password encoded in Base64 inside the Authorization header. Postman handles the encoding automatically once you select Basic Auth and fill in the username and password fields.

MethodWhere Credentials GoCommon Use Case
API KeyHeader or query paramPublic/partner APIs
Bearer TokenAuthorization headerToken-based/JWT APIs
Basic AuthAuthorization header (Base64)Simple internal APIs
With the basics of authentication covered, let's move on to a more advanced and secure authorization flow: OAuth 2.0.

Ready to master Postman API Testing Course?

Join Uncodemy's hands-on training and build real-world API testing skills with expert mentors.

Explore Course