GOTRS API Reference
RESTful API documentation for integrating with GOTRS.
Overview
The GOTRS API provides programmatic access to all ticketing system functionality.
Base URL
https://your-gotrs-instance.com/api/v1
Authentication
Authorization: Bearer YOUR_JWT_TOKEN
Response Format
{
"success": true,
"data": {...},
"error": null
}
Endpoints
Current Coverage (October 2025)
POST /auth/login– Session-based agent authentication with HX-Redirect supportPOST /auth/logout– Invalidate the active sessionGET /tickets– Filterable ticket list (defaults tonot_closed, supports search/pagination)POST /tickets– Create ticket (agent workflow)GET /tickets/{id}– Ticket detail viewPUT /tickets/{id}– Update ticket metadata (title, queue, state, priority)DELETE /tickets/{id}– Soft-delete ticket (admin only)POST /tickets/{id}/status– Update ticket state, including close/reopen flowsPOST /tickets/{id}/priority– Change priorityPOST /tickets/{id}/queue– Move ticket to another queuePOST /tickets/{id}/assign– Reassign ticket to another agentPOST /tickets/{id}/reply– Add agent/customer-visible articles with internal/external flags and time accounting
Planned Additions
POST /auth/refresh– Refresh JWT token (in progress)POST /tickets/{id}/articles– Add agent/customer repliesPOST /tickets/{id}/attachments– Upload attachmentGET /attachments/{id}– Download attachmentDELETE /attachments/{id}– Delete attachmentGET /usersand related CRUD – Admin directory management
Status Codes
200- Success201- Created400- Bad Request401- Unauthorized403- Forbidden404- Not Found500- Internal Server Error
Rate Limiting
- 1000 requests per hour per API key
- Rate limit headers included in responses
- 429 status code when limit exceeded
SDKs and Libraries
Coming soon:
- JavaScript/TypeScript SDK
- Python SDK
- Go SDK
- curl examples
API documentation is being developed alongside the core system. Check back for updates.