03-13-2025 04:34 AM
Hello All,
Trying to find out if there is any way to get the Last Contacted time of Enterprise agents?
Some web searches suggested a 'usage' endpoint in the API, but one must be a usage-based customer in order to use that endpoint. We are not.
I am hoping there is some secret handshake hidden in the API that will expose that Last Contacted time for a given Enterprise agent.
Thanks in advance
Solved! Go to Solution.
03-14-2025 03:39 PM
Hi @glasj2002 - I ran your question by our experts and they had some insight for you!
Yes, both https://api.thousandeyes.com/v7/agents
and https://api.thousandeyes.com/v7/agents/{agentId}
API endpoints have a lastSeen
attribute that shows the last time the agent made contact with the platform.
Let me know if you have any other questions, and welcome to our Community!
03-14-2025 03:39 PM
Hi @glasj2002 - I ran your question by our experts and they had some insight for you!
Yes, both https://api.thousandeyes.com/v7/agents
and https://api.thousandeyes.com/v7/agents/{agentId}
API endpoints have a lastSeen
attribute that shows the last time the agent made contact with the platform.
Let me know if you have any other questions, and welcome to our Community!
03-15-2025 01:41 AM
Wow. We have a fair number of agents. Previously, I had looked through many results from the 'agents' api endpoint - seeing agents with the state 'enabled' but no mention of lastSeen. It appeared to me that this datapoint was not included. This time, based on your reply - I went through many more results - determined to find this datapoint. 'Enabled' in not enough. I had not come across the results that mattered. There is an added datapoint, 'agentState' that shows up when the agent is not only Enabled but also 'online'. In those cases, there is a lastSeen datapoint. I feel foolish having made my determination in haste. Thank you for your reply, @Tyler Langston . Lesson learned.
03-17-2025 09:43 AM
Happy to help you out @glasj2002 - let us know if you run into any other questions as you work!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide