Complete reference for the Serviuz API endpoints and usage.
Authenticate your API requests using API keys or JWT tokens:
# API Key Authentication
curl -X GET https://api.serviuz.com/v1/servers \
-H "Authorization: Bearer YOUR_API_KEY"
# JWT Authentication
curl -X POST https://api.serviuz.com/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "password": "your_password"}'| Endpoint | Method | Description |
|---|---|---|
| /api/v1/servers | GET | List all servers |
| /api/v1/servers/{id} | GET | Get server details |
| /api/v1/servers | POST | Add new server |
# Example: Create new server
curl -X POST https://api.serviuz.com/v1/servers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "production-app-1",
"ip": "10.0.0.1",
"type": "application"
}'| Endpoint | Method | Description |
|---|---|---|
| /api/v1/metrics | GET | Get server metrics |
| /api/v1/alerts | GET | List active alerts |
| /api/v1/alerts/rules | POST | Create alert rule |
| Endpoint | Method | Description |
|---|---|---|
| /api/v1/users | GET | List all users |
| /api/v1/users/{id} | PUT | Update user |
| /api/v1/teams | POST | Create team |