Secure your API requests with TrackScore's authentication system. Learn how to generate API keys, authenticate requests, and implement secure patterns in your applications.
Simple and secure authentication using API keys. Perfect for server-to-server communication and backend integrations.
Advanced authentication for user-specific actions and third-party integrations using industry-standard OAuth 2.0.
Log in to your TrackScore account or create a new one if you haven't already.
Go to your Dashboard → Settings → API Keys to access the API management section.
Click "Generate New Key", provide a descriptive name, and set the appropriate permissions.
Copy your API key immediately and store it securely. You won't be able to see it again for security reasons.
Include your API key in the Authorization header of every request using the Bearer token format.
curl -X GET "https://api.trackscore.online/v1/leaderboards" \ -H "Authorization: Bearer ts_live_1234567890abcdef" \ -H "Content-Type: application/json"
const response = await fetch('https://api.trackscore.online/v1/leaderboards', { method: 'GET', headers: { 'Authorization': 'Bearer ts_live_1234567890abcdef', 'Content-Type': 'application/json' } }); const data = await response.json();
import requests headers = { 'Authorization': 'Bearer ts_live_1234567890abcdef', 'Content-Type': 'application/json' } response = requests.get( 'https://api.trackscore.online/v1/leaderboards', headers=headers ) data = response.json()
For production use. Start with ts_live_
For development and testing. Start with ts_test_
read:leaderboards
- View leaderboardswrite:leaderboards
- Create/update leaderboardsread:participants
- View participantswrite:participants
- Manage participantsadmin
- Full access{ "error": { "code": "unauthorized", "message": "Invalid or missing API key" } }
Your API key is missing, invalid, or has been revoked.
{ "error": { "code": "insufficient_permissions", "message": "API key lacks required permissions" } }
Your API key doesn't have permission for this action.
{ "error": { "code": "rate_limit_exceeded", "message": "Too many requests" } }
You've exceeded your rate limit. Wait before making more requests.