> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-docs-5546-update-db-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn how to configure your Auth0 pre-built flow actions to make requests against the Management API or send custom notifications.

# Auth0

## Configure your Auth0 Vault Connection

Learn how to configure a Vault Connection for your Auth0 Flow Actions at [Auth0 Vault Connection](/docs/customize/forms/vaults/auth0).

## Create user

Create a user.

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/GQRCDLZWScWmvnb1/docs/images/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png?fit=max&auto=format&n=GQRCDLZWScWmvnb1&q=85&s=cfe1a2165a17f4273073766ebc27f0b9" alt="" width="1392" height="1094" data-path="docs/images/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png" />
</Frame>

### Input settings

| Parameter | Description                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Body      | The payload of Auth0 user properties to add. To learn more, read [Create a user](https://auth0.com/docs/api/management/v2/users/post-users) API documentation. |

### Output object

Review [Create a user](https://auth0.com/docs/api/management/v2/users/post-users#response-messages) for expected response and status code.

## Get user

Retrieve user details.

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/t9YvReZ13iZMAZ3C/docs/images/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png?fit=max&auto=format&n=t9YvReZ13iZMAZ3C&q=85&s=7277784433f32f3f33fe4164f45fb7a3" alt="" width="1404" height="650" data-path="docs/images/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png" />
</Frame>

### Input settings

| Parameter | Description                                                                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| User ID   | ID of the user to retrieve. To learn more, read [Get a user](https://auth0.com/docs/api/management/v2/users/get-users-by-id) API documentation. |

### Output object

Review [Get a user](https://auth0.com/docs/api/management/v2/users/get-users-by-id#response-messages) for expected response and status code.

## Update user

Update a user.

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/aPGxWhR33Pr6yBPa/docs/images/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png?fit=max&auto=format&n=aPGxWhR33Pr6yBPa&q=85&s=6e174f5c66fbcee6c3ed0686e97b7809" alt="" width="1404" height="1213" data-path="docs/images/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png" />
</Frame>

### Input settings

| Parameter | Description                                                                                                                                                              |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| User ID   | ID of the user to update.                                                                                                                                                |
| Body      | The payload of Auth0 user properties to update. To learn more, read [Update a user](https://auth0.com/docs/api/management/v2/users/patch-users-by-id) API documentation. |

### Output object

You can find the expected response and status codes at [Update a user](https://auth0.com/docs/api/management/v2/users/patch-users-by-id#response-messages) API documentation.

## Custom API request

Send a custom API request to Auth0 API endpoints.

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=717e4be94eab6d63b55a4fe10ac73254" 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/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=280&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=f3b5ebfe639295da753574a327aa3a51 280w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=560&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=4d37dab2fc2cdc6a9246b2283e9f1043 560w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=840&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=cdce198cd73e8c4c8fd650f1eed6e0fc 840w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1100&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=cc0b257b978c9fb5a3c9adc5b5f665bb 1100w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1650&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=e8f1339e23cf5de130253fe9e5256592 1650w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/sVORoaGQ-jxplhx0/docs/images/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=2500&fit=max&auto=format&n=sVORoaGQ-jxplhx0&q=85&s=b42ca8970ea46fa1b0c0486541bd75b7 2500w" />
</Frame>

### Input settings

| Parameter  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Path       | The API endpoint absolute pathname.<br />( Example: `/api/v2/organizations` )<br />**Note:** Some endpoints, for example: [ Get a user ](https://auth0.com/docs/api/management/v2/users/get-users-by-id), require URI encoded parameters when not using alphanumeric characters, such as: `-`, `.`, `_`, or `~`, [ characters ](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3)).<br />To do this, you can use the encodeURIComponent function:<br />`{{ functions.encodeURIComponent(context.user.user_id) }}` |
| Method     | Available HTTP methods include: <ul> <li>`GET`</li> <li>`POST`</li> <li>`PUT`</li> <li>`PATCH`</li> <li>`DELETE`</li> </ul>                                                                                                                                                                                                                                                                                                                                                                                                |
| Body       | The body of the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Headers    | The headers of the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| URL Params | The URL parameters. These parameters are automatically URL-encoded.                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

### Output object

Review [Auth0 Management API](https://auth0.com/docs/api/management/v2/introduction) for expected responses and status codes.

## Notifications

## Send email

Send a custom email using your [configured email provider](/docs/customize/email).

<Warning>
  [Email Provider](/docs/customize/email) must be enabled before using this Action.
</Warning>

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/ks6hj1JmxSl_HGMU/docs/images/forms/flows/integrations/auth0-notifications-send-email.png?fit=max&auto=format&n=ks6hj1JmxSl_HGMU&q=85&s=34953017cc6f03f54a5907f9c4bd547a" alt="" width="2300" height="1466" data-path="docs/images/forms/flows/integrations/auth0-notifications-send-email.png" />
</Frame>

### Input settings

| Parameter               | Description                                                                                                                                                                      |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use custom sender email | By default, we will use the sender email you have configured in your customized email provider settings. Enable this option if you want to use a different sender email or name. |
| Recipient email         | The recipient’s email.                                                                                                                                                           |
| Custom variables        | Add custom variables to be inserted in your email template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`.                                   |
| Subject                 | The email subject. Supports custom variables and Liquid syntax.                                                                                                                  |
| Message                 | The email message is in HTML format, uses Liquid syntax, and supports custom variables.                                                                                          |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Subject and Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

  Use custom variables to pass information between Forms / Flows context and Subject and Message content.
</Callout>

### Output object

| Property | Type    | Description                                                                                                  |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| success  | Boolean | Indicates if the email was successfully queued to be sent, regardless of whether the delivery failed or not. |

### Output object example

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

## Send SMS

Send a custom SMS using your [configured phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).

<Warning>
  [Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) must be enabled for text message delivery before using this Action.
</Warning>

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/ks6hj1JmxSl_HGMU/docs/images/forms/flows/integrations/auth0-notifications-send-sms.png?fit=max&auto=format&n=ks6hj1JmxSl_HGMU&q=85&s=9d4d24118feafb0e60086340a56584b6" alt="" width="2300" height="1494" data-path="docs/images/forms/flows/integrations/auth0-notifications-send-sms.png" />
</Frame>

### Input settings

| Parameter        | Description                                                                                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| From             | By default, we will use the sender phone number you have configured in your customized phone provider settings. Input a custom value if you want to use a different sender phone number. |
| To               | The recipient’s phone number.                                                                                                                                                            |
| Custom variables | Add custom variables to be inserted in your phone template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`.                                           |
| Message          | The phone message uses Liquid syntax and supports custom variables.                                                                                                                      |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

  Use custom variables to pass information between Forms / Flows context and Message content.
</Callout>

### Output object

| Property | Type    | Description                                                                                                          |
| -------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
| success  | Boolean | Indicates if the phone message was successfully queued to be sent, regardless of whether the delivery failed or not. |

### Output object example

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

## Make call

Send a custom voice message using your [configured phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).

<Warning>
  [Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) must be enabled  for voice message delivery before using this Action.
</Warning>

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/ks6hj1JmxSl_HGMU/docs/images/forms/flows/integrations/auth0-notifications-make-call.png?fit=max&auto=format&n=ks6hj1JmxSl_HGMU&q=85&s=66afaad44c5fe20bbfa6e23cf901459f" alt="" width="2300" height="1603" data-path="docs/images/forms/flows/integrations/auth0-notifications-make-call.png" />
</Frame>

### Input settings

| Parameter        | Description                                                                                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| From             | By default, we will use the sender phone number you have configured in your customized phone provider settings. Input a custom value if you want to use a different sender phone number. |
| To               | The recipient’s phone number.                                                                                                                                                            |
| Custom variables | Add custom variables to be inserted in your phone template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`.                                           |
| Message          | The phone message uses Liquid syntax and supports custom variables.                                                                                                                      |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

  Use custom variables to pass information between Forms / Flows context and Message content.
</Callout>

### Output object

| Property | Type    | Description                                                                                                          |
| -------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
| success  | Boolean | Indicates if the phone message was successfully queued to be sent, regardless of whether the delivery failed or not. |

### Output object example

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