Skip to main content
The value for the authorization header consists of the word “Basic”, followed by a space, followed by the Base64-encoded version of the client_id and the client_secret. The client_id and client_secret must be separated by a single colon ”:”. The RFC 4648 version of Base64 is required.
var clientId = "q-QynnbDDXVFJCHUPg58EWHH2n5kCWaWYeJ5lVQNI7A"
var clientSecret = "Mq4E2VFNssr5iA7Z7LAdS82vm59wBog5Q5Hl6J-OsL4"
var base64Encoded = btoa(clientId + ":" + clientSecret)
var authorizationHeaderValue = "Basic " + base64Encoded

console.log(authorizationHeaderValue)
=> Basic cS1ReW5uYkREWFZGSkNIVVBnNThFV0hIMm41a0NXYVdZZUo1bFZRTkk3QTpNcTRFMlZGTnNzcjVpQTdaN0xBZFM4MnZtNTl3Qm9nNVE1SGw2Si1Pc0w0
Last modified on June 12, 2026