API Access
Your API Keys
No API keys. Click Generate to create one.
Quick Start
- Generate an API Key - Click "Generate Key" above
- Copy your key - Click on a key to copy it
- Make requests - Use the endpoints below
Available Endpoints
| Endpoint | Method | Description |
|---|---|---|
?page=api_tickets | GET | List all tickets |
?page=api_team | GET | List team members |
?page=api_oncall | GET | List on-call schedule |
?page=api_contracts | GET | List contracts |
Authentication
Pass your API key using one of these methods:
Option 1: Header (Recommended)
X-API-Key: your-api-key-here
Option 2: Query Parameter
?page=api_tickets&key=your-api-key-here
Code Examples
cURL
# Get tickets curl -H "X-API-Key: YOUR_KEY" "https://yourdomain.com/?page=api_tickets" # Get team members curl -H "X-API-Key: YOUR_KEY" "https://yourdomain.com/?page=api_team" # Get on-call schedule curl -H "X-API-Key: YOUR_KEY" "https://yourdomain.com/?page=api_oncall"
JavaScript / Fetch
// Get tickets
const response = await fetch('/?page=api_tickets', {
headers: { 'X-API-Key': 'YOUR_KEY' }
});
const tickets = await response.json();
// Get team
const team = await fetch('/?page=api_team', {
headers: { 'X-API-Key': 'YOUR_KEY' }
}).then(r => r.json());
Python
import requests
API_KEY = "YOUR_KEY"
BASE_URL = "https://yourdomain.com"
headers = {"X-API-Key": API_KEY}
# Get tickets
tickets = requests.get(f"{BASE_URL}/?page=api_tickets", headers=headers).json()
print(tickets)
# Get team
team = requests.get(f"{BASE_URL}/?page=api_team", headers=headers).json()
print(team)
PHP
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://yourdomain.com/?page=api_tickets"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, ["X-API-Key: YOUR_KEY"]); $response = curl_exec($curl); $tickets = json_decode($response, true); print_r($tickets);
Response Format
Tickets endpoint returns an array of ticket objects:
[
{
"id": 1,
"title": "Printer not working",
"description": "Office printer showing error",
"priority": "Medium",
"status": "Open",
"requester": "John Doe",
"assigned": "Jane Smith",
"created": "2024-01-15 10:30"
},
{
"id": 2,
"title": "VPN connection issues",
"priority": "High",
"status": "In Progress"
}
]
Team endpoint returns an associative object:
{
"John Doe": {
"role": "System Administrator",
"email": "john@company.com",
"phone": "+1234567890",
"skills": "Windows Server, Linux, Azure",
"certifications": "MCSE, CCNA"
}
}
Rate Limits
To prevent abuse, the API is limited to 100 requests per minute per API key.
If you exceed this limit, you'll receive a 429 Too Many Requests response.
Error Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Invalid or missing API key |
| 403 | Access forbidden |
| 404 | Endpoint not found |
| 429 | Rate limit exceeded |
| 500 | Server error |