# Get user active session

**GET /api/users/{userId}/sessions/{sessionId}**

Retrieve a non-expired session for the user by session ID, including session metadata and interaction details when available.


## Servers
- Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.)


## Authentication methods
- O auth2


## Parameters

### Path parameters

- **userId** (string)
  The unique identifier of the user.

- **sessionId** (string)
  The unique identifier of the session.




## Responses
### 200
Return a non-expired session of the user.

#### Body: application/json (object)
- **payload** (object)

- **lastSubmission** (object | null)

- **clientId** (string | null)

- **accountId** (string | null)

- **expiresAt** (number)


### 400
Bad Request

### 401
Unauthorized

### 403
Forbidden

### 404
Not Found

### 500
Internal Server Error


[Powered by Bump.sh](https://bump.sh)
