Basic Authentication (Encode Credentials to Base 64)
Some API platforms may use Basic Access Authentication. With Basic Authentication, the request Key is ‘Authorization‘, and the Value is ‘Basic ‘+ the base 64 encoding of a user ID and password.
To encode your credentials, type your username and password into this form, using the format
username:password. Your encoded credentials will appear underneath.
The encoding script runs in your browser, and none of your credentials are seen or stored by this site.
If you have any issues using the form above, please check these alternate methods of encoding your credentials to base 64.
- Encode your credentials yourself by opening Developer Tools in your browser (F12 on Windows/Linux or option + ⌘ + J on OSX). In the console, type in the following and click enter:
encodedData = "Basic " + window.btoa('YOUR_USERNAME:YOUR_PASSWORD')
You’ll need to substitute in your own user credentials for YOUR_USERNAME and YOUR_PASSWORD, like this:
Copy this value (without the quotation marks).
- Try a header generator tool like this one.
Under Headers, enter Authorization as your Key, and Basic + YOUR_BASE64_ENCODED_STRING as the Value, like this:
|Authorization||Basic + YOUR_BASE64_ENCODED_STRING|
It should look like this: