Help & Support
These endpoints allow users to create support tickets and allow administrators to manage them. Each ticket includes user details, a message, and a status. Emails are also triggered upon creation to confirm receipt.
π Common use cases: customer support, onboarding inquiries, issue resolution tracking.
πΈ POST /help-support/{user_id} β Submit a Support Ticket
POST /help-support/{user_id} β Submit a Support TicketCreate a new help & support ticket for a specific user.
π₯ Request Body:
{
"name": "Jane Doe",
"phone_number": "+1234567890",
"email": "[email protected]",
"message": "I'm having trouble connecting my database."
}π Auth Required: β No π¨ Email confirmation is automatically sent to the user
π€ Response:
{
"id": "b8234b1d-a657-4c99-bdf3-e125e9b027d0",
"name": "Jane Doe",
"phone_number": "+1234567890",
"email": "[email protected]",
"message": "I'm having trouble connecting my database.",
"status": "open",
"created_at": "2025-07-04T12:00:00Z",
"updated_at": "2025-07-04T12:00:00Z"
}β cURL Example:
β JavaScript (fetch):
πΈ GET /help-support/{ticket_id} β Get a Support Ticket by ID
GET /help-support/{ticket_id} β Get a Support Ticket by IDπ Auth Required: β Yes (Admin)
β cURL:
πΈ GET /help-support β List All Support Tickets
GET /help-support β List All Support TicketsLists all support tickets (paginated).
Query Parameters:
skip: Offset (default:0)limit: Number of results (default:100)
β cURL:
πΈ PATCH /help-support/{ticket_id}/status β Update Ticket Status
PATCH /help-support/{ticket_id}/status β Update Ticket StatusUpdate the status of a support ticket (e.g., open β resolved, pending β closed).
π₯ Query Parameter:
status=resolved
β cURL:
π― Ticket Lifecycle
Status values:
"open","pending","resolved","closed"Each submission triggers a confirmation email using HTML templates
Admins can view, filter, and update status as the ticket progresses
Last updated