Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header as a Bearer token.

Header Format

Authorization: Bearer sb_live_xxxxxxxxxxxxxxxxxx

Example Request

curl -X GET "https://bridge.sauerbase.com/api/v1/endpoints" \
  -H "Authorization: Bearer sb_live_xxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json"

JavaScript Example

const response = await fetch('https://bridge.sauerbase.com/api/v1/endpoints', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer sb_live_xxxxxxxxxxxxxxxxxx',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Python Example

import requests

headers = {
    'Authorization': 'Bearer sb_live_xxxxxxxxxxxxxxxxxx',
    'Content-Type': 'application/json'
}

response = requests.get(
    'https://bridge.sauerbase.com/api/v1/endpoints',
    headers=headers
)

data = response.json()
print(data)

Keep your API keys secure

Never expose your API keys in client-side code or public repositories. Use environment variables to store keys securely.