| Name | Key Prefix | Created By | Created | Expires | Last Used | Status | Actions |
|---|---|---|---|---|---|---|---|
| No API keys found. Generate one above. | |||||||
| = htmlspecialchars($key['key_name']) ?> | = htmlspecialchars($key['key_prefix']) ?>… |
= htmlspecialchars($key['display_name'] ?? $key['username'] ?? 'Unknown') ?> | = date('Y-m-d H:i', strtotime($key['created_at'])) ?> | = $key['expires_at'] ? date('Y-m-d', strtotime($key['expires_at'])) . ($expired ? ' (Expired)' : '') : 'Never' ?> | = $key['last_used'] ? date('Y-m-d H:i', strtotime($key['last_used'])) : 'Never' ?> | Active Revoked | — |
Include the API key in your requests using the Authorization header:
Authorization: Bearer YOUR_API_KEY
Example — create a ticket via cURL:
curl -X POST https://your-instance/api/create_ticket.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"My ticket","category":"General","type":"Issue","priority":3}'
API keys provide programmatic access to create and manage tickets. Keep keys secure and rotate them regularly.