Skip to main content
GET
https://{tenantDomain}/api/v2
/
stats
/
active-users
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Stats.GetActiveUsersCount(
        context.TODO(),
    )
}
100

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Number of active users successfully retrieved.

Number of active users in the last 30 days.