Last login details of user using API

Connect with the Workers Community on the Developers Discord,
Do we have any API that gives last login details of the users?

Hi there,

I’m not sure if this is what your looking for, but you can use our audit logs API - Cloudflare API Documentation

Ensuring that the hide_user_logs is set to false should show you all the login events of users that are in the account you share.

Hope this helps!

Thanks. I can see login events as well in account audit logs.
Just one more thing, i can see in documentation that we can fetch a max of 1000 records per page. And there’s no info related to pagination. On postman too i can see that in response we don’t get any info related to next page. Does that mean this API provides records to a last of 1000 events only?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.