---
title: "Get Session"
method: GET
path: "/v1/sessions/{id}"
tags: ["BackendService"]
---

# Get Session

`GET /v1/sessions/{id}`

Get a Session.

## Path parameters

- `id` string, required

## Response `200`

OK

- GetSessionResponse
  - `session` Session — Represents a Session for a logged-in User.
    - `id` string — The Session ID. Starts with `session_...`.
    - `userId` string — The User this Session belongs to.
    - `revoked` boolean — Whether the Session is revoked.
    - `createTime` string, date-time — When the Session was created.
    - `lastActiveTime` string, date-time — When the Session was last active.
    - `expireTime` string, date-time — When the Session expires.
    - `primaryAuthFactor` integer — The primary authentication factor the end user used to log in.

## Other responses

- `400` — API Error
- `401` — API Error
- `403` — API Error
- `404` — API Error

## Changes

- **2025-04-04** `513710f96a94` — 1 info
  - added the optional property `session/allOf[#/components/schemas/Session]/primaryAuthFactor` to the response with the `200` status
- **2025-03-11** `e3ac0347dfbe` — 1 breaking, 6 warning, 1 info
  - the `session` response's property type changed from `object` to no type for status `200`
  - removed the optional property `session/createTime` from the response with the `200` status
  - removed the optional property `session/expireTime` from the response with the `200` status
  - removed the optional property `session/id` from the response with the `200` status
  - …4 more
- **2025-03-05** `aae16339e1e1` — 4 breaking, 8 warning
  - the `details/items/` response's property type changed from `object` to no type for status `400`
  - the `details/items/` response's property type changed from `object` to no type for status `401`
  - the `details/items/` response's property type changed from `object` to no type for status `403`
  - the `details/items/` response's property type changed from `object` to no type for status `404`
  - …8 more
- **2025-03-04** `b9fc18a0eac3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/tesseral-labs/apis/backendservice-api/changes/v1/sessions/:id/get.md)

---

[API](https://skmtc.dev/tesseral-labs/apis/backendservice-api.md) · [All operations](https://skmtc.dev/tesseral-labs/apis/backendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tesseral-labs/backendservice-api/revisions/fe83f78ae20a/schema)
