Basic Authorization and Custom Headers
This support document will walk you through Basic Authorization and Custom Headers. To watch a tutorial on this topic click here
Sometimes a buyer will require you to pass an authorization token, an API key, or an Accept header. In Lead Prosper, the header Content-Type is automatically added when you select the payload type above the payload builder
To add a custom header, go to your buyer’s configuration, scroll down to custom headers, and simply add the key and value
Please note that some headers don’t need to be added. The most common ones are content-length and host
If your buyer wants an Accept header, then you would enter something like this - key: Accept and value: application/json
Make sure that your keys never contain quotation marks “ “, as these will make the key invalid
If your buyer is looking for an Authorization, the key would say something like Authorization and the value would be something like Bearer TOKEN
Another common example that is often seen in API specs is “Basic Authorization ” In this case, you will receive a username and password from your buyer
The way to get the real token value for the basic authorization header, represented above by XXX, is to go to a website that does BASE64 Encode, enter your username and password and click encode
So for example if we got a username of API and a password of mysecretpassword, once you encode those you’ll be given a value that you will copy and paste into the value section of your custom header
Those are 3 common examples of headers you will see and how to add them in Lead Prosper
As always if you have any questions please make use of the support button or email us at support@leadprosper.io