Your API Keys

No API keys. Click Generate to create one.

Quick Start

  1. Generate an API Key - Click "Generate Key" above
  2. Copy your key - Click on a key to copy it
  3. Make requests - Use the endpoints below

Available Endpoints

EndpointMethodDescription
?page=api_ticketsGETList all tickets
?page=api_teamGETList team members
?page=api_oncallGETList on-call schedule
?page=api_contractsGETList 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

CodeMeaning
200Success
401Invalid or missing API key
403Access forbidden
404Endpoint not found
429Rate limit exceeded
500Server error