> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# What Is a Ticket and How to Use It

Every account has a base `Ticket` parameter you can use in campaigns. It holds the customer's secret hashes and is available in every email and SMS.

A ticket lets you find a customer in Maestra Platform and *sign them in* to your site straight from an email or SMS, with no password.

There are two ways to find and sign in a customer on your site: by mobile phone or by email address.

## Ticket types

| Ticket | What it's for |
| - | - |
| `UniversalAuthenticationCustomizableTimeTicket(<Ticket lifetime in minutes>)` | A universal sign-in ticket that works in every communication channel. It stays valid for the number of minutes you pass. The maximum is 3 months (129,600 minutes). |
| `EmailAuthenticationHexTicket` | For links that sign the customer in by email. It's time-limited: valid for 30 minutes from the email send date stored in it. |
| `EmailAuthenticationTicket` | For links to promo sites and the like. It never expires. |
| `EmailConfirmationLinkTicket` | For confirming an email address and a subscription to campaigns — for example, in subscription confirmation. |
| `MobilePhoneAuthenticationHexTicket` | Signs the customer in by phone number. It's also valid for 30 minutes from the date stored in it. |
| `PermanentAuthenticationTicket` | Sign-in that never expires. It's mostly used for password recovery. |

All these tickets work the same way. When a customer tries to sign in, the server compares the data it got from them with its own. If they match, the customer is signed in to the site without a username or password. If they don't, the customer is told the data they entered is wrong and has to sign in again.

## How to check a ticket

Go to **Integrations → Ticket verification for customer auth**, choose the integration, paste the ticket, and click **Check**.

## How to add a ticket to a campaign

To insert a ticket into a campaign, use the base [template engine](https://help.maestra.io/campaigns/message-template-engine/what-is-the-message-template-engine.md) `Ticket` parameter with the value you need from the list above. For example:

```html theme={null}
<a href="your_site_page?ticket=${Ticket.EmailAuthenticationTicket}">Link</a>
```

To learn more about confirming customer contacts, see [Contact confirmation status](https://help.maestra.io/customers-orders-and-products/customers/contacts-and-identifiers/contact-confirmation/contact-confirmation-status.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.