Sample - Slack Web API
GET/users.getPresence

Get user presence

Retrieves presence information for the authenticated user or another specified user. Omit user to retrieve the authenticated user's presence, or provide a user ID to inspect another user's current presence.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
tokenstringrequired
Authentication token with the `users:read` scope.
userstringoptional
User ID whose presence to retrieve; defaults to the authenticated user when omitted.

2 status codes
200Returns the requested user's presence, including the required `presence` value and, where available, online, away, connection, and activity information.
auto_awaybooleanoptional
connection_countintegeroptional
last_activityintegeroptional
manual_awaybooleanoptional
okbooleanrequired
Allowed:true
onlinebooleanoptional
presencestringrequired
defaultTypical error response
errorstringrequired
okbooleanrequired
Allowed:false

Error handling

An authentication token with the users:read scope is required. When user is provided, it must identify the user whose presence you want to retrieve; otherwise the authenticated user's presence is returned.