What Is Basic Authentication & How To Do It - Apipheny (2024)

What is Basic Aauthentication

Basic access authentication is a way for a user to provide a username and password or username and API key when making an API request.

When making an API request that requires basic authentication, one of the required components of the request is a header key and value that looks like this:

Authorization: Basic X
  • To the right of the colon is the header key: Authorization
  • To the left of the colon is the header value: Basic X

X should be replaced with the Base64 encoded version of the users credentials and it is the only value that needs to be replaced in this header.

How to Base64 Encode

The first step is to base64 encode your credentials (your username and password).

You can either base64 encode from command-line: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-base64-encode-and-decode-from-command-line/

Or you can use an online encoder such as this one, if you are okay with entering your credentials on a third-party website (at your own risk): https://www.base64encode.org/

If you use the online encoder, follow these steps:

  1. In the online encoder, enter your username and password or username and API key, separated by a colon (accountUsername:accountPassword or accountUsername:apiKey)
  2. Click ENCODE
  3. Copy the encoded value and go to the next step

Alternative base64 encoder: https://www.debugbear.com/basic-auth-header-generator

Entering your header into Apipheny

Now that you have the encoded value of your credentials, you can enter your basic auth header into Apipheny, so you can call the API in your Google Sheet.

  1. In Apipheny, where it says Headers, add a new row
  2. In the header Key, enter Authentication
  3. In the header Value, enter Basic, followed by a space, then paste your encoded credentials

Here’s what your header should look like:

What Is Basic Authentication & How To Do It - Apipheny (1)

Don’t forget to leave a space between Basic and your encoded credentials in the header value. There should be no other spaces in your headers.

Then just click the Run button at the bottom of Apipheny to call the API and confirm if your API request works successfully.

If you get an error, check your headers and confirm that you’ve encoded your credentials correctly.

Popular API Tutorials

API Knowledge

What is an API?

What is an API URL?

What are parameters?

What is an endpoint?

What is an API key/token?

What is basic authentication?

What are headers?

What is a GET request?

What is a POST request?

Import JSON to Google Sheets

SEO by SearchCyrus

share:

What Is Basic Authentication & How To Do It - Apipheny (2024)
Top Articles
The Ultimate Guide to Ethical and Sustainable Children’s Clothing
2031 "Software Defined Networking (Sdn) Market Size" with a Focus on Manufacturing Costs and Revenue
Tlc Africa Deaths 2021
Robot or human?
The 10 Best Restaurants In Freiburg Germany
Plus Portals Stscg
Aces Fmc Charting
Unraveling The Mystery: Does Breckie Hill Have A Boyfriend?
Osrs But Damage
Bed Bath And Body Works Hiring
Uc Santa Cruz Events
Slmd Skincare Appointment
Hmr Properties
Builders Best Do It Center
How Much Is Tj Maxx Starting Pay
Erskine Plus Portal
Luna Lola: The Moon Wolf book by Park Kara
Used Drum Kits Ebay
Buy PoE 2 Chaos Orbs - Cheap Orbs For Sale | Epiccarry
111 Cubic Inch To Cc
Uktulut Pier Ritual Site
91 East Freeway Accident Today 2022
Walgreens Tanque Verde And Catalina Hwy
Aps Day Spa Evesham
Accident On 215
Forest Biome
At&T Outage Today 2022 Map
New Stores Coming To Canton Ohio 2022
Restaurants In Shelby Montana
3 Ways to Drive Employee Engagement with Recognition Programs | UKG
Remnants of Filth: Yuwu (Novel) Vol. 4
Does Royal Honey Work For Erectile Dysfunction - SCOBES-AR
Vlocity Clm
Craigslist Gigs Norfolk
Http://N14.Ultipro.com
Car Crash On 5 Freeway Today
Hotels Near New Life Plastic Surgery
Tillman Funeral Home Tallahassee
Dee Dee Blanchard Crime Scene Photos
Dinar Detectives Cracking the Code of the Iraqi Dinar Market
Kenner And Stevens Funeral Home
2017 Ford F550 Rear Axle Nut Torque Spec
Tinfoil Unable To Start Software 2022
Comanche Or Crow Crossword Clue
✨ Flysheet for Alpha Wall Tent, Guy Ropes, D-Ring, Metal Runner & Stakes Included for Hunting, Family Camping & Outdoor Activities (12'x14', PE) — 🛍️ The Retail Market
Yale College Confidential 2027
Craigslist Mendocino
Argus Leader Obits Today
Enter The Gungeon Gunther
Craigslist Com Brooklyn
Glowforge Forum
Ark Silica Pearls Gfi
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6006

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.