Tickets API

Endpoints

GET /api/v1/tickets

Purpose: List tickets

Filter support tickets by status, priority, subscriber, assignee.

Authentication: Bearer token.

Response envelope: success, data, meta for success; success, error for failure.

POST /api/v1/tickets

Purpose: Create ticket

Open a support or operations ticket.

Authentication: Bearer token.

Response envelope: success, data, meta for success; success, error for failure.

GET /api/v1/tickets/{ticket_id}

Purpose: Get ticket

Retrieve thread, comments, and metadata.

Authentication: Bearer token.

Response envelope: success, data, meta for success; success, error for failure.

POST /api/v1/tickets/{ticket_id}/comments

Purpose: Add comment

Append a staff/customer-visible comment.

Authentication: Bearer token.

Response envelope: success, data, meta for success; success, error for failure.

PUT /api/v1/tickets/{ticket_id}/status

Purpose: Update status

Move ticket through workflow states.

Authentication: Bearer token.

Response envelope: success, data, meta for success; success, error for failure.