# List Sessions

## GET /v1/users/{uid}/sessions

> Lists all sessions for the user identified by {uid}.<br>

```json
{"openapi":"3.1.1","info":{"title":"Pod API","version":"20.17.1"},"servers":[{"url":"http://yourpodURL.symphony.com/pod"}],"paths":{"/v1/users/{uid}/sessions":{"get":{"summary":"Lists all sessions for the user identified by {uid}.\n","parameters":[{"schema":{"type":"string"},"name":"uid","description":"The identifier of the user whose sessions are to be listed.","in":"path","required":true},{"schema":{"type":"string"},"name":"sessionToken","description":"Session authentication token.","in":"header","required":true}],"tags":["Users"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UserSessions"}}}},"204":{"description":"No user found."},"400":{"description":"Client error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized: Session tokens invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden: Caller lacks necessary entitlement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error, see response body for further details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"V1UserSessions":{"description":"V1 Detailed Sessions Record.","type":"object","properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/V1Session"}}}},"V1Session":{"description":"V1 Detailed Session record.","type":"object","properties":{"sessionId":{"type":"string","description":"The id of the user session"},"clientIp":{"type":"string","description":"The ip address of the session initiator"},"userId":{"type":"integer","format":"int64","description":"The user id of the session initiator"},"userAgent":{"type":"string","description":"The user agent of the session"},"browser":{"type":"string","description":"The browser section of the user agent"},"os":{"type":"string","description":"The os section of the user agent"},"device":{"type":"string","description":"The device section of the user agent"},"deviceHash":{"type":"string","description":"A hash uniquely identifying the device of the requester"},"creationTime":{"type":"integer","format":"int64","description":"The timestamp of the creation time the user session"},"expirationDelay":{"type":"integer","format":"int64","description":"The timestamp of the expiry time of the user session"}}},"Error":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rest-api.symphony.com/main/user-sessions/list-sessions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
