---
title: "GET /sessions"
method: GET
path: "/sessions"
tags: ["sessions"]
---

# GET /sessions

`GET /sessions`

Returns a list of `Session` objects.

## Query parameters

- `resource_id` string, uuid, required
- `user_id` string

## Response `200`

The sessions associated with a resource.

- SessionsList
  - `next` string, nullable — The cursor with which to continue pagination if additional result pages exist.
  - `previous` string, nullable — The cursor used to obtain the current result page.
  - `results` Session[]
    - `connection_id` string, uuid, required — The ID of the connection.
    - `user_id` string, uuid, required — The ID of the user.
    - `resource_id` string, uuid, required — The ID of the resource.
    - `access_level` ResourceAccessLevel, required — # Access Level Object ### Description The `AccessLevel` object is used to represent the level of access that a principal has. The "default" access level is a `AccessLevel` object whose fields are all empty strings. ### Usage Example View the `AccessLevel` of a resource/user or resource/group pair to see the level of access granted to the resource.
      - `access_level_name` string, required — The human-readable name of the access level.
      - `access_level_remote_id` string, required — The machine-readable identifier of the access level.
    - `expiration_date` string, date-time, required — The day and time the user's access will expire.

---

[API](https://skmtc.net/opal/apis/opal-api.md) · [All operations](https://skmtc.net/opal/apis/opal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opal/opal-api/revisions/13b58df96d40/schema)
