Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pixlcore/xyops/llms.txt
Use this file to discover all available pages before exploring further.
Overview
xyOps supports two authentication methods for API requests:- API Keys - For server-to-server integrations and automation
- Session Tokens - For user-initiated requests from the web UI
API Keys
API Keys allow you to register external applications or services to use the REST API. These can be thought of as special user accounts specifically for applications. Each API key can be granted a specific set of privileges.Creating API Keys
To create an API Key:- Login to the xyOps UI as an administrator
- Navigate to the API Keys tab
- Click Add API Key…
- Fill out the form with:
- Title (descriptive name)
- Privileges (select permissions)
- Optional expiration date
- Optional rate limit
- Click Create Key
API Key Format
API Keys are randomly generated alphanumeric strings, 24 characters in length by default. They are case sensitive. Example:Using API Keys
You must include a valid API Key with every API request. There are three ways to do this:1. HTTP Header (Recommended)
2. Query String Parameter
3. JSON Property
Only one authentication method is required. Using the
X-API-Key header is recommended for security.Rate Limiting
API Keys support rate limiting on a per-second basis. When a key exceeds its rate limit, you’ll receive:Expiration
API Keys can be configured with an optional expiration date. Attempting to use an expired key returns:Session Tokens
Session tokens are used for user-initiated requests, typically from the web UI. Sessions are created upon user login and expire after a period of inactivity.Using Session Tokens
Include the session ID in one of these ways:1. Cookie (Automatic)
2. HTTP Header
3. Query Parameter
Privileges and Permissions
Both API Keys and user sessions are subject to privilege checks. Common privileges include:| Privilege | Description |
|---|---|
admin | Full administrative access |
create_events | Create new events |
edit_events | Modify existing events |
delete_events | Delete events |
run_jobs | Launch jobs manually |
abort_jobs | Abort running jobs |
create_monitors | Create monitoring definitions |
create_alerts | Create alert definitions |
create_tickets | Create support tickets |
Privilege Errors
When you lack required privileges:Category and Group Access
In addition to privileges, users and API Keys may be restricted to specific:- Categories - Event categories
- Server Groups - Collections of servers