Autenticazione API
Autentica le tue richieste API con chiavi API e gestisci i token di accesso.
Authentication Method
All API requests must include a valid API key in the Authorization header. Rankfender uses Bearer token authentication.
Getting Your API Key
- Log in to your Rankfender dashboard
- Go to Workspace Settings → API Keys
- Click "Generate New Key"
- Give the key a descriptive name (e.g., "Production Website")
- Copy the key immediately -- it won't be shown again

Using Your API Key
Include the key in every API request:
curl -X GET https://api.rankfender.com/v1/projects \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Key Types
- Full Access Key: Read and write access to all endpoints
- Read-Only Key: Only allows GET requests
- Project-Scoped Key: Limited to a specific project
Security Best Practices
- Never expose API keys in client-side code or public repositories
- Use environment variables to store keys
- Rotate keys periodically
- Use the minimum permission level needed
- Revoke keys immediately if compromised
Revoking a Key
To revoke an API key:
- Go to Workspace Settings → API Keys
- Find the key in the list
- Click "Revoke"
- The key is immediately disabled -- all requests using it will return 401
Authentication Errors
401 Unauthorized-- Missing or invalid API key403 Forbidden-- Key doesn't have permission for this action