Get URL for User's Ticket Section
This endpoint allows you to generate a unique URL that redirects the user to their personal ticket section. It is useful for quickly and securely integrating the ticket flow into your platform.
Integration Example and Use Cases
This endpoint is ideal for platforms that want to redirect users to their ticket section with a personalized experience. You can combine it with LoginTrust to maintain authentication, or include a returnURL to enhance navigation.
Request Example
curl --location --request GET 'https://api.mentatech.io/v1/events/tickets/user/getMyTicketsURL' \
--header 'Authorization: "YOUR_API_KEY"
JSON Response
{
"status": 200,
"data": "https://my-events.mentatickets.com/es/?ticketSellerId=3&oneTimeToken=eyJlbWFpbCI6InlvdV91c2VyX2VtYWlsQGVtYWlsLmNvbSIsIm90dCI6IjY1NDA0MDI3MDU5IiwidXNlZCI6ZmFsc2UsInRpY2tldFNlbGxlcklkIjoiMyIsIl9pZCI6IjY1NmEyNDEzMTNlYzdkNDRjODE5NjcyZiJ9&returnTo=https://your-platform.com/event/298392",
"errors": [
null
]
}
Attention
Remember to replace "YOUR_API_KEY" with your Private API key.
Request Parameters
- returnURL (optional): Specifies a return URL to which the user will be redirected after reviewing their tickets. Example: https://your-platform.com/my-tickets.
- loginTrust[withMethod] (optional): The method used to authenticate on your platform. Currently supported: email. Coming soon: phonenumber.
- loginTrust[user] (optional): The user identifier on your platform. Currently supported: email. Example: you_user_email@email.com.