Sorry about that, @brian_mullins .
This is what happens you have too many things going on.
I know that I pull the information for a report that is fetched in real-time that shows the last 5 Canvas logins. It's not clean code, so I thought I could save some time looking in the API. I found one that I thought was it, but obviously wasn't it.
I went to the code and dug through it to find the right call. I'm actually using and it's the Authentications Log API that I'm using.
Query by login
GET /api/v1/audit/authentication/logins/:login_id
It accepts a start_time and end_time. I'm not sure how far they go back (some event logs only go back a year), but if you are interested in just the last one, you could put the per_page=1 parameter on there to only get the last one.
Edit -- I'm having a bad day.
I actually use the Query by User endpoint of the same API. I guess it depends on whether you know the user ID or the login ID.
GET /api/v1/audit/authentication/users/:user_id
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.