The users API provides endpoints for authenticated users to manage their activity on the platform. Users can view their full order history, toggle likes on events (which increments or decrements the event’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Sumitbose5/tktplz/llms.txt
Use this file to discover all available pages before exploring further.
likes_count), and submit support issues with an optional image attachment.
GET /api/user/get-orders/:userId
Returns all ticket records for a user, ordered by most recent first. Each record comes directly from thetickets table.
No authentication middleware is applied to this endpoint in the current router. Validate user identity in your client before exposing order data.
UUID of the user whose orders to fetch.
true on success.Array of ticket objects ordered by
createdAt descending.POST /api/user/events/like
Adds a like for an event. If the user has already liked the event, the endpoint returns success without inserting a duplicate. On a new like, the event’slikes_count field is incremented by 1.
UUID of the event to like.
UUID of the user liking the event.
DELETE /api/user/events/like
Removes a like from an event. If the like record is found and deleted, the event’slikes_count is decremented by 1.
UUID of the event to unlike.
UUID of the user removing the like.
POST /api/user/submit-issue
Submits a support issue to the admin team. An optional screenshot image can be attached asmultipart/form-data. Images are uploaded to Cloudinary under the issue-screenshots folder and the resulting URL is stored in the issues table.
Name of the person submitting the issue.
Contact email address.
Brief title describing the issue.
Full description of the problem.
Optional screenshot. Send as
multipart/form-data with the field name image.issues table
Auto-generated UUID.
Submitter’s name.
Contact email.
Issue title.
Full description.
Cloudinary URL of the screenshot, or
null."open" by default; updated to "resolved" by admins.ISO 8601 timestamp.
