Appearance
Authentication
Authenticate with the Uptinio API using a Project API Token from your Uptinio project. The token scopes all requests to that project's resources (monitors, incidents, servers, and more).
Getting Your Project API Token
- Log in to your Uptinio dashboard
- Navigate to Settings > API Keys
- Click "Generate New API Key" (or copy an existing token)
- Store the key securely
Using Your Token
Include your Project API Token in the Authorization header on every request:
Authorization: Bearer YOUR_PROJECT_API_TOKENcurl example:
bash
curl -H "Authorization: Bearer YOUR_PROJECT_API_TOKEN" \
https://app.uptinio.com/api/v1/network_monitorsJavaScript example:
javascript
const response = await fetch('https://app.uptinio.com/api/v1/network_monitors', {
headers: {
'Authorization': `Bearer ${projectApiToken}`,
'Content-Type': 'application/json'
}
});Security Best Practices
Never share your API key
- Keep it private
- Don't commit it to version control
- Use environment variables
Rotate keys regularly
- Generate new keys periodically
- Revoke old keys when no longer needed
Use different keys for different purposes
- Separate keys for development and production
- Different keys for different applications or services
Limit key scope
- Use the token for the project you intend to access
- Revoke keys immediately if compromised
Rate Limiting
API requests are rate limited:
- Standard plans: 100 requests per minute
- Enterprise plans: 1000 requests per minute
Rate limit headers are included in responses:
X-RateLimit-Limit- Maximum requests allowedX-RateLimit-Remaining- Remaining requests in current windowX-RateLimit-Reset- Time when the rate limit resets
Error Responses
Invalid or Missing Token
Status: 401 Unauthorized
json
{
"errors": ["Invalid or expired token"]
}or
json
{
"errors": ["Missing authentication token"]
}or
json
{
"error": "Unauthorized"
}Rate Limit Exceeded
Status: 429 Too Many Requests
json
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests"
}
}