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

# Create Custom Enrollment Tickets

> Learn how to create an enrollment ticket from the Auth0 MFA API.

If you want to customize and manage your users' [Multi-Factor Authentication (MFA)](/docs/docs/secure/multi-factor-authentication) enrollments, you can use Custom Enrollment Tickets. Auth0's Custom Enrollment Tickets generate a single-use link to direct your users to enroll in MFA (Multi-factor authentication (MFA): User authentication process that uses a factor in addition to username and password such as a code via SMS.) with the [factor(s)](/docs/docs/secure/multi-factor-authentication/multi-factor-authentication-factors) you specify.

### Use cases

Use Custom Enrollment Tickets for:

* Onboarding new users
* Configuring user settings
* Specifying factors you want customers to choose during enrollment
* Allowing users to enroll more than one factor

### Configure Custom Enrollment Tickets

Make a post call to Management API (Management API: A product to allow customers to perform administrative tasks.)'s [`/guardian/post_ticket`](/docs/docs/api/management/v2/guardian/post-ticket) endpoint.

Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.

| Parameter | Required | Description |
| - | - | - |
| `allow_multiple_enrollments` | Optional | Allows a previously enrolled user to enroll with additional factors, excluding email. |
| `factor` | Optional | Specifies which factor the user must enroll with, excluding email. Used with `allow_multiple_enrollments`, can specify more than one factor for enrollment. |

These parameters can only be used with [Universal Login](/docs/docs/authenticate/login/auth0-universal-login) and cannot be used with Classic Login or custom MFA pages.

Management API returns an enrollment ticket containing a `ticket_id` and a `ticket_url`. The `ticket_id` is for internal use. Deliver the `ticket_url` to the user with the `send_email` parameter to kick off the enrollment process. Tickets expire after 5 days and are single-use. A user who receives a ticket will only be able to enroll once.

Sample response:

```json lines theme={null}
{
  "ticket_id": "gten_8b2f5e90d2c848dc9230d34f",
  "ticket_url": "https://guardianadnrdoifcmtest0.eu.auth0.com/guardian/enroll?ticket=gten_8b2f5e90d2c848dc9230d34f"
}
```

If you enable [Multiple Custom Domains](/docs/docs/customize/custom-domains/multiple-custom-domains), you need to include the `auth0-custom-domain` HTTP header. To learn more, review [Multiple Custom Domains](/docs/docs/customize/custom-domains/multiple-custom-domains#customize-email-handling-using-the-management-api).

### Custom Enrollment Tickets with Classic Login

If you are using the [Classic Login](/docs/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/classic-experience) experience and need to customize how the page looks when the user navigates to the `ticket_url`, you can edit the MFA page.

1. Navigate to [Dashboard > Branding > Universal Login > Advanced options > Multi-factor Authentication.](https://manage.auth0.com/#/mfa_page)
2. If **Customize MFA Page** is not selected, toggle this option on.
3. Update the `ticket` variable.
   Example:

```liquid lines theme={null}
{% if ticket %}
<h4 class="message">Welcome, {{ userData.email }}, enroll your device below</h4>
{% else %}
<h4 class="message">Welcome back, {{ userData.email }}, authenticate below</h4>
{% endif %}
```

## Learn more

* [MFA Widget Theme Options](/docs/docs/secure/multi-factor-authentication/customize-mfa/mfa-widget-theme-options)
* [Guardian Error Code Reference](/docs/docs/secure/multi-factor-authentication/multi-factor-authentication-developer-resources/guardian-error-code-reference)
* [Auth0 MFA API](/docs/docs/secure/multi-factor-authentication/multi-factor-authentication-developer-resources/mfa-api)
