POST
ListDeviceSessions
ListDeviceSessions returns revocable sessions created through device login.
/api.v1.auth.AuthService/ListDeviceSessions Bearer required01
Request
ListDeviceSessionsRequest
ListDeviceSessionsRequestapi.v1.auth.ListDeviceSessionsRequest0 fields
List Device Sessions Request message.
No fields — send an empty JSON object.
{}02
Response
ListDeviceSessionsResponse
ListDeviceSessionsResponseapi.v1.auth.ListDeviceSessionsResponse1 fields
List Device Sessions Response message.
{
"sessions": [
{
"id": "string value",
"deviceType": "UNSPECIFIED",
"deviceName": "string value",
"createdAtUnix": "1",
"lastUsedAtUnix": "1",
"expiresAtUnix": "1"
}
]
}03
Referenced models
1 nested message types
DeviceSessionapi.v1.auth.DeviceSession6 fields
Device Session message.
idstringId value.
deviceTypeDeviceTypeDevice Type value.
deviceNamestringDevice Name value.
createdAtUnixint64Created At Unix value.
lastUsedAtUnixint64Last Used At Unix value.
expiresAtUnixint64Expires At Unix value.
04
Error handling
Common failure codes
unauthenticatedThe Bearer token is missing or invalid.
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.