Passer au contenu principal
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

Autorisations

Authorization
string
header
requis

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

Réponse

Number of active users successfully retrieved.

Number of active users in the last 30 days.