List a team member sessions
LogsGET /team/members/{id}/sessions
Returns, in a data array, the live sessions the member holds in the caller's team, with device name, user agent, IP address, last activity, creation and expiry times. is_current marks the caller's own session. Returns 404 when the member is not active in this team; requires the team read permission.
Parameters
idMembership ID of the team member, as returned by the members list.
Returns
200 List a team member sessions
Show attributes
dataShow child attributes
iddevice_nameParsed label such as "Chrome 128 on macOS" or "Mobile app on Android"
user_agentip_addresslast_active_atcreated_atexpires_atis_current
Permissions business:team:read · Roles: admin, owner
curl -X GET "$BUSINESS_API/team/members/{id}/sessions" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$BUSINESS_API/team/members/{id}/sessions", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/team/members/{id}/sessions",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/team/members/{id}/sessions", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "ses_2c2ff4Evh00LjE4JZcmdbIifJSI",
"device_name": "Ana Matsinhe",
"user_agent": "user agent",
"ip_address": "Av. Julius Nyerere 1420, Maputo",
"last_active_at": "2026-11-19T09:30:00Z",
"created_at": "2026-11-19T09:30:00Z",
"expires_at": "2026-11-19T09:30:00Z",
"is_current": true
}
]
}