Learn how to authenticate with OnlyOneAPI
OnlyOneAPI uses API keys for authentication. Here's how to get started:
// Authentication with API Key
const headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
};
const response = await fetch('https://api.onlyoneapi.com/v1/endpoint', {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
});