Symptoms:
curl "https://osticket.local/api/tickets-get.php/123456.json"
# HTTP 404 Not Found
Check:
/api/.htaccess exists (Apache).htaccess automatically)AllowOverride All is set for the API directorySolution (Apache):
sudo systemctl reload apache2
Solution (NGINX):
sudo nginx -t
sudo systemctl reload nginx
Symptoms:
{"error": "API key not authorized for this operation"}
Check:
Solution:
Symptoms:
{"error": "Attachment not accessible"}
Cause: The provided file_id does not belong to a ticket attachment.
Solution:
file_id comes from a thread entry's attachment metadata (GET /tickets-get.php/{number}.json)Symptoms:
{"error": "Feature not available"}
Cause: The subticket endpoints (can_manage_subtickets) require the Subticket Manager Plugin. If it's not installed or active, the endpoints respond with 501.
Solution:
can_manage_subtickets and all subticket endpoints then become availableIf this doesn't resolve your issue, open an issue on the GitHub Issue Tracker with your osTicket version, PHP version, web server, and a concrete request example.