Last login for machine-to-machine client_credentials

We are creating clients (applications) via the management API to allow our customers to generate machine-to-machine credentials to use our API. This is all working as expected but we would like to see a timestamp of the last time a client was used to login.

I don’t see that this value is available in the body returned from the api/v2/clients/{client_id} endpoint. Is this value available from an existing Auth0 API endpoint? If not our plan is to add this as an application metadata field and update that value each time the client is used to get an access_token in an Action.

Hey there!

Unfortunately you’re right and it cannot be obtained through our Management API. I think your workaround will do the job but I will highly encourage you to place product feedback regarding that using our Feedback category here:

1 Like