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

> Auth0 の事前構築済みフローアクションを設定して、Management API へのリクエストやカスタム通知の送信を行う方法を説明します。

# Auth0

<div id="configure-your-auth0-vault-connection">
  ## Auth0 Vault 接続を設定する
</div>

Auth0 Flow Actions で使用する Vault 接続の設定方法については、[Auth0 Vault 接続](/ja/docs/customize/forms/vaults/auth0)を参照してください。

<div id="create-user">
  ## ユーザーの作成
</div>

ユーザーを作成します。

<Frame>
  <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=82c2178269eed5033bc2c37131e8fbde" alt="" width="1392" height="1094" data-path="docs/images/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| パラメーター | 説明                                                                                                                                   |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| Body   | 追加する Auth0 ユーザーのプロパティを含むペイロードです。詳しくは、[Create a user](https://auth0.com/docs/api/management/v2/users/post-users) API ドキュメントを参照してください。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

レスポンスとステータスコードの詳細については、[Create a user](https://auth0.com/docs/api/management/v2/users/post-users#response-messages)を参照してください。

<div id="get-user">
  ## ユーザーを取得
</div>

ユーザーの詳細を取得します。

<Frame>
  <img src="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png?fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=57a854f8d72b431cab682c36789fc2a1" alt="" width="1404" height="650" data-path="docs/images/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| パラメーター  | 説明                                                                                                                 |
| ------- | ------------------------------------------------------------------------------------------------------------------ |
| ユーザー ID | 取得するユーザーの ID。詳しくは、[ユーザーを取得](https://auth0.com/docs/api/management/v2/users/get-users-by-id) の API ドキュメントを参照してください。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

想定されるレスポンスとステータスコードについては、[ユーザーを取得](https://auth0.com/docs/api/management/v2/users/get-users-by-id#response-messages)を確認してください。

<div id="update-user">
  ## ユーザーを更新する
</div>

ユーザーを更新します。

<Frame>
  <img src="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png?fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=5d2d8a8224f8161fa5b00d21a38670bb" alt="" width="1404" height="1213" data-path="docs/images/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| パラメーター  | 説明                                                                                                                                        |
| ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| ユーザー ID | 更新するユーザーの ID。                                                                                                                             |
| Body    | 更新する Auth0 ユーザープロパティのペイロード。詳細については、[Update a user](https://auth0.com/docs/api/management/v2/users/patch-users-by-id) API ドキュメントを参照してください。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

想定されるレスポンスとステータスコードについては、[Update a user](https://auth0.com/docs/api/management/v2/users/patch-users-by-id#response-messages) の API ドキュメントを参照してください。

<div id="custom-api-request">
  ## カスタム API リクエスト
</div>

Auth0 API エンドポイントに、カスタム API リクエストを送信します。

<Frame>
  <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=2b488d7b1f4580bdb6ab3de18832a090" alt="Dashboard > Customize > Flows > Integrations > Auth0" data-og-width="1211" width="1211" data-og-height="862" height="862" data-path="docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=280&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=efb8c59d8aa0e1b03cc3a08ce8f1d5ca 280w, https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=560&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=070b289561edf2ba868b266a95870be0 560w, https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=840&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=2cb1412d8636089adc8102cc325136ab 840w, https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1100&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=afa80b3fff35656da497ba642ecf1fdd 1100w, https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1650&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=dd327bdc93cb2e70141d7732e369b441 1650w, https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=2500&fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=98bfea471cd8cf3b990f846d7978023e 2500w" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| パラメーター     | 説明                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Path       | API エンドポイントの絶対パス名。<br />( 例: `/api/v2/organizations` )<br />**注:** 一部のエンドポイントでは、たとえば [ ユーザーを取得 ](https://auth0.com/docs/api/management/v2/users/get-users-by-id) のように、`-`、`.`、`_`、`~` などの文字を使用する場合、英数字以外の文字を含むパラメーターを URI エンコードする必要があります。詳しくは [ 文字 ](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3) を参照してください。<br />これには、encodeURIComponent 関数を使用できます。<br />`{{ functions.encodeURIComponent(context.user.user_id) }}` |
| Method     | 使用可能な HTTP メソッドは次のとおりです。 <ul> <li>`GET`</li> <li>`POST`</li> <li>`PUT`</li> <li>`PATCH`</li> <li>`DELETE`</li> </ul>                                                                                                                                                                                                                                                                                                               |
| Body       | リクエストの本文。                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Headers    | リクエストのヘッダー。                                                                                                                                                                                                                                                                                                                                                                                                                        |
| URL Params | URL パラメーター。これらのパラメーターは自動的に URL エンコードされます。                                                                                                                                                                                                                                                                                                                                                                                          |

<div id="output-object">
  ### 出力オブジェクト
</div>

想定されるレスポンスとステータスコードについては、[Auth0 Management API](https://auth0.com/docs/api/management/v2/introduction)を確認してください。

<div id="notifications">
  ## 通知
</div>

<div id="send-email">
  ## メールを送信
</div>

[設定済みのメールプロバイダー](/ja/docs/customize/email)を使用して、カスタムメールを送信します。

<Warning>
  このActionを使用する前に、[メールプロバイダー](/ja/docs/customize/email)を有効にしておく必要があります。
</Warning>

<Frame>
  <img src="https://mintcdn.com/translations/xwVvTWJUElMm5YAK/docs/images/forms/flows/integrations/auth0-notifications-send-email.png?fit=max&auto=format&n=xwVvTWJUElMm5YAK&q=85&s=f51a290317d6c4b49d3aa83b9c0f7fc4" alt="" width="2300" height="1466" data-path="docs/images/forms/flows/integrations/auth0-notifications-send-email.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| パラメーター            | 説明                                                                                            |
| ----------------- | --------------------------------------------------------------------------------------------- |
| カスタム送信元メールアドレスを使用 | デフォルトでは、カスタマイズしたメールプロバイダーの設定で構成した送信元メールアドレスを使用します。別の送信元メールアドレスまたは送信者名を使用する場合は、このオプションを有効にします。 |
| 受信者のメールアドレス       | 受信者のメールアドレスです。                                                                                |
| カスタム変数            | メールテンプレートに挿入するカスタム変数を追加します。設定後は、`{{custom_vars.your_variable_key}}` を使用して参照できます。              |
| 件名                | メールの件名です。カスタム変数と Liquid 構文をサポートします。                                                           |
| メッセージ             | メールメッセージは HTML 形式で、Liquid 構文を使用でき、カスタム変数もサポートします。                                             |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  件名とメッセージでは、Liquid 構文を[共通変数](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax)と組み合わせて使用できます。また、`{{custom_vars.your_variable_key}}` 構文を使用してカスタム変数を利用することもできます。

  カスタム変数を使用すると、Forms / Flows のコンテキストと件名およびメッセージの内容の間で情報を受け渡せます。
</Callout>

<div id="output-object">
  ### 出力オブジェクト
</div>

| Property | Type    | Description                                       |
| -------- | ------- | ------------------------------------------------- |
| success  | Boolean | 実際に配信に成功したかどうかにかかわらず、メールが正常に送信キューへ追加されたかどうかを示します。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

```json theme={null}
{
  "success": true
}
```

<div id="send-sms">
  ## SMSを送信
</div>

[設定済みの電話プロバイダー](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers)を使用して、カスタムSMSを送信します。

<Warning>
  このActionを使用する前に、テキストメッセージを配信できるように [Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) を有効にしておく必要があります。
</Warning>

<Frame>
  <img src="https://mintcdn.com/translations/xwVvTWJUElMm5YAK/docs/images/forms/flows/integrations/auth0-notifications-send-sms.png?fit=max&auto=format&n=xwVvTWJUElMm5YAK&q=85&s=1fd86cc862d5c500136ae7fdb0a6a253" alt="" width="2300" height="1494" data-path="docs/images/forms/flows/integrations/auth0-notifications-send-sms.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| Parameter        | Description                                                                     |
| ---------------- | ------------------------------------------------------------------------------- |
| From             | デフォルトでは、カスタマイズした電話プロバイダー設定で構成した送信元の電話番号を使用します。別の送信元電話番号を使用する場合は、カスタム値を入力してください。 |
| To               | 送信先の電話番号。                                                                       |
| Custom variables | 電話テンプレートに挿入するカスタム変数を追加します。設定後は、`{{custom_vars.your_variable_key}}` を使用して参照できます。 |
| Message          | 電話メッセージでは Liquid 構文を使用でき、カスタム変数もサポートされています。                                     |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Message では、Liquid 構文と [共通変数](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax)、または `{{custom_vars.your_variable_key}}` 構文を使用するカスタム変数を組み合わせて使用できます。

  カスタム変数を使用すると、Forms / Flows コンテキストと Message の内容の間で情報を受け渡せます。
</Callout>

<div id="output-object">
  ### 出力オブジェクト
</div>

| Property | Type    | Description                                  |
| -------- | ------- | -------------------------------------------- |
| success  | Boolean | 配信の成否にかかわらず、電話メッセージが送信キューに正常に登録されたかどうかを示します。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

```json theme={null}
{
  "success": true
}
```

<div id="make-call">
  ## 発信
</div>

[設定済みの電話プロバイダー](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers)を使用して、カスタムの音声メッセージを送信します。

<Warning>
  この Action を使用する前に、音声メッセージを配信できるように [Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) を有効にしておく必要があります。
</Warning>

<Frame>
  <img src="https://mintcdn.com/translations/xwVvTWJUElMm5YAK/docs/images/forms/flows/integrations/auth0-notifications-make-call.png?fit=max&auto=format&n=xwVvTWJUElMm5YAK&q=85&s=a09d2e1bee8a285a5904411ee518355c" alt="" width="2300" height="1603" data-path="docs/images/forms/flows/integrations/auth0-notifications-make-call.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

| Parameter        | Description                                                                      |
| ---------------- | -------------------------------------------------------------------------------- |
| From             | デフォルトでは、カスタマイズした電話プロバイダー設定で構成した送信元の電話番号が使用されます。別の送信元電話番号を使用する場合は、カスタム値を入力してください。 |
| To               | 宛先の電話番号。                                                                         |
| Custom variables | 電話テンプレートに挿入するカスタム変数を追加します。設定後は、`{{custom_vars.your_variable_key}}` を使用して参照できます。  |
| Message          | 電話メッセージでは Liquid 構文を使用でき、カスタム変数もサポートされています。                                      |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  メッセージでは、Liquid 構文と [共通変数](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) を組み合わせて使用できます。また、`{{custom_vars.your_variable_key}}` 構文を使用してカスタム変数を参照することもできます。

  カスタム変数を使用すると、Forms / Flows のコンテキストと Message の内容の間で情報を受け渡せます。
</Callout>

<div id="output-object">
  ### 出力オブジェクト
</div>

| Property | Type    | Description                                   |
| -------- | ------- | --------------------------------------------- |
| success  | Boolean | 配信の成否にかかわらず、電話メッセージの送信がキューに正常に登録されたかどうかを示します。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

```json theme={null}
{
  "success": true
}
```
