Auth0 Node.js SDK - v5.0.0
    Preparing search index...

    Class ManagementClient

    Auth0 Management API client wrapper.

    Provides a high-level interface to Auth0's Management API with automatic token management, telemetry, and Auth0-specific configuration.

    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret'
    });
    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    clientId: 'your-client-id',
    clientAssertionSigningKey: 'your-private-key'
    });
    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    token: 'your-static-token' // or () => getAccessToken()
    });
    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
    withCustomDomainHeader: 'auth.example.com' // Auto-applies to whitelisted endpoints
    });
    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
    withCustomDomainHeader: 'auth.example.com', // Custom domain header logic
    fetcher: async (args) => {
    console.log('Making request:', args.url); // Custom logging
    return fetch(args.url, { ...args }); // Custom fetch implementation
    }
    });

    Hierarchy (View Summary)

    Index

    Management API

    Accessors

    • get actions(): Actions

      Returns Actions

    • get clients(): Clients

      Returns Clients

    • get flows(): Flows

      Returns Flows

    • get forms(): Forms

      Returns Forms

    • get hooks(): Hooks

      Returns Hooks

    • get jobs(): Jobs

      Returns Jobs

    • get logs(): Logs

      Returns Logs

    • get prompts(): Prompts

      Returns Prompts

    • get roles(): Roles

      Returns Roles

    • get rules(): Rules

      Returns Rules

    • get stats(): Stats

      Returns Stats

    • get tickets(): Tickets

      Returns Tickets

    • get users(): Users

      Returns Users

    • get anomaly(): Anomaly

      Returns Anomaly

    • get emails(): Emails

      Returns Emails

    • get groups(): Groups

      Returns Groups

    • get keys(): Keys

      Returns Keys

    • get tenants(): Tenants

      Returns Tenants

    Properties

    _actions: undefined | Actions
    _branding: undefined | Branding
    _clientGrants: undefined | ClientGrants
    _clients: undefined | Clients
    _connections: undefined | Connections
    _customDomains: undefined | CustomDomains
    _deviceCredentials: undefined | DeviceCredentials
    _emailTemplates: undefined | EmailTemplates
    _eventStreams: undefined | EventStreams
    _flows: undefined | Flows
    _forms: undefined | Forms
    _userGrants: undefined | UserGrants
    _hooks: undefined | Hooks
    _jobs: undefined | Jobs
    _logStreams: undefined | LogStreams
    _logs: undefined | Logs
    _networkAcls: undefined | NetworkAcls
    _organizations: undefined | Organizations
    _prompts: undefined | Prompts
    _refreshTokens: undefined | RefreshTokens
    _resourceServers: undefined | ResourceServers
    _roles: undefined | Roles
    _rules: undefined | Rules
    _rulesConfigs: undefined | RulesConfigs
    _selfServiceProfiles: undefined | SelfServiceProfiles
    _sessions: undefined | Sessions
    _stats: undefined | Stats
    _supplementalSignals: undefined | SupplementalSignals
    _tickets: undefined | Tickets
    _tokenExchangeProfiles: undefined | TokenExchangeProfiles
    _userBlocks: undefined | UserBlocks
    _users: undefined | Users
    _anomaly: undefined | Anomaly
    _attackProtection: undefined | AttackProtection
    _emails: undefined | Emails
    _groups: undefined | Groups
    _guardian: undefined | Guardian
    _keys: undefined | Keys
    _riskAssessments: undefined | RiskAssessments
    _tenants: undefined | Tenants
    _verifiableCredentials: undefined | VerifiableCredentials