Check present users
Retrieve UUIDs and state information (hereNow) for subscribed devices on a specific channel.
| Path Parameters |
|---|
sub_key string — REQUIREDYour app's subscribe key from Admin Portal. Example:
|
channel string — REQUIREDThe channel ID to perform the operation on. In the context of Presence, this parameter relates to a channel for which the new state will be applied or the existing state will be returned. Verify that channels are comprised of valid characters. You can use a single channel or multiple channels separated by a comma. Example:
|
| Query Parameters |
|---|
channel-group stringComma-separated list of channel group names to perform the operation on. In the context of Presence, this parameter relates to channel group name(s) to which you subscribe. You may subscribe to channels, channels and channel groups, or just channel groups. Note: Wildcard patterns (e.g., Example:
|
disable_uuids integerIf |
state integerIf Example:
|
limit integerLimit the number of results returned. Set |
offset integerStarting position of results to return, used for pagination. |
auth stringString which is either the auth key (Access Manager legacy) or a valid token (Access Manager) used to authorize the operation if access control is enabled. Example:
|
callback stringThe JSONP callback name to wrap the function in. Example:
|
uuid string — REQUIREDA UTF-8 encoded string of up to 92 characters used to identify the client. Example:
|
signature stringSignature used to verify that the request was signed with the secret key associated with the subscribe key. If Access Manager is enabled, either a valid authorization token or a signature are required. Check Access Manager documentation for details on how to compute the signature. |
timestamp integerUnix epoch timestamp used as a nonce for signature computation. Must have no more than ± 60 seconds offset from NTP.
Required if |
| Responses | ||||||
|---|---|---|---|---|---|---|
200OK
|
sub_key*channel*In the context of Presence, this parameter relates to a channel for which the new state will be applied or the existing state will be returned. Verify that channels are comprised of valid characters. You can use a single channel or multiple channels separated by a comma.
channel-groupIn the context of Presence, this parameter relates to channel group name(s) to which you subscribe. You may subscribe to channels, channels and channel groups, or just channel groups.
Note: Wildcard patterns (e.g.,
group.*) are not supported for channel groups. Use exact channel group names only.disable_uuids1, only occupancy numbers will be returned, without UUIDs and accompanying state info. If 0 or not provided, UUIDs will be returned with occupancy numbers.state1, accompanying state info for each UUID is returned. If 0 or not provided, state info is absent in the response.limit-1 for no limit (default). Max limit is 1000.offsetauthcallbackuuid*signatureIf Access Manager is enabled, either a valid authorization token or a signature are required.
Check Access Manager documentation for details on how to compute the signature.
timestampRequired if
signature parameter is supplied.status200message"OK"occupancy1uuidsitemsservice"Presence"{
"status": 200,
"message": "OK",
"occupancy": 1,
"uuids": [
"pn-4152c98f-0b60-404c-9719-c42dbf8fc246"
],
"service": "Presence"
}