View Source Auth0.Api.Management (Auth0Api v2.2.0)

Documentation for Auth0 Management API.

Summary

Functions

Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.

Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.

Set one or more existing users as members of a specific Organization.

Assign one or more roles to a user to determine their access for a specific Organization.

Assign one or more users to an existing user role.

Assign one or more existing user roles to a user.

Add one or more permissions to a specified user role.

Add the token identified by the jti to a blacklist for the tenant.

Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts.

Create an email provider. The credentials object requires different properties depending on the email provider (which is specified using the name property)

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.

Create a phone notification template

Create a new client (application or SSO integration).

Create a client grant for a machine-to-machine login flow.

Creates a new connection according to the JSON object received in body.

Create a scim configuration for a connection.

Create a client credential associated to your application. The credential will be created but not yet enabled for use with Private Key JWT authentication method. To enable the credential, set the client_authentication_methods property on the client.

Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests.

Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address.

Create the new, pre-activated encryption key, without the key material.

Create the public wrapping key to wrap your own encryption key material.

Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user.

Export all users to a file via a long-running job.

Import users from a formatted file into a connection via a long-running job.

Create a new Organization within your tenant.

Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization.

Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow.

Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0.

Create a user role for Role-Based Access Control.

Creates a self-service profile. Currently only one profile can be created per tenant.

Creates an sso-access ticket to initiate the Self Service SSO Flow using a self-service profile.

Create a new user for a given database or passwordless connection.

Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.

Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.

Delete the configured phone provider.

Delete a phone notification template

Delete a client and related configuration (rules, connections, etc).

Delete the Client Credential Flow from your machine-to-machine application.

Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.

Deletes a scim configuration by its connectionId.

Deletes a scim token by its connection id and tokenId.

Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported.

Delete a client credential you previously created. May be enabled or disabled.

Delete a custom domain and stop serving requests for it.

Permanently delete a device credential (such as a refresh token or public key) with the given ID.

Delete the custom provided encryption key with the given ID and move back to using native encryption key.

Delete a grant associated with your account.

Delete a grant associated with your account.

Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA.

Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.

Remove an Organization from your tenant. This action cannot be undone.

Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.

Remove one or more Organization-specific roles from a given user.

Delete a refresh token by its ID.

Delete an existing API by ID.

Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone.

Delete a rules config variable identified by its key.

Deletes a self-service profile by Id.

Delete a session by ID.

Delete template for New Universal Login Experience

Delete a user by user ID. This action cannot be undone.

Remove the authentication method with the given ID from the specified user.

Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone.

Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone.

Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider.

Delete all refresh tokens for a user.

Delete all sessions for a user.

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.

Retrieve an action by its ID.

Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation.

Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow.

Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound.

Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created.

Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created.

Retrieve the number of active users that logged in during the last 30 days.

Retrieve details of the Breached Password Detection configuration of your tenant.

Retrieve details of the Brute-force Protection configuration of your tenant.

Retrieve details of the Suspicious IP Throttling configuration of your tenant.

Retrieve the jti and aud of all tokens that are blacklisted.

Retrieve branding settings.

Retrieve phone provider details. A list of fields to include or exclude may also be specified.

Get a phone notification template

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.

Retrieve a list of client grants, including the scopes associated with the application/API pair.

Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified.

Retrieve details for a specified connection along with options that can be used for identity provider configuration.

Retrieves a scim configuration by its connectionId.

Retrieves a scim configuration's default mapping by its connectionId.

Retrieves all scim tokens by its connection id.

Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message

Retrieves detailed list of all connections 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.

Get the details of a client credential.

Retrieve details on custom domains.

Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range.

Retrieve default branding theme.

Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user.

Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified.

Retrieve an email template by pre-defined name. These names are verify_email, verify_email_by_code, reset_email, welcome_email, blocked_account, stolen_credentials, enrollment_email, mfa_oob_code, and user_invitation. The names change_password, and password_reset are also supported for legacy scenarios.

Retrieve details of the encryption key with the given ID.

Retrieve details of all the encryption keys associated with your tenant.

Retrieve the grants associated with your account.

Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant.

Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA.

Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account.

Retrieve details of all multi-factor authentication factors associated with your tenant.

Retrieve the push notification provider configured for your tenant.

Retrieve details of the multi-factor authentication phone provider configured for your tenant.

Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.

Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant.

Retrieve configuration details for a Twilio phone provider that has been set up in your tenant.

Retrieve a hook by its ID. Accepts a list of fields to include in the result.

Retrieve a hook's secrets by the ID of the hook.

Retrieve all hooks. Accepts a list of fields to include or exclude in the result.

Retrieves a job. Useful to check its status.

Retrieve error details of a failed job.

Retrieve an individual log event.

Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified).

Retrieve a log stream configuration and status.

Retrieve details on log streams.

Retrieve details about a single Organization specified by ID.

Retrieve details about a single Organization specified by name.

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration.

Retrieve detailed list of roles assigned to a given user within the context of a specific Organization.

Retrive detailed list of all Organizations available in your tenant.

Retrieve custom text for a specific prompt and language.

Get template partials for a prompt

Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.

Retrieve refresh token information.

Retrieve API details with the given ID.

Retrieve details of all APIs associated with your tenant.

Retrieve details about a specific user role specified by ID.

Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role.

Retrieve list of users associated with a specific role.

Retrieve detailed list of user roles created in your tenant.

Retrieve rule details. Accepts a list of fields to include or exclude in the result.

Retrieve a filtered list of rules. Accepts a list of fields to include or exclude.

Retrieve rules config variable keys.

Retrieves a self-service profile by Id.

Retrieves self-service profiles. Currently only one profile can be created per tenant.

Retrieve session information.

Retrieve details of the application signing key with the given ID.

Retrieve details of all the application signing keys associated with your tenant.

Get template for New Universal Login Experience

Retrieve tenant settings. A list of fields to include or exclude may also be specified.

Retrieve user details. A list of fields to include or exclude may also be specified.

Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email).

Retrieve details of all Brute-force Protection blocks for the user with the given ID.

Retrieve the first multi-factor authentication enrollment that a specific user has confirmed.

Retrieve log events for a specific user.

Retrieve list of the specified user's current Organization memberships. User must be specified by user ID.

Retrieve all permissions associated with the user.

Retrieve details for a user's refresh tokens.

Retrieve detailed list of all user roles currently assigned to a user.

Retrieve details for a user's sessions.

Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it.

Import wrapped key material and activate encryption key.

Invalidate all remembered browsers across all authentication factors for a user.

Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities.

Retrieve a list ofphone providers details set for a Tenant. A list of fields to include or exclude may also be specified.

Get a list of phone notification templates

Get the details of a client credential.

Retrieve the multi-factor authentication (MFA) policies configured for your tenant.

Retrieve detailed list of authentication methods associated with a specified user.

Update the details of a specific Organization, such as name and display name, branding options, and metadata.

Modify the details of a specific connection currently enabled for an Organization.

Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.

Configure the AWS SNS push notification provider configuration (subscription required).

Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.

Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate.

Perform rekeying operation on the key hierarchy.

Remove a block imposed by Suspicious IP Throttling for the given IP address.

Remove one or more permissions from a specified user role.

Remove one or more specified user roles assigned to a user.

Resets a phone notification template values

Revokes a session by ID and all associated refresh tokens.

Revoke the application signing key with the given ID.

Revokes selected resources related to a user (sessions, refresh tokens, ...).

Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.

Rotate the application signing key of your tenant.

Send an email to the specified user that asks them to click a link to verify their email address.

Set multi-factor authentication (MFA) policies for your tenant.

Set custom text for a specific prompt. Existing texts will be overwritten.

Update the Universal Login branding template.

Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected.

Send a test phone notification for the configured provider

Send a test phone notification for the configured template

Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email).

Remove all Brute-force Protection blocks for the user with the given ID.

Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account.

Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed.

Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed.

Update details of the Breached Password Detection configuration of your tenant.

Update the Brute-force Protection configuration of your tenant.

Update the details of the Suspicious IP Throttling configuration of your tenant.

Update a phone notification template

Update details for a specific connection, including option properties for identity provider configuration.

Update a scim configuration by its connectionId.

Change a client credential you previously created. May be enabled or disabled.

Update an email provider. The credentials object requires different properties depending on the email provider (which is specified using the name property)

Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.

Configure the AWS SNS push notification provider configuration (subscription required).

Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor.

Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.

Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

Modify the push notification provider configured for your tenant.

Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.

Customize the messages sent to complete phone enrollment and verification (subscription required).

Update the configuration of a Twilio phone provider that has been set up in your tenant.

Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.

Change an existing API setting by resource server ID.

Modify the details of a specific user role specified by ID.

Updates a self-service profile.

Modify the authentication method with the given ID from the specified user.

Replace the specified user authentication methods with supplied values.

Run the verification process on a custom domain.

Types

@type action_id() :: String.t()
Link to this type

authentication_method_id()

View Source
@type authentication_method_id() :: String.t()
@type client_id() :: String.t()
@type config() :: Auth0.Config.t()
@type connection_id() :: String.t()
@type credential_id() :: String.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()
@type invitation_id() :: String.t()
@type ip() :: String.t()
@type key() :: String.t()
@type kid() :: String.t()
@type language() :: String.t()
@type name() :: String.t()
@type prompt() :: String.t()
@type provider() :: String.t()
@type template_name() :: String.t()
@type theme_id() :: String.t()
@type token_id() :: String.t()
@type trigger_id() :: String.t()
@type user_id() :: String.t()

Functions

Link to this function

add_hook_secrets(id, params \\ %{}, config \\ %Config{})

View Source
@spec add_hook_secrets(id(), map(), config()) :: {:ok, map()} | error()

Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.

see

https://auth0.com/docs/api/management/v2/hooks/post-secrets

Link to this function

add_organization_connection(id, params \\ %{}, config \\ %Config{})

View Source
@spec add_organization_connection(
  id(),
  map(),
  config()
) :: {:ok, map()} | error()

Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.

see

https://auth0.com/docs/api/management/v2/organizations/post-enabled-connections

Link to this function

add_organization_members(id, params \\ %{}, config \\ %Config{})

View Source
@spec add_organization_members(id(), map(), config()) :: {:ok, String.t()} | error()

Set one or more existing users as members of a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-members

Link to this function

assign_organization_roles(id, user_id, params \\ %{}, config \\ %Config{})

View Source
@spec assign_organization_roles(id(), user_id(), map(), config()) ::
  {:ok, String.t()} | error()

Assign one or more roles to a user to determine their access for a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles

Link to this function

assign_role_users(id, params \\ %{}, config \\ %Config{})

View Source
@spec assign_role_users(id(), map(), config()) :: {:ok, String.t()} | error()

Assign one or more users to an existing user role.

see

https://auth0.com/docs/api/management/v2/roles/post-role-users

Link to this function

assign_user_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec assign_user_permissions(id(), map(), config()) :: {:ok, String.t()} | error()

Assign permissions to a user.

see

https://auth0.com/docs/api/management/v2/users/post-permissions

Link to this function

assign_user_roles(id, params \\ %{}, config \\ %Config{})

View Source
@spec assign_user_roles(id(), map(), config()) :: {:ok, String.t()} | error()

Assign one or more existing user roles to a user.

see

https://auth0.com/docs/api/management/v2/users/post-user-roles

Link to this function

associate_role_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec associate_role_permissions(id(), map(), config()) :: {:ok, String.t()} | error()

Add one or more permissions to a specified user role.

see

https://auth0.com/docs/api/management/v2/roles/post-role-permission-assignment

Link to this function

blacklist_token(params \\ %{}, config \\ %Config{})

View Source
@spec blacklist_token(map(), config()) :: {:ok, String.t()} | error()

Add the token identified by the jti to a blacklist for the tenant.

see

https://auth0.com/docs/api/management/v2/blacklists/post-tokens

Link to this function

check_ip_blocked(ip, config \\ %Config{})

View Source
@spec check_ip_blocked(ip(), config()) :: {:ok, boolean()} | error()

Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts.

see

https://auth0.com/docs/api/management/v2/anomaly/get-ips-by-id

Link to this function

configure_branding_phone_provider(params, config)

View Source
@spec configure_branding_phone_provider(map(), config()) :: {:ok, map()} | error()

Create an phone provider.

see

https://auth0.com/docs/api/management/v2/branding/create-phone-provider

Link to this function

configure_custom_domain(params \\ %{}, config \\ %Config{})

View Source
@spec configure_custom_domain(map(), config()) :: {:ok, map()} | error()

Create a new custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/post-custom-domains

Link to this function

configure_email_provider(params \\ %{}, config \\ %Config{})

View Source
@spec configure_email_provider(map(), config()) :: {:ok, map()} | error()

Create an email provider. The credentials object requires different properties depending on the email provider (which is specified using the name property):

see

https://auth0.com/docs/api/management/v2/emails/post-provider

Link to this function

create_action(params \\ %{}, config \\ %Config{})

View Source
@spec create_action(map(), config()) :: {:ok, map()} | error()

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.

see

https://auth0.com/docs/api/management/v2/actions/post-action

Link to this function

create_branding_phone_template(params, config)

View Source
@spec create_branding_phone_template(map(), config()) :: {:ok, map()} | error()

Create a phone notification template

see

https://auth0.com/docs/api/management/v2/branding/create-phone-template

Link to this function

create_branding_theme(params \\ %{}, config \\ %Config{})

View Source
@spec create_branding_theme(map(), config()) :: {:ok, map()} | error()

Create branding theme.

see

https://auth0.com/docs/api/management/v2/branding/post-branding-theme

Link to this function

create_client(params \\ %{}, config \\ %Config{})

View Source
@spec create_client(map(), config()) :: {:ok, map()} | error()

Create a new client (application or SSO integration).

see

https://auth0.com/docs/api/management/v2/clients/post-clients

Link to this function

create_client_grant(params \\ %{}, config \\ %Config{})

View Source
@spec create_client_grant(map(), config()) :: {:ok, map()} | error()

Create a client grant for a machine-to-machine login flow.

see

https://auth0.com/docs/api/management/v2/client-grants/post-client-grants

Link to this function

create_connection(params \\ %{}, config \\ %Config{})

View Source
@spec create_connection(map(), config()) :: {:ok, map()} | error()

Creates a new connection according to the JSON object received in body.

see

https://auth0.com/docs/api/management/v2/connections/post-connections

Link to this function

create_connection_scim_configuration(id, params, config)

View Source
@spec create_connection_scim_configuration(id(), map(), config()) ::
  {:ok, map()} | error()

Create a scim configuration for a connection.

see

https://auth0.com/docs/api/management/v2/connections/post-scim-configuration

Link to this function

create_connection_scim_configuration_tokens(id, params, config)

View Source
@spec create_connection_scim_configuration_tokens(id(), map(), config()) ::
  {:ok, map()} | error()

Create a scim token for a scim client.

see

https://auth0.com/docs/api/management/v2/connections/post-scim-token

Link to this function

create_credential(client_id, params, config \\ %Config{})

View Source
@spec create_credential(client_id(), map(), config()) :: {:ok, map()} | error()

Create a client credential associated to your application. The credential will be created but not yet enabled for use with Private Key JWT authentication method. To enable the credential, set the client_authentication_methods property on the client.

see

https://auth0.com/docs/api/management/v2/clients/post-credentials

Link to this function

create_device_credential(params \\ %{}, config \\ %Config{})

View Source
@spec create_device_credential(map(), config()) :: {:ok, map()} | error()

Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests.

see

https://auth0.com/docs/api/management/v2/device-credentials/post-device-credentials

Link to this function

create_email_template(params \\ %{}, config \\ %Config{})

View Source
@spec create_email_template(map(), config()) :: {:ok, map()} | error()

Create an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/post-email-templates

Link to this function

create_email_verification_ticket(params \\ %{}, config \\ %Config{})

View Source
@spec create_email_verification_ticket(map(), config()) :: {:ok, map()} | error()

Create an email verification ticket for a given user. An email verification ticket is a generated URL that the user can consume to verify their email address.

see

https://auth0.com/docs/api/management/v2/tickets/post-email-verification

Link to this function

create_encryption_key(params, config)

View Source
@spec create_encryption_key(map(), config()) :: {:ok, map()} | error()

Create the new, pre-activated encryption key, without the key material.

see

https://auth0.com/docs/api/management/v2/keys/post-encryption

Link to this function

create_encryption_wrapping_key(kid, config)

View Source
@spec create_encryption_wrapping_key(kid(), config()) :: {:ok, map()} | error()

Create the public wrapping key to wrap your own encryption key material.

see

https://auth0.com/docs/api/management/v2/keys/post-encryption-wrapping-key

Link to this function

create_flow(params, config)

View Source
@spec create_flow(map(), config()) :: {:ok, map()} | error()

Create a flow.

see

https://auth0.com/docs/api/management/v2/flows/post-flows

Link to this function

create_form(params, config)

View Source
@spec create_form(map(), config()) :: {:ok, map()} | error()

Create a form.

see

https://auth0.com/docs/api/management/v2/forms/post-forms

Link to this function

create_guardian_enrollment_ticket(params \\ %{}, config \\ %Config{})

View Source
@spec create_guardian_enrollment_ticket(map(), config()) :: {:ok, map()} | error()

Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user.

see

https://auth0.com/docs/api/management/v2/guardian/post-ticket

Link to this function

create_hook(params \\ %{}, config \\ %Config{})

View Source
@spec create_hook(map(), config()) :: {:ok, map()} | error()

Create a new hook.

see

https://auth0.com/docs/api/management/v2/hooks/post-hooks

Link to this function

create_job_users_exports(params \\ %{}, config \\ %Config{})

View Source
@spec create_job_users_exports(map(), config()) :: {:ok, map()} | error()

Export all users to a file via a long-running job.

see

https://auth0.com/docs/api/management/v2/jobs/post-users-exports

Link to this function

create_job_users_imports(params \\ %{}, config \\ %Config{})

View Source
@spec create_job_users_imports(map(), config()) :: {:ok, map()} | error()

Import users from a formatted file into a connection via a long-running job.

see

https://auth0.com/docs/api/management/v2/jobs/post-users-imports

Link to this function

create_log_stream(params \\ %{}, config \\ %Config{})

View Source
@spec create_log_stream(map(), config()) :: {:ok, map()} | error()

Create a log stream.

see

https://auth0.com/docs/api/management/v2/log-streams/post-log-streams

Link to this function

create_organization(params \\ %{}, config \\ %Config{})

View Source
@spec create_organization(map(), config()) :: {:ok, map()} | error()

Create a new Organization within your tenant.

see

https://auth0.com/docs/api/management/v2/organizations/post-organizations

Link to this function

create_organization_invitation(id, params \\ %{}, config \\ %Config{})

View Source
@spec create_organization_invitation(id(), map(), config()) :: {:ok, map()} | error()

Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization.

see

https://auth0.com/docs/api/management/v2/organizations/post-invitations

Link to this function

create_password_change_ticket(params \\ %{}, config \\ %Config{})

View Source
@spec create_password_change_ticket(map(), config()) :: {:ok, map()} | error()

Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow.

see

https://auth0.com/docs/api/management/v2/tickets/post-password-change

Link to this function

create_resource_server(params \\ %{}, config \\ %Config{})

View Source
@spec create_resource_server(map(), config()) :: {:ok, map()} | error()

Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0.

see

https://auth0.com/docs/api/management/v2/resource-servers/post-resource-servers

Link to this function

create_role(params \\ %{}, config \\ %Config{})

View Source
@spec create_role(map(), config()) :: {:ok, map()} | error()

Create a user role for Role-Based Access Control.

see

https://auth0.com/docs/api/management/v2/roles/post-roles

Link to this function

create_rule(params \\ %{}, config \\ %Config{})

View Source
@spec create_rule(map(), config()) :: {:ok, map()} | error()

Create a new rule.

see

https://auth0.com/docs/api/management/v2/rules/post-rules

Link to this function

create_self_service_profile(params, config)

View Source
@spec create_self_service_profile(map(), config()) :: {:ok, map()} | error()

Creates a self-service profile. Currently only one profile can be created per tenant.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/post-self-service-profiles

Link to this function

create_self_service_profile_sso_ticket(id, params, config)

View Source
@spec create_self_service_profile_sso_ticket(id(), map(), config()) ::
  {:ok, map()} | error()

Creates an sso-access ticket to initiate the Self Service SSO Flow using a self-service profile.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/post-sso-ticket

Link to this function

create_user(params \\ %{}, config \\ %Config{})

View Source
@spec create_user(map(), config()) :: {:ok, map()} | error()

Create a new user for a given database or passwordless connection.

see

https://auth0.com/docs/api/management/v2/users/post-users

Link to this function

create_user_authentication_methods(id, params, config)

View Source
@spec create_user_authentication_methods(id(), map(), config()) ::
  {:ok, map()} | error()

Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.

see

https://auth0.com/docs/api/management/v2/users/post-authentication-methods

Link to this function

delete_action(id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_action(id(), map(), config()) :: {:ok, String.t()} | error()

Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.

see

https://auth0.com/docs/api/management/v2/actions/delete-action

Link to this function

delete_branding_phone_provider(id, config)

View Source
@spec delete_branding_phone_provider(id(), config()) :: {:ok, map()} | error()

Delete the configured phone provider.

see

https://auth0.com/docs/api/management/v2/branding/delete-phone-provider

Link to this function

delete_branding_phone_template(id, config)

View Source
@spec delete_branding_phone_template(id(), config()) :: {:ok, map()} | error()

Delete a phone notification template

see

https://auth0.com/docs/api/management/v2/branding/delete-phone-template

Link to this function

delete_branding_theme(theme_id, config \\ %Config{})

View Source
@spec delete_branding_theme(theme_id(), config()) :: {:ok, String.t()} | error()

Delete branding theme.

see

https://auth0.com/docs/api/management/v2/branding/delete-branding-theme

Link to this function

delete_client(id, config \\ %Config{})

View Source
@spec delete_client(id(), config()) :: {:ok, String.t()} | error()

Delete a client and related configuration (rules, connections, etc).

see

https://auth0.com/docs/api/management/v2/clients/delete-clients-by-id

Link to this function

delete_client_grant(id, config \\ %Config{})

View Source
@spec delete_client_grant(id(), config()) :: {:ok, String.t()} | error()

Delete the Client Credential Flow from your machine-to-machine application.

see

https://auth0.com/docs/api/management/v2/client-grants/delete-client-grants-by-id

Link to this function

delete_connection(id, config \\ %Config{})

View Source
@spec delete_connection(id(), config()) :: {:ok, String.t()} | error()

Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.

see

https://auth0.com/docs/api/management/v2/connections/delete-connections-by-id

Link to this function

delete_connection_scim_configuration(id, config)

View Source
@spec delete_connection_scim_configuration(id(), config()) ::
  {:ok, String.t()} | error()

Deletes a scim configuration by its connectionId.

see

https://auth0.com/docs/api/management/v2/connections/delete-scim-configuration

Link to this function

delete_connection_scim_configuration_tokens(id, token_id, config)

View Source
@spec delete_connection_scim_configuration_tokens(id(), token_id(), config()) ::
  {:ok, String.t()} | error()

Deletes a scim token by its connection id and tokenId.

see

https://auth0.com/docs/api/management/v2/connections/delete-tokens-by-token-id

Link to this function

delete_connection_users(id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_connection_users(id(), map(), config()) :: {:ok, String.t()} | error()

Deletes a specified connection user by its email (you cannot delete all users from specific connection). Currently, only Database Connections are supported.

see

https://auth0.com/docs/api/management/v2/connections/delete-users-by-email

Link to this function

delete_credential(client_id, credential_id, config \\ %Config{})

View Source
@spec delete_credential(client_id(), credential_id(), config()) ::
  {:ok, String.t()} | error()

Delete a client credential you previously created. May be enabled or disabled.

see

https://auth0.com/docs/api/management/v2/clients/delete-credentials-by-credential-id

Link to this function

delete_custom_domain_configuration(id, config \\ %Config{})

View Source
@spec delete_custom_domain_configuration(id(), config()) ::
  {:ok, String.t()} | error()

Delete a custom domain and stop serving requests for it.

see

https://auth0.com/docs/api/management/v2/custom-domains/delete-custom-domains-by-id

Link to this function

delete_device_credential(id, config \\ %Config{})

View Source
@spec delete_device_credential(id(), config()) :: {:ok, String.t()} | error()

Permanently delete a device credential (such as a refresh token or public key) with the given ID.

see

https://auth0.com/docs/api/management/v2/device-credentials/delete-device-credentials-by-id

Link to this function

delete_encryption_key(kid, config)

View Source
@spec delete_encryption_key(kid(), config()) :: {:ok, String.t()} | error()

Delete the custom provided encryption key with the given ID and move back to using native encryption key.

see

https://auth0.com/docs/api/management/v2/keys/delete-encryption-key

Link to this function

delete_grant(id, config \\ %Config{})

View Source
@spec delete_grant(id(), config()) :: {:ok, String.t()} | error()

Delete a grant associated with your account.

see

https://auth0.com/docs/api/management/v2/grants/delete-grants-by-id

Link to this function

delete_grant_by_user_id(params \\ %{}, config \\ %Config{})

View Source
@spec delete_grant_by_user_id(map(), config()) :: {:ok, String.t()} | error()

Delete a grant associated with your account.

see

https://auth0.com/docs/api/management/v2/grants/delete-grants-by-user-id

Link to this function

delete_guardian_enrollment(id, config \\ %Config{})

View Source
@spec delete_guardian_enrollment(id(), config()) :: {:ok, String.t()} | error()

Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA.

see

https://auth0.com/docs/api/management/v2/guardian/delete-enrollments-by-id

Link to this function

delete_hook(id, config \\ %Config{})

View Source
@spec delete_hook(id(), config()) :: {:ok, String.t()} | error()

Delete a hook.

see

https://auth0.com/docs/api/management/v2/hooks/delete-hooks-by-id

Link to this function

delete_hook_secrets(id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_hook_secrets(id(), map(), config()) :: {:ok, String.t()} | error()

Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.

see

https://auth0.com/docs/api/management/v2/hooks/delete-secrets

Link to this function

delete_log_stream(id, config \\ %Config{})

View Source
@spec delete_log_stream(id(), config()) :: {:ok, String.t()} | error()

Delete a log stream.

see

https://auth0.com/docs/api/management/v2/log-streams/delete-log-streams-by-id

Link to this function

delete_organization(id, config \\ %Config{})

View Source
@spec delete_organization(id(), config()) :: {:ok, String.t()} | error()

Remove an Organization from your tenant. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/organizations/delete-organizations-by-id

Link to this function

delete_organization_connection(id, connection_id, config \\ %Config{})

View Source
@spec delete_organization_connection(id(), connection_id(), config()) ::
  {:ok, String.t()} | error()

Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.

see

https://auth0.com/docs/api/management/v2/organizations/delete-enabled-connections-by-connection-id

Link to this function

delete_organization_invitation(id, invitation_id, config \\ %Config{})

View Source
@spec delete_organization_invitation(id(), invitation_id(), config()) ::
  {:ok, String.t()} | error()

Delete an invitation to an Organization

see

https://auth0.com/docs/api/management/v2/organizations/delete-invitations-by-invitation-id

Link to this function

delete_organization_members(id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_organization_members(id(), map(), config()) ::
  {:ok, String.t()} | error()

Delete members from an organization

see

https://auth0.com/docs/api/management/v2/organizations/delete-members

Link to this function

delete_organization_roles(id, user_id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_organization_roles(
  id(),
  user_id(),
  map(),
  config()
) :: {:ok, String.t()} | error()

Remove one or more Organization-specific roles from a given user.

see

https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles

Link to this function

delete_refresh_token(id, config \\ %Config{})

View Source
@spec delete_refresh_token(id(), config()) :: {:ok, String.t()} | error()

Delete a refresh token by its ID.

see

https://auth0.com/docs/api/management/v2/refresh-tokens/delete-refresh-token

Link to this function

delete_resource_server(id, config \\ %Config{})

View Source
@spec delete_resource_server(id(), config()) :: {:ok, String.t()} | error()

Delete an existing API by ID.

see

https://auth0.com/docs/api/management/v2/resource-servers/delete-resource-servers-by-id

Link to this function

delete_role(id, config \\ %Config{})

View Source
@spec delete_role(id(), config()) :: {:ok, String.t()} | error()

Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/roles/delete-roles-by-id

Link to this function

delete_rule(id, config \\ %Config{})

View Source
@spec delete_rule(id(), config()) :: {:ok, String.t()} | error()

Delete a rule.

see

https://auth0.com/docs/api/management/v2/rules/delete-rules-by-id

Link to this function

delete_rules_config(key, config \\ %Config{})

View Source
@spec delete_rules_config(key(), config()) :: {:ok, String.t()} | error()

Delete a rules config variable identified by its key.

see

https://auth0.com/docs/api/management/v2/rules-configs/delete-rules-configs-by-key

Link to this function

delete_self_service_profile(id, config)

View Source
@spec delete_self_service_profile(id(), config()) :: {:ok, map()} | error()

Deletes a self-service profile by Id.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/delete-self-service-profiles-by-id

Link to this function

delete_session(id, config \\ %Config{})

View Source
@spec delete_session(id(), config()) :: {:ok, String.t()} | error()

Delete a session by ID.

see

https://auth0.com/docs/api/management/v2/sessions/delete-session

Link to this function

delete_template_for_universal_login(config \\ %Config{})

View Source
@spec delete_template_for_universal_login(config()) :: {:ok, String.t()} | error()

Delete template for New Universal Login Experience

see

https://auth0.com/docs/api/management/v2/branding/delete-universal-login

Link to this function

delete_user(id, config \\ %Config{})

View Source
@spec delete_user(id(), config()) :: {:ok, String.t()} | error()

Delete a user by user ID. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/users/delete-users-by-id

Link to this function

delete_user_authentication_method(id, authentication_method_id, config)

View Source
@spec delete_user_authentication_method(id(), authentication_method_id(), config()) ::
  {:ok, String.t()} | error()

Remove the authentication method with the given ID from the specified user.

see

https://auth0.com/docs/api/management/v2/users/delete-authentication-methods-by-authentication-method-id

Link to this function

delete_user_authentication_methods(id, config)

View Source
@spec delete_user_authentication_methods(id(), config()) ::
  {:ok, String.t()} | error()

Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/users/delete-authentication-methods

Link to this function

delete_user_authenticators(id, config)

View Source
@spec delete_user_authenticators(id(), config()) :: {:ok, String.t()} | error()

Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone.

see

https://auth0.com/docs/api/management/v2/users/delete-authenticators

Link to this function

delete_user_multifactor(id, params \\ %{}, config \\ %Config{})

View Source
@spec delete_user_multifactor(id(), map(), config()) :: {:ok, String.t()} | error()

Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider.

see

https://auth0.com/docs/api/management/v2/users/delete-multifactor-by-provider

Link to this function

delete_user_refresh_tokens(id, config \\ %Config{})

View Source
@spec delete_user_refresh_tokens(id(), config()) :: {:ok, String.t()} | error()

Delete all refresh tokens for a user.

see

https://auth0.com/docs/api/management/v2/users/delete-refresh-tokens-for-user

Link to this function

delete_user_sessions(id, config \\ %Config{})

View Source
@spec delete_user_sessions(id(), config()) :: {:ok, String.t()} | error()

Delete all sessions for a user.

see

https://auth0.com/docs/api/management/v2/users/delete-sessions-for-user

Link to this function

deploy_action(id, config \\ %Config{})

View Source
@spec deploy_action(id(), config()) :: {:ok, map()} | error()

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.

see

https://auth0.com/docs/api/management/v2/actions/post-deploy-action

Link to this function

get_action(id, config \\ %Config{})

View Source
@spec get_action(id(), config()) :: {:ok, map()} | error()

Retrieve an action by its ID.

see

https://auth0.com/docs/api/management/v2/actions/get-action

Link to this function

get_action_execution(id, config \\ %Config{})

View Source
@spec get_action_execution(id(), config()) :: {:ok, map()} | error()

Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation.

see

https://auth0.com/docs/api/management/v2/actions/get-execution

Link to this function

get_action_trigger_bindings(trigger_id, params \\ %{}, config \\ %Config{})

View Source
@spec get_action_trigger_bindings(trigger_id(), map(), config()) ::
  {:ok, map()} | error()

Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow.

see

https://auth0.com/docs/api/management/v2/actions/get-bindings

Link to this function

get_action_triggers(config \\ %Config{})

View Source
@spec get_action_triggers(config()) :: {:ok, map()} | error()

Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound.

see

https://auth0.com/docs/api/management/v2/actions/get-triggers

Link to this function

get_action_version(action_id, id, config \\ %Config{})

View Source
@spec get_action_version(action_id(), id(), config()) :: {:ok, map()} | error()

Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created.

see

https://auth0.com/docs/api/management/v2/actions/get-action-version

Link to this function

get_action_versions(action_id, params \\ %{}, config \\ %Config{})

View Source
@spec get_action_versions(action_id(), map(), config()) :: {:ok, map()} | error()

Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created.

see

https://auth0.com/docs/api/management/v2/actions/get-action-versions

Link to this function

get_actions(params \\ %{}, config \\ %Config{})

View Source
@spec get_actions(map(), config()) :: {:ok, map()} | error()

Retrieve all actions.

see

https://auth0.com/docs/api/management/v2/actions/get-actions

Link to this function

get_active_users_count(config \\ %Config{})

View Source
@spec get_active_users_count(config()) :: {:ok, integer()} | error()

Retrieve the number of active users that logged in during the last 30 days.

see

https://auth0.com/docs/api/management/v2/stats/get-active-users

Link to this function

get_attack_protection_breached_password_detection(config \\ %Config{})

View Source
@spec get_attack_protection_breached_password_detection(config()) ::
  {:ok, map()} | error()

Retrieve details of the Breached Password Detection configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/get-breached-password-detection

Link to this function

get_attack_protection_brute_force_protection(config \\ %Config{})

View Source
@spec get_attack_protection_brute_force_protection(config()) :: {:ok, map()} | error()

Retrieve details of the Brute-force Protection configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/get-brute-force-protection

Link to this function

get_attack_protection_suspicious_ip_throttling(config \\ %Config{})

View Source
@spec get_attack_protection_suspicious_ip_throttling(config()) ::
  {:ok, map()} | error()

Retrieve details of the Suspicious IP Throttling configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/get-suspicious-ip-throttling

Link to this function

get_blacklisted_tokens(params \\ %{}, config \\ %Config{})

View Source
@spec get_blacklisted_tokens(map(), config()) :: {:ok, [map()]} | error()

Retrieve the jti and aud of all tokens that are blacklisted.

see

https://auth0.com/docs/api/management/v2/blacklists/get-tokens

Link to this function

get_branding(config \\ %Config{})

View Source
@spec get_branding(config()) :: {:ok, map()} | error()

Retrieve branding settings.

see

https://auth0.com/docs/api/management/v2/branding/get-branding

Link to this function

get_branding_phone_provider(id, config)

View Source
@spec get_branding_phone_provider(id(), config()) :: {:ok, map()} | error()

Retrieve phone provider details. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/branding/get-phone-provider

Link to this function

get_branding_phone_template(id, config)

View Source
@spec get_branding_phone_template(id(), config()) :: {:ok, map()} | error()

Get a phone notification template

see

https://auth0.com/docs/api/management/v2/branding/get-phone-template

Link to this function

get_branding_theme(theme_id, config \\ %Config{})

View Source
@spec get_branding_theme(theme_id(), config()) :: {:ok, map()} | error()

Retrieve branding theme.

see

https://auth0.com/docs/api/management/v2/branding/get-branding-theme

Link to this function

get_client(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_client(id(), map(), config()) :: {:ok, map()} | error()

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.

see

https://auth0.com/docs/api/management/v2/clients/get-clients-by-id

Link to this function

get_client_grants(params \\ %{}, config \\ %Config{})

View Source
@spec get_client_grants(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve a list of client grants, including the scopes associated with the application/API pair.

see

https://auth0.com/docs/api/management/v2/client-grants/get-client-grants

Link to this function

get_clients(params \\ %{}, config \\ %Config{})

View Source
@spec get_clients(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/clients/get-clients

Link to this function

get_connection(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_connection(id(), map(), config()) :: {:ok, map()} | error()

Retrieve details for a specified connection along with options that can be used for identity provider configuration.

see

https://auth0.com/docs/api/management/v2/connections/get-connections-by-id

Link to this function

get_connection_scim_configuration(id, config)

View Source
@spec get_connection_scim_configuration(id(), config()) :: {:ok, map()} | error()

Retrieves a scim configuration by its connectionId.

see

https://auth0.com/docs/api/management/v2/connections/get-scim-configuration

Link to this function

get_connection_scim_configuration_default_mapping(id, config)

View Source
@spec get_connection_scim_configuration_default_mapping(id(), config()) ::
  {:ok, map()} | error()

Retrieves a scim configuration's default mapping by its connectionId.

see

https://auth0.com/docs/api/management/v2/connections/get-default-mapping

Link to this function

get_connection_scim_configuration_tokens(id, config)

View Source
@spec get_connection_scim_configuration_tokens(id(), config()) ::
  {:ok, [map()]} | error()

Retrieves all scim tokens by its connection id.

see

https://auth0.com/docs/api/management/v2/connections/get-scim-tokens

Link to this function

get_connection_status(id, config \\ %Config{})

View Source
@spec get_connection_status(id(), config()) :: {:ok, boolean()} | error()

Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message

see

https://auth0.com/docs/api/management/v2/connections/get-status

Link to this function

get_connections(params \\ %{}, config \\ %Config{})

View Source
@spec get_connections(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieves detailed list of all connections 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.

see

https://auth0.com/docs/api/management/v2/connections/get-connections

Link to this function

get_credential(client_id, credential_id, config \\ %Config{})

View Source
@spec get_credential(client_id(), credential_id(), config()) :: {:ok, map()} | error()

Get the details of a client credential.

see

https://auth0.com/docs/api/management/v2/clients/get-credentials-by-credential-id

Link to this function

get_custom_domain_configuration(id, config \\ %Config{})

View Source
@spec get_custom_domain_configuration(id(), config()) :: {:ok, map()} | error()

Get custom domain configuration.

see

https://auth0.com/docs/api/management/v2/custom-domains/get-custom-domains-by-id

Link to this function

get_custom_domain_configurations(config \\ %Config{})

View Source
@spec get_custom_domain_configurations(config()) :: {:ok, [map()]} | error()

Retrieve details on custom domains.

see

https://auth0.com/docs/api/management/v2/custom-domains/get-custom-domains

Link to this function

get_daily_stats(config \\ %Config{})

View Source
@spec get_daily_stats(config()) :: {:ok, [map()]} | error()

Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range.

see

https://auth0.com/docs/api/management/v2/stats/get-daily

Link to this function

get_default_branding_theme(config \\ %Config{})

View Source
@spec get_default_branding_theme(config()) :: {:ok, map()} | error()

Retrieve default branding theme.

see

https://auth0.com/docs/api/management/v2/branding/get-default-branding-theme

Link to this function

get_device_credentials(params \\ %{}, config \\ %Config{})

View Source
@spec get_device_credentials(map(), config()) :: {:ok, [map()]} | error()

Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user.

see

https://auth0.com/docs/api/management/v2/device-credentials/get-device-credentials

Link to this function

get_email_provider(params \\ %{}, config \\ %Config{})

View Source
@spec get_email_provider(map(), config()) :: {:ok, map()} | error()

Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/emails/get-provider

Link to this function

get_email_template(template_name, config \\ %Config{})

View Source
@spec get_email_template(template_name(), config()) :: {:ok, map()} | error()

Retrieve an email template by pre-defined name. These names are verify_email, verify_email_by_code, reset_email, welcome_email, blocked_account, stolen_credentials, enrollment_email, mfa_oob_code, and user_invitation. The names change_password, and password_reset are also supported for legacy scenarios.

see

https://auth0.com/docs/api/management/v2/email-templates/get-email-templates-by-template-name

Link to this function

get_encryption_key(kid, config)

View Source
@spec get_encryption_key(kid(), config()) :: {:ok, map()} | error()

Retrieve details of the encryption key with the given ID.

see

https://auth0.com/docs/api/management/v2/keys/get-encryption-key

Link to this function

get_encryption_keys(params, config)

View Source
@spec get_encryption_keys(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve details of all the encryption keys associated with your tenant.

see

https://auth0.com/docs/api/management/v2/keys/get-encryption-keys

Link to this function

get_flow(id, params, config)

View Source
@spec get_flow(id(), map(), config()) :: {:ok, map()} | error()

Get a flow.

see

https://auth0.com/docs/api/management/v2/flows/get-flows-by-id

Link to this function

get_flows(params, config)

View Source
@spec get_flows(map(), config()) :: {:ok, map()} | error()

Get flows.

see

https://auth0.com/docs/api/management/v2/flows/get-flows

Link to this function

get_form(id, params, config)

View Source
@spec get_form(id(), map(), config()) :: {:ok, map()} | error()

Get a form.

see

https://auth0.com/docs/api/management/v2/forms/get-forms-by-id

Link to this function

get_forms(params, config)

View Source
@spec get_forms(map(), config()) :: {:ok, map()} | error()

Get forms.

see

https://auth0.com/docs/api/management/v2/forms/get-forms

Link to this function

get_grants(params \\ %{}, config \\ %Config{})

View Source
@spec get_grants(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve the grants associated with your account.

see

https://auth0.com/docs/api/management/v2/grants/get-grants

Link to this function

get_guardian_apns_configuration(config)

View Source
@spec get_guardian_apns_configuration(config()) :: {:ok, map()} | error()

Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-apns

Link to this function

get_guardian_aws_sns_configuration(config \\ %Config{})

View Source
@spec get_guardian_aws_sns_configuration(config()) :: {:ok, map()} | error()

Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA.

see

https://auth0.com/docs/api/management/v2/guardian/get-sns

Link to this function

get_guardian_enrollment(id, config \\ %Config{})

View Source
@spec get_guardian_enrollment(id(), config()) :: {:ok, map()} | error()

Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account.

see

https://auth0.com/docs/api/management/v2/guardian/get-enrollments-by-id

Link to this function

get_guardian_factors(config \\ %Config{})

View Source
@spec get_guardian_factors(config()) :: {:ok, [map()]} | error()

Retrieve details of all multi-factor authentication factors associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-factors

Link to this function

get_guardian_notification_provider(config)

View Source
@spec get_guardian_notification_provider(config()) :: {:ok, map()} | error()

Retrieve the push notification provider configured for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-pn-providers

Link to this function

get_guardian_phone_configuration(config \\ %Config{})

View Source
@spec get_guardian_phone_configuration(config()) :: {:ok, map()} | error()

Retrieve details of the multi-factor authentication phone provider configured for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-guardian-phone-providers

Link to this function

get_guardian_phone_factor(config \\ %Config{})

View Source
@spec get_guardian_phone_factor(config()) :: {:ok, map()} | error()

Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-message-types

Link to this function

get_guardian_phone_template(config \\ %Config{})

View Source
@spec get_guardian_phone_template(config()) :: {:ok, map()} | error()

Retrieve details of the multi-factor authentication enrollment and verification templates for phone-type factors available in your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates

Link to this function

get_guardian_twilio_phone_configuration(config \\ %Config{})

View Source
@spec get_guardian_twilio_phone_configuration(config()) :: {:ok, map()} | error()

Retrieve configuration details for a Twilio phone provider that has been set up in your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-phone-twilio-factor-provider

Link to this function

get_hook(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_hook(id(), map(), config()) :: {:ok, map()} | error()

Retrieve a hook by its ID. Accepts a list of fields to include in the result.

see

https://auth0.com/docs/api/management/v2/hooks/get-hooks-by-id

Link to this function

get_hook_secrets(id, config \\ %Config{})

View Source
@spec get_hook_secrets(id(), config()) :: {:ok, map()} | error()

Retrieve a hook's secrets by the ID of the hook.

see

https://auth0.com/docs/api/management/v2/hooks/get-secrets

Link to this function

get_hooks(params \\ %{}, config \\ %Config{})

View Source
@spec get_hooks(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve all hooks. Accepts a list of fields to include or exclude in the result.

see

https://auth0.com/docs/api/management/v2/hooks/get-hooks

Link to this function

get_job(id, config \\ %Config{})

View Source
@spec get_job(id(), config()) :: {:ok, [map()] | map()} | error()

Retrieves a job. Useful to check its status.

see

https://auth0.com/docs/api/management/v2/jobs/get-jobs-by-id

Link to this function

get_job_error(id, config \\ %Config{})

View Source
@spec get_job_error(id(), config()) :: {:ok, [map()] | map()} | error()

Retrieve error details of a failed job.

see

https://auth0.com/docs/api/management/v2/jobs/get-errors

Link to this function

get_log_event(id, config \\ %Config{})

View Source
@spec get_log_event(id(), config()) :: {:ok, map()} | error()

Retrieve an individual log event.

see

https://auth0.com/docs/api/management/v2/logs/get-logs-by-id

Link to this function

get_log_events(params \\ %{}, config \\ %Config{})

View Source
@spec get_log_events(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified).

see

https://auth0.com/docs/api/management/v2/logs/get-logs

Link to this function

get_log_stream(id, config \\ %Config{})

View Source
@spec get_log_stream(id(), config()) :: {:ok, map()} | error()

Retrieve a log stream configuration and status.

see

https://auth0.com/docs/api/management/v2#!/Log_Streams/get_log_streams_by_id

Link to this function

get_log_streams(config \\ %Config{})

View Source
@spec get_log_streams(config()) :: {:ok, map()} | error()

Retrieve details on log streams.

see

https://auth0.com/docs/api/management/v2/log-streams/get-log-streams

Link to this function

get_organization(id, config \\ %Config{})

View Source
@spec get_organization(id(), config()) :: {:ok, map()} | error()

Retrieve details about a single Organization specified by ID.

see

https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id

Link to this function

get_organization_by_name(name, config \\ %Config{})

View Source
@spec get_organization_by_name(name(), config()) :: {:ok, map()} | error()

Retrieve details about a single Organization specified by name.

see

https://auth0.com/docs/api/management/v2/organizations/get-name-by-name

Link to this function

get_organization_connection(id, connection_id, config \\ %Config{})

View Source
@spec get_organization_connection(id(), connection_id(), config()) ::
  {:ok, map()} | error()

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

see

https://auth0.com/docs/api/management/v2/organizations/get-enabled-connections-by-connection-id

Link to this function

get_organization_connections(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_organization_connections(id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

see

https://auth0.com/docs/api/management/v2/organizations/get-enabled-connections

Link to this function

get_organization_invitation(id, invitation_id, params \\ %{}, config \\ %Config{})

View Source
@spec get_organization_invitation(
  id(),
  invitation_id(),
  map(),
  config()
) :: {:ok, map()} | error()

Get a specific invitation to an Organization

see

https://auth0.com/docs/api/management/v2/organizations/get-invitations-by-invitation-id

Link to this function

get_organization_invitations(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_organization_invitations(id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration.

see

https://auth0.com/docs/api/management/v2/organizations/get-invitations

Link to this function

get_organization_members(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_organization_members(id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

List organization members.

see

https://auth0.com/docs/api/management/v2/organizations/get-members

Link to this function

get_organization_roles(id, user_id, params \\ %{}, config \\ %Config{})

View Source
@spec get_organization_roles(id(), user_id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

Retrieve detailed list of roles assigned to a given user within the context of a specific Organization.

see

https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles

Link to this function

get_organizations(params \\ %{}, config \\ %Config{})

View Source
@spec get_organizations(map(), config()) :: {:ok, [map()] | map()} | error()

Retrive detailed list of all Organizations available in your tenant.

see

https://auth0.com/docs/api/management/v2/organizations/get-organizations

Link to this function

get_prompt_custom_text(prompt, language, config \\ %Config{})

View Source
@spec get_prompt_custom_text(prompt(), language(), config()) :: {:ok, map()} | error()

Retrieve custom text for a specific prompt and language.

see

https://auth0.com/docs/api/management/v2/prompts/get-custom-text-by-language

Link to this function

get_prompt_partials(prompt, config \\ %Config{})

View Source
@spec get_prompt_partials(prompt(), config()) :: {:ok, map()} | error()

Get template partials for a prompt

see

https://auth0.com/docs/api/management/v2/prompts/get-partials

Link to this function

get_prompt_setting(config \\ %Config{})

View Source
@spec get_prompt_setting(config()) :: {:ok, map()} | error()

Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.

see

https://auth0.com/docs/api/management/v2/prompts/get-prompts

Link to this function

get_refresh_token(id, config \\ %Config{})

View Source
@spec get_refresh_token(id(), config()) :: {:ok, map()} | error()

Retrieve refresh token information.

see

https://auth0.com/docs/api/management/v2/refresh-tokens/get-refresh-token

Link to this function

get_resource_server(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_resource_server(id(), map(), config()) :: {:ok, map()} | error()

Retrieve API details with the given ID.

see

https://auth0.com/docs/api/management/v2/resource-servers/get-resource-servers-by-id

Link to this function

get_resource_servers(params \\ %{}, config \\ %Config{})

View Source
@spec get_resource_servers(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve details of all APIs associated with your tenant.

see

https://auth0.com/docs/api/management/v2/resource-servers/get-resource-servers

Link to this function

get_role(id, config \\ %Config{})

View Source
@spec get_role(id(), config()) :: {:ok, map()} | error()

Retrieve details about a specific user role specified by ID.

see

https://auth0.com/docs/api/management/v2/roles/get-roles-by-id

Link to this function

get_role_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_role_permissions(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role.

see

https://auth0.com/docs/api/management/v2/roles/get-role-permission

Link to this function

get_role_users(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_role_users(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve list of users associated with a specific role.

see

https://auth0.com/docs/api/management/v2/roles/get-role-user

Link to this function

get_roles(params \\ %{}, config \\ %Config{})

View Source
@spec get_roles(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve detailed list of user roles created in your tenant.

see

https://auth0.com/docs/api/management/v2/roles/get-roles

Link to this function

get_rule(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_rule(id(), map(), config()) :: {:ok, map()} | error()

Retrieve rule details. Accepts a list of fields to include or exclude in the result.

see

https://auth0.com/docs/api/management/v2/rules/get-rules-by-id

Link to this function

get_rules(params \\ %{}, config \\ %Config{})

View Source
@spec get_rules(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve a filtered list of rules. Accepts a list of fields to include or exclude.

see

https://auth0.com/docs/api/management/v2/rules/get-rules

Link to this function

get_rules_configs(config \\ %Config{})

View Source
@spec get_rules_configs(config()) :: {:ok, [map()]} | error()

Retrieve rules config variable keys.

see

https://auth0.com/docs/api/management/v2/rules-configs/get-rules-configs

Link to this function

get_self_service_profile(id, config)

View Source
@spec get_self_service_profile(id(), config()) :: {:ok, map()} | error()

Retrieves a self-service profile by Id.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/get-self-service-profiles-by-id

Link to this function

get_self_service_profiles(params, config)

View Source
@spec get_self_service_profiles(map(), config()) :: {:ok, map()} | error()

Retrieves self-service profiles. Currently only one profile can be created per tenant.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/get-self-service-profiles

Link to this function

get_session(id, config \\ %Config{})

View Source
@spec get_session(id(), config()) :: {:ok, map()} | error()

Retrieve session information.

see

https://auth0.com/docs/api/management/v2/sessions/get-session

Link to this function

get_signing_key(kid, config \\ %Config{})

View Source
@spec get_signing_key(kid(), config()) :: {:ok, map()} | error()

Retrieve details of the application signing key with the given ID.

see

https://auth0.com/docs/api/management/v2/keys/get-signing-key

Link to this function

get_signing_keys(config \\ %Config{})

View Source
@spec get_signing_keys(config()) :: {:ok, [map()]} | error()

Retrieve details of all the application signing keys associated with your tenant.

see

https://auth0.com/docs/api/management/v2/keys/get-signing-keys

Link to this function

get_template_for_universal_login(config \\ %Config{})

View Source
@spec get_template_for_universal_login(config()) ::
  {:ok, map() | String.t()} | error()

Get template for New Universal Login Experience

see

https://auth0.com/docs/api/management/v2/branding/get-universal-login

Link to this function

get_tenant_setting(params \\ %{}, config \\ %Config{})

View Source
@spec get_tenant_setting(map(), config()) :: {:ok, map()} | error()

Retrieve tenant settings. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/tenants/tenant-settings-route

Link to this function

get_user(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user(id(), map(), config()) :: {:ok, map()} | error()

Retrieve user details. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/users/get-users-by-id

Link to this function

get_user_authentication_method(id, authentication_method_id, config)

View Source
@spec get_user_authentication_method(id(), authentication_method_id(), config()) ::
  {:ok, map()} | error()

Get an authentication method by ID

see

https://auth0.com/docs/api/management/v2/users/get-authentication-methods-by-authentication-method-id

Link to this function

get_user_block(params \\ %{}, config \\ %Config{})

View Source
@spec get_user_block(map(), config()) :: {:ok, map()} | error()

Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email).

see

https://auth0.com/docs/api/management/v2/user-blocks/get-user-blocks

Link to this function

get_user_block_by_user_id(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_block_by_user_id(id(), map(), config()) :: {:ok, map()} | error()

Retrieve details of all Brute-force Protection blocks for the user with the given ID.

see

https://auth0.com/docs/api/management/v2/user-blocks/get-user-blocks-by-id

Link to this function

get_user_enrollments(id, config \\ %Config{})

View Source
@spec get_user_enrollments(id(), config()) :: {:ok, [map()]} | error()

Retrieve the first multi-factor authentication enrollment that a specific user has confirmed.

see

https://auth0.com/docs/api/management/v2/users/get-enrollments

Link to this function

get_user_logs(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_logs(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve log events for a specific user.

see

https://auth0.com/docs/api/management/v2/users/get-logs-by-user

Link to this function

get_user_organizations(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_organizations(id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

Retrieve list of the specified user's current Organization memberships. User must be specified by user ID.

see

https://auth0.com/docs/api/management/v2/users/get-user-organizations

Link to this function

get_user_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_permissions(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve all permissions associated with the user.

see

https://auth0.com/docs/api/management/v2/users/get-permissions

Link to this function

get_user_refresh_tokens(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_refresh_tokens(id(), map(), config()) :: {:ok, map()} | error()

Retrieve details for a user's refresh tokens.

see

https://auth0.com/docs/api/management/v2/users/get-refresh-tokens-for-user

Link to this function

get_user_roles(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_roles(id(), map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve detailed list of all user roles currently assigned to a user.

see

https://auth0.com/docs/api/management/v2/users/get-user-roles

Link to this function

get_user_sessions(id, params \\ %{}, config \\ %Config{})

View Source
@spec get_user_sessions(id(), map(), config()) :: {:ok, map()} | error()

Retrieve details for a user's sessions.

see

https://auth0.com/docs/api/management/v2/users/get-sessions-for-user

Link to this function

get_users(params \\ %{}, config \\ %Config{})

View Source
@spec get_users(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve details of users.

see

https://auth0.com/docs/api/management/v2/users/get-users

Link to this function

get_users_by_email(params \\ %{}, config \\ %Config{})

View Source
@spec get_users_by_email(map(), config()) :: {:ok, [map()]} | error()

Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it.

see

https://auth0.com/docs/api/management/v2/users-by-email/get-users-by-email

Link to this function

import_encryption_key(kid, params, config)

View Source
@spec import_encryption_key(kid(), map(), config()) :: {:ok, map()} | error()

Import wrapped key material and activate encryption key.

see

https://auth0.com/docs/api/management/v2/keys/post-encryption-key

Link to this function

invalidate_user_remembered_browser_for_multifactor(id, config \\ %Config{})

View Source
@spec invalidate_user_remembered_browser_for_multifactor(id(), config()) ::
  {:ok, String.t()} | error()

Invalidate all remembered browsers across all authentication factors for a user.

see

https://auth0.com/docs/api/management/v2/users/post-invalidate-remember-browser

Link to this function

list_branding_phone_providers(params, config)

View Source
@spec list_branding_phone_providers(map(), config()) :: {:ok, map()} | error()

Retrieve a list ofphone providers details set for a Tenant. A list of fields to include or exclude may also be specified.

see

https://auth0.com/docs/api/management/v2/branding/get-branding-phone-providers

Link to this function

list_branding_phone_templates(params, config)

View Source
@spec list_branding_phone_templates(map(), config()) :: {:ok, map()} | error()

Get a list of phone notification templates

see

https://auth0.com/docs/api/management/v2/branding/get-phone-templates

Link to this function

list_credentials(client_id, config \\ %Config{})

View Source
@spec list_credentials(client_id(), config()) :: {:ok, [map()]} | error()

Get the details of a client credential.

see

https://auth0.com/docs/api/management/v2/clients/get-credentials

Link to this function

list_guardian_policies(config \\ %Config{})

View Source
@spec list_guardian_policies(config()) :: {:ok, list()} | error()

Retrieve the multi-factor authentication (MFA) policies configured for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/get-policies

Link to this function

list_user_authentication_methods(id, params, config)

View Source
@spec list_user_authentication_methods(id(), map(), config()) ::
  {:ok, [map()] | map()} | error()

Retrieve detailed list of authentication methods associated with a specified user.

see

https://auth0.com/docs/api/management/v2/users/get-authentication-methods

Link to this function

modify_organization(id, params \\ %{}, config \\ %Config{})

View Source
@spec modify_organization(id(), map(), config()) :: {:ok, map()} | error()

Update the details of a specific Organization, such as name and display name, branding options, and metadata.

see

https://auth0.com/docs/api/management/v2/organizations/patch-organizations-by-id

Link to this function

modify_organization_connection(id, connection_id, params \\ %{}, config \\ %Config{})

View Source
@spec modify_organization_connection(
  id(),
  connection_id(),
  map(),
  config()
) :: {:ok, map()} | error()

Modify the details of a specific connection currently enabled for an Organization.

see

https://auth0.com/docs/api/management/v2/organizations/patch-enabled-connections-by-connection-id

Link to this function

patch_email_template(template_name, params \\ %{}, config \\ %Config{})

View Source
@spec patch_email_template(template_name(), map(), config()) :: {:ok, map()} | error()

Modify an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/patch-email-templates-by-template-name

Link to this function

patch_guardian_apns_configuration(params, config)

View Source
@spec patch_guardian_apns_configuration(map(), config()) :: {:ok, map()} | error()

Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/patch-apns

Link to this function

patch_guardian_aws_sns_configuration(params \\ %{}, config \\ %Config{})

View Source
@spec patch_guardian_aws_sns_configuration(
  map(),
  config()
) :: {:ok, map()} | error()

Configure the AWS SNS push notification provider configuration (subscription required).

see

https://auth0.com/docs/api/management/v2/guardian/patch-sns

Link to this function

patch_guardian_fcm_configuration(params, config)

View Source
@spec patch_guardian_fcm_configuration(map(), config()) :: {:ok, map()} | error()

Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/patch-fcm

Link to this function

patch_guardian_fcmv1_configuration(params, config)

View Source
@spec patch_guardian_fcmv1_configuration(map(), config()) :: {:ok, map()} | error()

Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/patch-fcmv-1

Link to this function

regenerate_user_recovery_code(id, config \\ %Config{})

View Source
@spec regenerate_user_recovery_code(id(), config()) :: {:ok, map()} | error()

Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate.

see

https://auth0.com/docs/api/management/v2/users/post-recovery-code-regeneration

Link to this function

rekey_encryption_key(config)

View Source
@spec rekey_encryption_key(config()) :: {:ok, String.t()} | error()

Perform rekeying operation on the key hierarchy.

see

https://auth0.com/docs/api/management/v2/keys/post-encryption-rekey

Link to this function

remove_blocked_ip(ip, config \\ %Config{})

View Source
@spec remove_blocked_ip(ip(), config()) :: {:ok, String.t()} | error()

Remove a block imposed by Suspicious IP Throttling for the given IP address.

see

https://auth0.com/docs/api/management/v2/anomaly/delete-ips-by-id

Link to this function

remove_role_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec remove_role_permissions(id(), map(), config()) :: {:ok, String.t()} | error()

Remove one or more permissions from a specified user role.

see

https://auth0.com/docs/api/management/v2/roles/delete-role-permission-assignment

Link to this function

remove_user_permissions(id, params \\ %{}, config \\ %Config{})

View Source
@spec remove_user_permissions(id(), map(), config()) :: {:ok, String.t()} | error()

Remove permissions from a user.

see

https://auth0.com/docs/api/management/v2/users/delete-permissions

Link to this function

remove_user_roles(id, params \\ %{}, config \\ %Config{})

View Source
@spec remove_user_roles(id(), map(), config()) :: {:ok, String.t()} | error()

Remove one or more specified user roles assigned to a user.

see

https://auth0.com/docs/api/management/v2/users/delete-user-roles

Link to this function

reset_branding_phone_template(id, params, config)

View Source
@spec reset_branding_phone_template(id(), map(), config()) :: {:ok, map()} | error()

Resets a phone notification template values

see

https://auth0.com/docs/api/management/v2/branding/reset-phone-template

Link to this function

revoke_session(id, config \\ %Config{})

View Source
@spec revoke_session(id(), config()) :: {:ok, String.t()} | error()

Revokes a session by ID and all associated refresh tokens.

see

https://auth0.com/docs/api/management/v2/sessions/revoke-session

Link to this function

revoke_signing_key(kid, config \\ %Config{})

View Source
@spec revoke_signing_key(kid(), config()) :: {:ok, map()} | error()

Revoke the application signing key with the given ID.

see

https://auth0.com/docs/api/management/v2/keys/put-signing-keys

Link to this function

revoke_user_selected_resources(id, params \\ %{}, config \\ %Config{})

View Source
@spec revoke_user_selected_resources(id(), map(), config()) ::
  {:ok, String.t()} | error()

Revokes selected resources related to a user (sessions, refresh tokens, ...).

see

https://auth0.com/docs/api/management/v2/users/user-revoke-access

Link to this function

rollback_action_version(action_id, id, params \\ %{}, config \\ %Config{})

View Source
@spec rollback_action_version(action_id(), id(), map(), config()) ::
  {:ok, map()} | error()

Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.

see

https://auth0.com/docs/api/management/v2/actions/post-deploy-draft-version

Link to this function

rotate_client_secret(id, config \\ %Config{})

View Source
@spec rotate_client_secret(id(), config()) :: {:ok, map()} | error()

Rotate a client secret.

see

https://auth0.com/docs/api/management/v2/clients/post-rotate-secret

Link to this function

rotate_signing_key(config \\ %Config{})

View Source
@spec rotate_signing_key(config()) :: {:ok, map()} | error()

Rotate the application signing key of your tenant.

see

https://auth0.com/docs/api/management/v2/keys/post-signing-keys

Link to this function

send_job_verification_email(params \\ %{}, config \\ %Config{})

View Source
@spec send_job_verification_email(map(), config()) :: {:ok, map()} | error()

Send an email to the specified user that asks them to click a link to verify their email address.

see

https://auth0.com/docs/api/management/v2/jobs/post-verification-email

Link to this function

set_guardian_policies(params \\ %{}, config \\ %Config{})

View Source
@spec set_guardian_policies(map(), config()) :: {:ok, list()} | error()

Set multi-factor authentication (MFA) policies for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-policies

Link to this function

set_prompt_custom_text(prompt, language, params \\ %{}, config \\ %Config{})

View Source
@spec set_prompt_custom_text(prompt(), language(), map(), config()) ::
  {:ok, String.t()} | error()

Set custom text for a specific prompt. Existing texts will be overwritten.

see

https://auth0.com/docs/api/management/v2/prompts/put-custom-text-by-language

Link to this function

set_prompt_partials(prompt, params \\ %{}, config \\ %Config{})

View Source
@spec set_prompt_partials(prompt(), map(), config()) :: {:ok, String.t()} | error()

Set template partials for a prompt

see

https://auth0.com/docs/api/management/v2/prompts/put-partials

Link to this function

set_rules_config(key, params \\ %{}, config \\ %Config{})

View Source
@spec set_rules_config(key(), map(), config()) :: {:ok, map()} | error()

Sets a rules config variable.

see

https://auth0.com/docs/api/management/v2/rules-configs/put-rules-configs-by-key

Link to this function

set_template_for_universal_login(params \\ %{}, config \\ %Config{})

View Source
@spec set_template_for_universal_login(map(), config()) :: {:ok, String.t()} | error()

Update the Universal Login branding template.

see

https://auth0.com/docs/api/management/v2/branding/put-universal-login

Link to this function

test_action(id, params \\ %{}, config \\ %Config{})

View Source
@spec test_action(id(), map(), config()) :: {:ok, map()} | error()

Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected.

see

https://auth0.com/docs/api/management/v2/actions/post-test-action

Link to this function

test_branding_phone_provider(id, params, config)

View Source
@spec test_branding_phone_provider(id(), map(), config()) :: {:ok, map()} | error()

Send a test phone notification for the configured provider

see

https://auth0.com/docs/api/management/v2/branding/try-phone-provider

Link to this function

test_branding_phone_template(id, params, config)

View Source
@spec test_branding_phone_template(id(), map(), config()) :: {:ok, map()} | error()

Send a test phone notification for the configured template

see

https://auth0.com/docs/api/management/v2/branding/try-phone-template

Link to this function

unblock_user_block(params \\ %{}, config \\ %Config{})

View Source
@spec unblock_user_block(map(), config()) :: {:ok, String.t()} | error()

Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email).

see

https://auth0.com/docs/api/management/v2/user-blocks/delete-user-blocks

Link to this function

unblock_user_block_by_user_id(id, config \\ %Config{})

View Source
@spec unblock_user_block_by_user_id(id(), config()) :: {:ok, String.t()} | error()

Remove all Brute-force Protection blocks for the user with the given ID.

see

https://auth0.com/docs/api/management/v2/user-blocks/delete-user-blocks-by-id

Link to this function

update_action(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_action(id(), map(), config()) :: {:ok, map()} | error()

Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed.

see

https://auth0.com/docs/api/management/v2/actions/patch-action

Link to this function

update_action_trigger_bindings(trigger_id, params \\ %{}, config \\ %Config{})

View Source
@spec update_action_trigger_bindings(
  trigger_id(),
  map(),
  config()
) :: {:ok, map()} | error()

Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed.

see

https://auth0.com/docs/api/management/v2/actions/patch-bindings

Link to this function

update_attack_protection_breached_password_detection(params \\ %{}, config \\ %Config{})

View Source
@spec update_attack_protection_breached_password_detection(
  map(),
  config()
) :: {:ok, map()} | error()

Update details of the Breached Password Detection configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/patch-breached-password-detection

Link to this function

update_attack_protection_brute_force_protection(params \\ %{}, config \\ %Config{})

View Source
@spec update_attack_protection_brute_force_protection(
  map(),
  config()
) :: {:ok, map()} | error()

Update the Brute-force Protection configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/patch-brute-force-protection

Link to this function

update_attack_protection_suspicious_ip_throttling(params \\ %{}, config \\ %Config{})

View Source
@spec update_attack_protection_suspicious_ip_throttling(
  map(),
  config()
) :: {:ok, map()} | error()

Update the details of the Suspicious IP Throttling configuration of your tenant.

see

https://auth0.com/docs/api/management/v2/attack-protection/patch-suspicious-ip-throttling

Link to this function

update_branding(params \\ %{}, config \\ %Config{})

View Source
@spec update_branding(map(), config()) :: {:ok, map()} | error()

Update branding settings.

see

https://auth0.com/docs/api/management/v2/branding/patch-branding

Link to this function

update_branding_phone_provider(id, params, config)

View Source
@spec update_branding_phone_provider(id(), map(), config()) :: {:ok, map()} | error()

Update an phone provider.

see

https://auth0.com/docs/api/management/v2/branding/update-phone-provider

Link to this function

update_branding_phone_template(id, params, config)

View Source
@spec update_branding_phone_template(id(), map(), config()) :: {:ok, map()} | error()

Update a phone notification template

see

https://auth0.com/docs/api/management/v2/branding/update-phone-template

Link to this function

update_branding_theme(theme_id, params \\ %{}, config \\ %Config{})

View Source
@spec update_branding_theme(theme_id(), map(), config()) :: {:ok, map()} | error()

Update branding theme.

see

https://auth0.com/docs/api/management/v2/branding/patch-branding-theme

Link to this function

update_client(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_client(id(), map(), config()) :: {:ok, map()} | error()

Updates a client's settings

see

https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id

Link to this function

update_client_grant(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_client_grant(id(), map(), config()) :: {:ok, map()} | error()

Update a client grant.

see

https://auth0.com/docs/api/management/v2/client-grants/patch-client-grants-by-id

Link to this function

update_connection(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_connection(id(), map(), config()) :: {:ok, map()} | error()

Update details for a specific connection, including option properties for identity provider configuration.

see

https://auth0.com/docs/api/management/v2/connections/patch-connections-by-id

Link to this function

update_connection_scim_configuration(id, params, config)

View Source
@spec update_connection_scim_configuration(id(), map(), config()) ::
  {:ok, map()} | error()

Update a scim configuration by its connectionId.

see

https://auth0.com/docs/api/management/v2/connections/patch-scim-configuration

Link to this function

update_credential(client_id, credential_id, params, config \\ %Config{})

View Source
@spec update_credential(client_id(), credential_id(), map(), config()) ::
  {:ok, map()} | error()

Change a client credential you previously created. May be enabled or disabled.

see

https://auth0.com/docs/api/management/v2/clients/patch-credentials-by-credential-id

Link to this function

update_custom_domain_configuration(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_custom_domain_configuration(id(), map(), config()) ::
  {:ok, map()} | error()

Update a custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/patch-custom-domains-by-id

Link to this function

update_email_provider(params \\ %{}, config \\ %Config{})

View Source
@spec update_email_provider(map(), config()) :: {:ok, map()} | error()

Update an email provider. The credentials object requires different properties depending on the email provider (which is specified using the name property):

see

https://auth0.com/docs/api/management/v2/emails/patch-provider

Link to this function

update_email_template(template_name, params \\ %{}, config \\ %Config{})

View Source
@spec update_email_template(template_name(), map(), config()) ::
  {:ok, map()} | error()

Update an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/put-email-templates-by-template-name

Link to this function

update_flow(id, params, config)

View Source
@spec update_flow(id(), map(), config()) :: {:ok, map()} | error()

Update a flow.

see

https://auth0.com/docs/api/management/v2/flows/patch-flows-by-id

Link to this function

update_form(id, params, config)

View Source
@spec update_form(id(), map(), config()) :: {:ok, map()} | error()

Update a form.

see

https://auth0.com/docs/api/management/v2/forms/patch-forms-by-id

Link to this function

update_guardian_apns_configuration(params, config)

View Source
@spec update_guardian_apns_configuration(map(), config()) :: {:ok, map()} | error()

Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-apns

Link to this function

update_guardian_aws_sns_configuration(params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_aws_sns_configuration(
  map(),
  config()
) :: {:ok, map()} | error()

Configure the AWS SNS push notification provider configuration (subscription required).

see

https://auth0.com/docs/api/management/v2/guardian/put-sns

Link to this function

update_guardian_factor(name, params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_factor(name(), map(), config()) :: {:ok, map()} | error()

Update the status (i.e., enabled or disabled) of a specific multi-factor authentication factor.

see

https://auth0.com/docs/api/management/v2/guardian/put-factors-by-name

Link to this function

update_guardian_fcm_configuration(params, config)

View Source
@spec update_guardian_fcm_configuration(map(), config()) :: {:ok, map()} | error()

Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-fcm

Link to this function

update_guardian_fcmv1_configuration(params, config)

View Source
@spec update_guardian_fcmv1_configuration(map(), config()) :: {:ok, map()} | error()

Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-fcmv-1

Link to this function

update_guardian_notification_provider(params, config)

View Source
@spec update_guardian_notification_provider(map(), config()) :: {:ok, map()} | error()

Modify the push notification provider configured for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-pn-providers

Link to this function

update_guardian_phone_configuration(params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_phone_configuration(map(), config()) :: {:ok, map()} | error()

Update phone provider configuration

see

https://auth0.com/docs/api/management/v2/guardian/put-phone-providers

Link to this function

update_guardian_phone_factor(params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_phone_factor(map(), config()) :: {:ok, map()} | error()

Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-message-types

Link to this function

update_guardian_phone_template(params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_phone_template(map(), config()) :: {:ok, map()} | error()

Customize the messages sent to complete phone enrollment and verification (subscription required).

see

https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates

Link to this function

update_guardian_twilio_phone_configuration(params \\ %{}, config \\ %Config{})

View Source
@spec update_guardian_twilio_phone_configuration(
  map(),
  config()
) :: {:ok, map()} | error()

Update the configuration of a Twilio phone provider that has been set up in your tenant.

see

https://auth0.com/docs/api/management/v2/guardian/put-twilio

Link to this function

update_hook(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_hook(id(), map(), config()) :: {:ok, map()} | error()

Update an existing hook.

see

https://auth0.com/docs/api/management/v2/hooks/patch-hooks-by-id

Link to this function

update_hook_secrets(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_hook_secrets(id(), map(), config()) :: {:ok, map()} | error()

Update an existing hook.

see

https://auth0.com/docs/api/management/v2/hooks/patch-hooks-by-id

Link to this function

update_log_stream(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_log_stream(id(), map(), config()) :: {:ok, map()} | error()

Update a log stream.

see

https://auth0.com/docs/api/management/v2/log-streams/patch-log-streams-by-id

Link to this function

update_prompt_setting(params \\ %{}, config \\ %Config{})

View Source
@spec update_prompt_setting(map(), config()) :: {:ok, map()} | error()

Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features.

see

https://auth0.com/docs/api/management/v2/prompts/patch-prompts

Link to this function

update_resource_server(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_resource_server(id(), map(), config()) :: {:ok, map()} | error()

Change an existing API setting by resource server ID.

see

https://auth0.com/docs/api/management/v2/resource-servers/patch-resource-servers-by-id

Link to this function

update_role(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_role(id(), map(), config()) :: {:ok, map()} | error()

Modify the details of a specific user role specified by ID.

see

https://auth0.com/docs/api/management/v2/roles/patch-roles-by-id

Link to this function

update_rule(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_rule(id(), map(), config()) :: {:ok, map()} | error()

Update an existing rule.

see

https://auth0.com/docs/api/management/v2/rules/patch-rules-by-id

Link to this function

update_self_service_profile(id, params, config)

View Source
@spec update_self_service_profile(id(), map(), config()) :: {:ok, map()} | error()

Updates a self-service profile.

see

https://auth0.com/docs/api/management/v2/self-service-profiles/patch-self-service-profiles-by-id

Link to this function

update_tenant_setting(params \\ %{}, config \\ %Config{})

View Source
@spec update_tenant_setting(map(), config()) :: {:ok, map()} | error()

Update settings for a tenant.

see

https://auth0.com/docs/api/management/v2/tenants/patch-settings

Link to this function

update_user(id, params \\ %{}, config \\ %Config{})

View Source
@spec update_user(id(), map(), config()) :: {:ok, map()} | error()

Update a user.

see

https://auth0.com/docs/api/management/v2/users/patch-users-by-id

Link to this function

update_user_authentication_method(id, authentication_method_id, params, config)

View Source
@spec update_user_authentication_method(
  id(),
  authentication_method_id(),
  map(),
  config()
) ::
  {:ok, map()} | error()

Modify the authentication method with the given ID from the specified user.

see

https://auth0.com/docs/api/management/v2/users/patch-authentication-methods-by-authentication-method-id

Link to this function

update_user_authentication_methods(id, params, config)

View Source
@spec update_user_authentication_methods(id(), map(), config()) ::
  {:ok, [map()]} | error()

Replace the specified user authentication methods with supplied values.

see

https://auth0.com/docs/api/management/v2/users/put-authentication-methods

Link to this function

verify_custom_domain(id, config \\ %Config{})

View Source
@spec verify_custom_domain(id(), config()) :: {:ok, map()} | error()

Run the verification process on a custom domain.

see

https://auth0.com/docs/api/management/v2/custom-domains/post-verify