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.
Introduction
The xyOps REST API provides programmatic access to all core functionality including events, jobs, servers, monitors, alerts, and tickets. All API calls expect JSON as input (unless they are simple HTTP GETs) and return JSON as output.Base URL
The main API endpoint follows this pattern:NAME with the specific API function you are calling. All requests should be HTTP GET or HTTP POST as the API dictates, and should be directed at your xyOps primary server.
Example URL:
Standard Response Format
All API responses are in JSON format and include at minimum acode property. This will be set to 0 upon success, or any other value if an error occurred.
Successful Response
Error Response
In the event of an error, adescription property will also be included with the error message:
Error Codes
Common error codes returned by the API:| Code | HTTP Status | Description |
|---|---|---|
0 | 200 | Success |
api | 400 | Bad Request - Invalid parameters |
session | 401 | Unauthorized - Invalid or missing session |
access | 403 | Forbidden - Insufficient privileges |
rate | 429 | Too Many Requests - Rate limit exceeded |
master | 500 | Internal Error - Must be called on primary conductor |
HTTP Methods
The API supports two HTTP methods:- GET: For simple queries without a request body
- POST: For operations with JSON request bodies
Most create, update, and delete operations require POST requests with JSON bodies.
Content Type
All POST requests must include theContent-Type header:
multipart/form-data instead.
Master Server Requirement
Most write operations must be directed to the primary conductor server. If you call a write API on a satellite server, you may receive a redirect or error response:Next Steps
Authentication
Learn how to authenticate API requests
Events API
Create and manage scheduled events
Jobs API
Launch and monitor job execution
Servers API
Manage server inventory