CloudTrax Presence Reporting API



The CloudTrax Presence Reporting API delivers real-time presence data from Open Mesh access points to customers, enabling applications like presence analytics, CRM tools and custom software.

The presence data is gathered from the probe request frames sent out by clients that the APs can see, and is sent to your server based on your configuration in CloudTrax.

This feature is disabled on all networks by default. Only enable it if you wish to use presence data for third-party solutions or your own custom software. Note that this feature will be part of a paid package of services in the future. 


To configure the CloudTrax Presence Reporting API, you must have at least one or more access points running firmware version 6.1 or newer.

Navigate to Configuration > Advanced to enable and configure the CloudTrax Presence Reporting API.

You must set the following attributes:

Server Location: Where you would like the presence data to be forwarded. 

This is the secret used to generate a SHA256 HMAC signature, over the payload (the JSON message). The signature is then added to a custom HTTP header (“Signature”) in the POST message.

Rate:  How often the data is sent to the server. 

Data Format

The data sent consists of the following elements:

node_mac  MAC address of the Access Point reporting the presence data. 
mac  MAC address of the end client device for which presence data is being reported.
count  Number of times the specific end client device was seen by the AP, within the time period specified by the “First seen” and “Last seen” timestamps.
min_signal Lowest RSSI reading on the AP for the specific client within the time period specified by the “First seen” and “Last seen” timestamps.
max_signal Highest RSSI reading on the AP for the specific client within the time period specified by the “First seen” and “Last seen” timestamps. 
avg_signal  Average RSSI reading on the AP for the specific client within the time period specified by the “First seen” and “Last seen” timestamps. 
last_seen_signal Reported RSSI reading on the AP for when this client was last seen
first_seen Timestamp of the first time this client was seen, during the reporting period
last_seen Timestamp of the last time this client was seen, during the reporting period
associated Indication of whether the client is associated to the AP or not.

The data is sent via a HTTP POST message to the server. No data is stored locally on the APs or on CloudTrax, so if the server specified in the configuration is down or otherwise unreachable, the HTTP POST will fail and cause the data to be lost. The CloudTrax UI will not provide any notification of such failure.

Sample data


Note for PHP users

PHP will not handle raw JSON POST data when processed using the $_POST
variable. To be able to access raw JSON data, you may have to use
"php://input" instead. Here is a sample script that shows you how:

// The code below uses php://input instead of $_POST as
// the data we are processing is not html form based post,
// but rather raw json that $_POST does not process.
$postdata = file_get_contents("php://input") . "\n\n";
file_put_contents('mydata.txt', serialize($postdata), FILE_APPEND | LOCK_EX);

Probe request frequency

Depending on the client device's state, the number of probe requests it sends will vary. If the device is in a power-save mode, it may reduce the number of probe requests to once per minute(or longer). If it's already associated with a WiFi network, it may not send any probe requests again until the user manually brings up the WiFi networks list on the device.

Presence reporting partners

The CloudTrax Presence Reporting API is currently being used by a number of Open Mesh partners to deliver analytics, marketing and enterprise reporting solutions. You can find a list of partners here

Have more questions? Submit a request


  • Avatar
    Marcos Santos

    I've been configuring an own solution to get this information into my server.

    I'm very interested on this, so, it will be available for anyone in the future? I mean, everyone will have access to the paid package services?

  • Avatar
    Bryan Patterson

    Marcos - The Presence Analytics API is currently available to anyone running 6.1 firmware. You'll find the server settings on the Advanced tab in Cloudtrax. The API is currently in beta and we will charge a small fee for it in the future upon final release.

  • Avatar

    If anyone is interested, I wrote a PHP app that can collect this info. It is easy for anyone to setup, as there is a Heroku Install Button.
    The data is collected into a MySQL DB, which is also configured for you. The app installs on a free account, but depending on your requirements, you might need to upgrade your database size. You can also reconfigure the app to point to your own DB if you choose, you'd just need to replicate the schema.

    There is also a Ruby/MongoDB implementation linked from the URL above.

    Eric Dahl

  • Avatar

    Hi guys,

    Any chance you will be expanding presence API with additional keys? It would be very helpful if posts contained a bit more data. For example each probe request could contain:
    : "ssid" - if a client is associated, pass the SSID name in addition to "associated:true"
    : "client_manufacturer" and/or "client_os" - OS is available in Cloudtrax Dashboard

    It would also be helpful if we could add custom data/descriptors to any AP in the dashboard. For example, we would like to add some custom meta data to our APs, and presence post could include that in addition to "network_id" and "node_mac", so that we don't have to do a lookup on our end with every post.


Powered by Zendesk