Get user presence
Get the presence status for a specific user.
This endpoint is most useful for embedding data about a user's
presence status in other sites (E.g. an employee directory). Full
Zulip clients like mobile/desktop apps will want to use the main
presence endpoint, which returns data for all active users in the
organization, instead.
GET https://zulip.dioco.io/api/v1/users/{email}/presence
See
Zulip's developer documentation
for details on the data model for presence in Zulip.
Usage examples
#!/usr/bin/env python3
import zulip
# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")
# Get presence information for "iago@zulip.com"
result = client.get_user_presence('iago@zulip.com')
print(result)
curl -sSX GET -G https://zulip.dioco.io/api/v1/users/iago@zulip.com/presence \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
Parameters
email required in path
Example: iago@zulip.com
The email address of the user whose presence you want to fetch.
Response
Return values
Example response
A typical successful JSON response may look like:
{
"msg": "",
"presence": {
"ZulipMobile": {
"status": "active",
"timestamp": 1522687421
},
"aggregated": {
"status": "active",
"timestamp": 1532697622
},
"website": {
"status": "active",
"timestamp": 1532697622
}
},
"result": "success"
}