UNPKG

auth0

Version:

Auth0 Node.js SDK for the Management API v2.

3,277 lines (2,300 loc) 379 kB
# Reference ## Actions <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.Action, Management.ListActionsPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve all actions. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.actions.list({ triggerId: "triggerId", actionName: "actionName", deployed: true, page: 1, per_page: 1, installed: true, }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.actions.list({ triggerId: "triggerId", actionName: "actionName", deployed: true, page: 1, per_page: 1, installed: true, }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListActionsRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">create</a>({ ...params }) -> Management.CreateActionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create an action. Once an action is created, it must be deployed, and then bound to a trigger before it will be executed as part of a flow. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.create({ name: "name", supported_triggers: [ { id: "id", }, ], }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateActionRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">get</a>(id) -> Management.GetActionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve an action by its ID. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.get("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The ID of the action to retrieve. </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">delete</a>(id, { ...params }) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.delete("id", { force: true, }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The ID of the action to delete. </dd> </dl> <dl> <dd> **request:** `Management.DeleteActionRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateActionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the action to update. </dd> </dl> <dl> <dd> **request:** `Management.UpdateActionRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">deploy</a>(id) -> Management.DeployActionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.deploy("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The ID of an action. </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.actions.<a href="/src/management/api/resources/actions/client/Client.ts">test</a>(id, { ...params }) -> Management.TestActionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.actions.test("id", { payload: { key: "value", }, }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the action to test. </dd> </dl> <dl> <dd> **request:** `Management.TestActionRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ActionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## Branding <details><summary><code>client.branding.<a href="/src/management/api/resources/branding/client/Client.ts">get</a>() -> Management.GetBrandingResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve branding settings. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.branding.get(); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **requestOptions:** `BrandingClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.branding.<a href="/src/management/api/resources/branding/client/Client.ts">update</a>({ ...params }) -> Management.UpdateBrandingResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update branding settings. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.branding.update(); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.UpdateBrandingRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `BrandingClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## ClientGrants <details><summary><code>client.clientGrants.<a href="/src/management/api/resources/clientGrants/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.ClientGrantResponseContent, Management.ListClientGrantPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.clientGrants.list({ from: "from", take: 1, audience: "audience", client_id: "client_id", allow_any_organization: true, subject_type: "client", }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.clientGrants.list({ from: "from", take: 1, audience: "audience", client_id: "client_id", allow_any_organization: true, subject_type: "client", }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListClientGrantsRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ClientGrantsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clientGrants.<a href="/src/management/api/resources/clientGrants/client/Client.ts">create</a>({ ...params }) -> Management.CreateClientGrantResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clientGrants.create({ client_id: "client_id", audience: "audience", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateClientGrantRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ClientGrantsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clientGrants.<a href="/src/management/api/resources/clientGrants/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clientGrants.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client grant to delete. </dd> </dl> <dl> <dd> **requestOptions:** `ClientGrantsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clientGrants.<a href="/src/management/api/resources/clientGrants/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateClientGrantResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update a client grant. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clientGrants.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client grant to update. </dd> </dl> <dl> <dd> **request:** `Management.UpdateClientGrantRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ClientGrantsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## Clients <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.Client, Management.ListClientsOffsetPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. <ul> <li> The following can be retrieved with any scope: <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. </li> <li> The following properties can only be retrieved with the <code>read:clients</code> or <code>read:client_keys</code> scope: <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, <code>callback_url_template</code>, <code>jwt_configuration</code>, <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, <code>organization_require_behavior</code>. </li> <li> The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scope: <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. </li> </ul> </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.clients.list({ fields: "fields", include_fields: true, page: 1, per_page: 1, include_totals: true, is_global: true, is_first_party: true, app_type: "app_type", q: "q", }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.clients.list({ fields: "fields", include_fields: true, page: 1, per_page: 1, include_totals: true, is_global: true, is_first_party: true, app_type: "app_type", q: "q", }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListClientsRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">create</a>({ ...params }) -> Management.CreateClientResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. Notes: - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret. - The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none). - When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, specify fully defined credentials. These credentials will be automatically enabled for Private Key JWT authentication on the client. - To configure <code>client_authentication_methods</code>, the <code>create:client_credentials</code> scope is required. - To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256. <div class="alert alert-warning">SSO Integrations created via this endpoint will accept login requests and share user profile information.</div> </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clients.create({ name: "name", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateClientRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">get</a>(id, { ...params }) -> Management.GetClientResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. <ul> <li> The following properties can be retrieved with any of the scopes: <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. </li> <li> The following properties can only be retrieved with the <code>read:clients</code> or <code>read:client_keys</code> scopes: <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, <code>callback_url_template</code>, <code>jwt_configuration</code>, <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, <code>organization_require_behavior</code>. </li> <li> The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. </li> </ul> </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clients.get("id", { fields: "fields", include_fields: true, }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client to retrieve. </dd> </dl> <dl> <dd> **request:** `Management.GetClientRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Delete a client and related configuration (rules, connections, etc). </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clients.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client to delete. </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateClientResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. Notes: - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope. - The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none). - When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client. - To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required. - To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256. - To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clients.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client to update. </dd> </dl> <dl> <dd> **request:** `Management.UpdateClientRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.clients.<a href="/src/management/api/resources/clients/client/Client.ts">rotateSecret</a>(id) -> Management.RotateClientSecretResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Rotate a client secret. This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded. For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.clients.rotateSecret("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the client that will rotate secrets. </dd> </dl> <dl> <dd> **requestOptions:** `ClientsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## ConnectionProfiles <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.ConnectionProfile, Management.ListConnectionProfilesPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.connectionProfiles.list({ from: "from", take: 1, }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.connectionProfiles.list({ from: "from", take: 1, }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListConnectionProfileRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">create</a>({ ...params }) -> Management.CreateConnectionProfileResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create a Connection Profile. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.create({ name: "name", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateConnectionProfileRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">listTemplates</a>() -> Management.ListConnectionProfileTemplateResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve a list of Connection Profile Templates. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.listTemplates(); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">getTemplate</a>(id) -> Management.GetConnectionProfileTemplateResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve a Connection Profile Template. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.getTemplate("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the connection-profile-template to retrieve. </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">get</a>(id) -> Management.GetConnectionProfileResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve details about a single Connection Profile specified by ID. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.get("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the connection-profile to retrieve. </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Delete a single Connection Profile specified by ID. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the connection-profile to delete. </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connectionProfiles.<a href="/src/management/api/resources/connectionProfiles/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateConnectionProfileResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update the details of a specific Connection Profile. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connectionProfiles.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the connection profile to update. </dd> </dl> <dl> <dd> **request:** `Management.UpdateConnectionProfileRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionProfilesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## Connections <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.ConnectionForList, Management.ListConnectionsCheckpointPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. This endpoint supports two types of pagination: <ul> <li>Offset pagination</li> <li>Checkpoint pagination</li> </ul> Checkpoint pagination must be used if you need to retrieve more than 1000 connections. <h2>Checkpoint Pagination</h2> To search by checkpoint, use the following parameters: <ul> <li><code>from</code>: Optional id from which to start selection.</li> <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> </ul> <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.connections.list({ from: "from", take: 1, name: "name", fields: "fields", include_fields: true, }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.connections.list({ from: "from", take: 1, name: "name", fields: "fields", include_fields: true, }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListConnectionsQueryParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">create</a>({ ...params }) -> Management.CreateConnectionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Creates a new connection according to the JSON object received in <code>body</code>.<br/> </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connections.create({ name: "name", strategy: "ad", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateConnectionRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">get</a>(id, { ...params }) -> Management.GetConnectionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connections.get("id", { fields: "fields", include_fields: true, }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the connection to retrieve </dd> </dl> <dl> <dd> **request:** `Management.GetConnectionRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connections.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the connection to delete </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateConnectionResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connections.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the connection to update </dd> </dl> <dl> <dd> **request:** `Management.UpdateConnectionRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.connections.<a href="/src/management/api/resources/connections/client/Client.ts">checkStatus</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.connections.checkStatus("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the connection to check </dd> </dl> <dl> <dd> **requestOptions:** `ConnectionsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## CustomDomains <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">list</a>({ ...params }) -> Management.ListCustomDomainsResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.list({ q: "q", fields: "fields", include_fields: true, sort: "sort", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListCustomDomainsRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">create</a>({ ...params }) -> Management.CreateCustomDomainResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create a new custom domain. Note: The custom domain will need to be verified before it will accept requests. Optional attributes that can be updated: - custom_client_ip_header - tls_policy TLS Policies: - recommended - for modern usage this includes TLS 1.2 only </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.create({ domain: "domain", type: "auth0_managed_certs", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateCustomDomainRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">get</a>(id) -> Management.GetCustomDomainResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve a custom domain configuration and status. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.get("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the custom domain to retrieve. </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Delete a custom domain and stop serving requests for it. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the custom domain to delete. </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">update</a>(id, { ...params }) -> Management.UpdateCustomDomainResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update a custom domain. These are the attributes that can be updated: - custom_client_ip_header - tls_policy <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to send should be: <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre> <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: <pre><code>{ "tls_policy": "recommended" }</code></pre> TLS Policies: - recommended - for modern usage this includes TLS 1.2 only Some considerations: - The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally. - The <code>compatible</code> TLS policy is no longer supported. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.update("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — The id of the custom domain to update </dd> </dl> <dl> <dd> **request:** `Management.UpdateCustomDomainRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">test</a>(id) -> Management.TestCustomDomainResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Run the test process on a custom domain. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.test("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the custom domain to test. </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.customDomains.<a href="/src/management/api/resources/customDomains/client/Client.ts">verify</a>(id) -> Management.VerifyCustomDomainResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Run the verification process on a custom domain. Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests. For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests. <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.customDomains.verify("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the custom domain to verify. </dd> </dl> <dl> <dd> **requestOptions:** `CustomDomainsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## DeviceCredentials <details><summary><code>client.deviceCredentials.<a href="/src/management/api/resources/deviceCredentials/client/Client.ts">list</a>({ ...params }) -> core.Page<Management.DeviceCredential, Management.ListDeviceCredentialsOffsetPaginatedResponseContent></code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript const pageableResponse = await client.deviceCredentials.list({ page: 1, per_page: 1, include_totals: true, fields: "fields", include_fields: true, user_id: "user_id", client_id: "client_id", type: "public_key", }); for await (const item of pageableResponse) { console.log(item); } // Or you can manually iterate page-by-page let page = await client.deviceCredentials.list({ page: 1, per_page: 1, include_totals: true, fields: "fields", include_fields: true, user_id: "user_id", client_id: "client_id", type: "public_key", }); while (page.hasNextPage()) { page = page.getNextPage(); } // You can also access the underlying response const response = page.response; ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.ListDeviceCredentialsRequestParameters` </dd> </dl> <dl> <dd> **requestOptions:** `DeviceCredentialsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.deviceCredentials.<a href="/src/management/api/resources/deviceCredentials/client/Client.ts">createPublicKey</a>({ ...params }) -> Management.CreatePublicKeyDeviceCredentialResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.deviceCredentials.createPublicKey({ device_name: "device_name", value: "value", device_id: "device_id", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreatePublicKeyDeviceCredentialRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `DeviceCredentialsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.deviceCredentials.<a href="/src/management/api/resources/deviceCredentials/client/Client.ts">delete</a>(id) -> void</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Permanently delete a device credential (such as a refresh token or public key) with the given ID. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.deviceCredentials.delete("id"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **id:** `string` — ID of the credential to delete. </dd> </dl> <dl> <dd> **requestOptions:** `DeviceCredentialsClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> ## EmailTemplates <details><summary><code>client.emailTemplates.<a href="/src/management/api/resources/emailTemplates/client/Client.ts">create</a>({ ...params }) -> Management.CreateEmailTemplateResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Create an email template. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.emailTemplates.create({ template: "verify_email", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **request:** `Management.CreateEmailTemplateRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `EmailTemplatesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.emailTemplates.<a href="/src/management/api/resources/emailTemplates/client/Client.ts">get</a>(templateName) -> Management.GetEmailTemplateResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.emailTemplates.get("verify_email"); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **templateName:** `Management.EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). </dd> </dl> <dl> <dd> **requestOptions:** `EmailTemplatesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.emailTemplates.<a href="/src/management/api/resources/emailTemplates/client/Client.ts">set</a>(templateName, { ...params }) -> Management.SetEmailTemplateResponseContent</code></summary> <dl> <dd> #### 📝 Description <dl> <dd> <dl> <dd> Update an email template. </dd> </dl> </dd> </dl> #### 🔌 Usage <dl> <dd> <dl> <dd> ```typescript await client.emailTemplates.set("verify_email", { template: "verify_email", }); ``` </dd> </dl> </dd> </dl> #### ⚙️ Parameters <dl> <dd> <dl> <dd> **templateName:** `Management.EmailTemplateNameEnum` — Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy). </dd> </dl> <dl> <dd> **request:** `Management.SetEmailTemplateRequestContent` </dd> </dl> <dl> <dd> **requestOptions:** `EmailTemplatesClient.RequestOptions` </dd> </dl> </dd> </dl> </dd> </dl> </details> <details><summary><code>client.emailTemplates.<a href="/src/management/api/resources/emailTemplates/client/Client.ts">update</a>(templateName, { .