Retrieve all active sign-in sessions for the current user, including device information and location data.
curl --request GET \
--url https://{deploymentHost}/me/signins
{
"status": 200,
"message": "",
"data": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"device_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"device_type": "desktop",
"browser": "Chrome",
"os": "macOS"
},
"location": {
"ip_address": "203.0.113.1",
"country": "United States",
"city": "San Francisco",
"region": "California"
},
"current_session": true,
"created_at": "2024-01-01T12:00:00Z",
"last_activity": "2024-01-15T14:30:00Z"
},
{
"id": "signin_123456789",
"user_id": "user_456789123",
"device_info": {
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15",
"device_type": "mobile",
"browser": "Safari",
"os": "iOS"
},
"location": {
"ip_address": "198.51.100.42",
"country": "United States",
"city": "New York",
"region": "New York"
},
"current_session": false,
"created_at": "2024-01-10T08:00:00Z",
"last_activity": "2024-01-14T22:15:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}
Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.
Active sessions retrieved successfully
The response is of type object
.
curl --request GET \
--url https://{deploymentHost}/me/signins
{
"status": 200,
"message": "",
"data": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"device_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"device_type": "desktop",
"browser": "Chrome",
"os": "macOS"
},
"location": {
"ip_address": "203.0.113.1",
"country": "United States",
"city": "San Francisco",
"region": "California"
},
"current_session": true,
"created_at": "2024-01-01T12:00:00Z",
"last_activity": "2024-01-15T14:30:00Z"
},
{
"id": "signin_123456789",
"user_id": "user_456789123",
"device_info": {
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15",
"device_type": "mobile",
"browser": "Safari",
"os": "iOS"
},
"location": {
"ip_address": "198.51.100.42",
"country": "United States",
"city": "New York",
"region": "New York"
},
"current_session": false,
"created_at": "2024-01-10T08:00:00Z",
"last_activity": "2024-01-14T22:15:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}