Fortinet Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
80486DX4
New Contributor

REST API Presence call

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!!

1 Solution
abelio
Valued Contributor

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

 

 

 

regards


__ Abel

View solution in original post

3 REPLIES 3
abelio
Valued Contributor

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

 

 

 

regards


__ Abel

80486DX4

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

80486DX4

Sounds like this did the trick!  Thank you so much!