Skip to main content
80486DX4
Visitor III
July 29, 2022
Solved

REST API Presence call

  • July 29, 2022
  • 1 reply
  • 2083 views

We created a REST API Administrator on a FortiGate 80E (6.4.6) to monitor certain access point data.  The programmer trying to make this work has requested the following:

 

"We need the proper syntax for a remote server making a REST API call to retrieve an active list of devices (by mac address) from the Fortinet controller.  Some systems call this a “presence API” call."

 

I hope that makes sense.  Can anyone help?

 

Thank you!!

Best answer by abelio

Hi,

I don't know nothing about 'presence api call'  , but you could start with the basics, retrieving the devices and the filter the output by mac address


i.e:

 

https://<your_FGT_IP:port>/api/v2/monitor//wifi/client/?access_token=<your_API_token>


If you want filter by MAC:  &format=mac

 

That should do the job

 

 

 

1 reply

abelio
SuperUser
abelioAnswer
SuperUser
July 29, 2022

Hi,

I don't know nothing about 'presence api call'  , but you could start with the basics, retrieving the devices and the filter the output by mac address


i.e:

 

https://<your_FGT_IP:port>/api/v2/monitor//wifi/client/?access_token=<your_API_token>


If you want filter by MAC:  &format=mac

 

That should do the job

 

 

 

80486DX4
80486DX4Author
Visitor III
August 1, 2022

Thank you, Abel!  I have forwarded on your response on to the programmer.  I'll let you know if that is what he needed.