> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# カスタム登録チケットを作成する

> Auth0 MFA APIから登録チケットを作成する方法について説明します。

<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=multifactor-authentication" tip="多要素認証（MFA）: ユーザー名とパスワードに加えて、SMS経由のコードなどの要素を使用するユーザー認証プロセス。" cta="用語集の表示">MFA</Tooltip> APIの[`/Guardian/post_ticket`](https://auth0.com/docs/api/management/v2#!/Guardian/post_ticket)エンドポイントを通じて登録チケットを作成することでユーザーの登録を管理できます。このAPIは、ユーザーの登録に使うことができる、`ticket_id`と`ticket_url`を含む登録チケットを返します。`ticket_url`はユーザーに届けることができ（例：メールを通じて）、登録プロセスの開始に使用できます。チケットの有効期限は5日間です。チケットを受け取るユーザーは、一度だけ登録できます。さらなる登録は、MFA APIを通じて行われなければなりません。

クラシックユニバーサルログインエクスペリエンスを使用し、ユーザーが`ticket_url`に移動してきた際にページがどのように表示されるかカスタマイズする必要がある場合、MFAページを編集することができます。[［Dashboard］>［Branding（ブランディング）］>［Universal Login（ユニバーサルログイン）］>［Multi-factor Authentication（多要素認証）］](https://manage.auth0.com/#/mfa_page)タブに移動し、`ticket`変数を修正します。以下に例を示します。

```html 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 %}
```

## もっと詳しく

* [MFAウィジェットテーマオプション](/docs/ja-jp/secure/multi-factor-authentication/customize-mfa/mfa-widget-theme-options)
* [Guardianエラーコードのリファレンス](/docs/ja-jp/secure/multi-factor-authentication/multi-factor-authentication-developer-resources/guardian-error-code-reference)
* [Auth0 MFA APIについて](/docs/ja-jp/secure/multi-factor-authentication/multi-factor-authentication-developer-resources/mfa-api)
