Recent searches


No recent searches

Get Agents last login date using API



Posted Jan 28, 2021

Hello all,

I want to get a json response with the list of Agents who did not login to they're account in the past 30 days.

I found some information in the documentation but not exactly what i need.

Could someone help me with some information on what endpoint should i use for get and how to add a filter to retrieve only the agents that not logged in recently ?

Thank you!

Cristi


1

1

1 comment

Hello,

You should be able to get the last login information for all agents by calling api/v2/users.json?role=agent endpoint. There is a parameter called last_login_at which will give you the last login date and time of the agents. Unfortunately, we can't get filtered results from search endpoint as last_login_date is not a searchable user property. So, you will have to retrieve all results and filter down by yourself.

Cheers,

Korak

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post