SysmosSysmos Docs
API Reference

Authentication

Authenticate with the Sysmos REST API using JWT tokens and API keys.

The Sysmos API uses two authentication methods depending on the use case.

JWT Tokens (Dashboard / User Sessions)

For user-facing interactions, the API uses JWT (JSON Web Tokens):

# Login to get a token
curl -X POST https://api.sysmos.org/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "password": "your-password"}'

Response:

{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "expires_at": "2025-01-16T10:00:00Z"
}

Use the token in subsequent requests:

curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
  https://api.sysmos.org/v1/monitors

API Keys (Programmatic Access)

For server-to-server integrations and the monitoring agent, use API keys:

curl -H "X-API-Key: your-api-key" \
  https://api.sysmos.org/v1/monitors

Generate API keys in the dashboard under SettingsAPI Keys.

API Key Scopes

ScopeAccess
readRead-only access to monitors, servers, and alerts
writeCreate and modify monitors and configurations
adminFull access including organization and member management
agentServer agent registration and metric submission

Rate Limits

EndpointLimit
Authentication10 requests/minute
API reads100 requests/minute
API writes30 requests/minute
Agent metrics1000 requests/minute

Rate limit headers are included in every response:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1705312800

Errors

All errors follow a consistent format:

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or expired authentication token"
  }
}
Status CodeMeaning
401Missing or invalid authentication
403Authenticated but insufficient permissions
429Rate limit exceeded

On this page