Skip to content

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 ​

  1. Log in to your Uptinio dashboard
  2. Navigate to Settings > API Keys
  3. Click "Generate New API Key" (or copy an existing token)
  4. Store the key securely

Using Your Token ​

Include your Project API Token in the Authorization header on every request:

Authorization: Bearer YOUR_PROJECT_API_TOKEN

curl example:

bash
curl -H "Authorization: Bearer YOUR_PROJECT_API_TOKEN" \
     https://app.uptinio.com/api/v1/network_monitors

JavaScript 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 ​

  1. Never share your API key

    • Keep it private
    • Don't commit it to version control
    • Use environment variables
  2. Rotate keys regularly

    • Generate new keys periodically
    • Revoke old keys when no longer needed
  3. Use different keys for different purposes

    • Separate keys for development and production
    • Different keys for different applications or services
  4. 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 allowed
  • X-RateLimit-Remaining - Remaining requests in current window
  • X-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"
  }
}

Next Steps ​