> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paytsoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic Authorization

> Almost all API endpoints require the access_token to be sent as a Bearer token. The token endpoints and the sign_up endpoint require the Basic token.

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](https://tools.ietf.org/html/rfc4648) version of Base64 is required.

```javascript theme={null}
var clientId = "q-QynnbDDXVFJCHUPg58EWHH2n5kCWaWYeJ5lVQNI7A"
var clientSecret = "Mq4E2VFNssr5iA7Z7LAdS82vm59wBog5Q5Hl6J-OsL4"
var base64Encoded = btoa(clientId + ":" + clientSecret)
var authorizationHeaderValue = "Basic " + base64Encoded

console.log(authorizationHeaderValue)
=> Basic cS1ReW5uYkREWFZGSkNIVVBnNThFV0hIMm41a0NXYVdZZUo1bFZRTkk3QTpNcTRFMlZGTnNzcjVpQTdaN0xBZFM4MnZtNTl3Qm9nNVE1SGw2Si1Pc0w0
```
