---
title: "Get session context"
method: GET
path: "/v1/sessions/{id}/context"
tags: ["Sessions"]
---

# Get session context

`GET /v1/sessions/{id}/context`

Fetches the context data of a specific session.

## Path parameters

- `id` string, uuid, required

## Response `200`

Session context data returned from a browser session.

- SessionContextResponse — Session context data returned from a browser session.
  - `cookies` object[] — Cookies to initialize in the session
    - `domain` string — The domain of the cookie
    - `expires` number — The expiration date of the cookie
    - `httpOnly` boolean — Whether the cookie is HTTP only
    - `name` string, required — The name of the cookie
    - `partitionKey` object — The partition key of the cookie
      - `hasCrossSiteAncestor` boolean, required — Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
      - `topLevelSite` string, required — The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
    - `path` string — The path of the cookie
    - `priority` 'Low' | 'Medium' | 'High' — The priority of the cookie
    - `sameParty` boolean — Whether the cookie is a same party cookie
    - `sameSite` 'Strict' | 'Lax' | 'None' — The same site attribute of the cookie
    - `secure` boolean — Whether the cookie is secure
    - `session` boolean — Whether the cookie is a session cookie
    - `size` number — The size of the cookie
    - `sourcePort` number — The source port of the cookie
    - `sourceScheme` 'Unset' | 'NonSecure' | 'Secure' — The source scheme of the cookie
    - `url` string — The URL of the cookie
    - `value` string, required — The value of the cookie
  - `indexedDB` object — Domain-specific indexedDB items to initialize in the session
  - `localStorage` object — Domain-specific localStorage items to initialize in the session
  - `sessionStorage` object — Domain-specific sessionStorage items to initialize in the session

## Other responses

- `404` — An error response from the API
- `500` — An error response from the API
- `502` — An error response from the API

## Changes

- **2026-06-07** `4985d7bcd32f` — 3 info
  - added the non-success response with the status `502`
  - added the optional property `linkToDocs` to the response with the `404` status
  - added the optional property `linkToDocs` to the response with the `500` status
- **2026-01-08** `97dcad9b050e` — 1 breaking, 4 info
  - added the pattern `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` to the `path` request parameter `id`
  - the response property `context/items/params` became required for the status `404`
  - the response property `context/items/params` became required for the status `500`
  - the response property `indexedDB/additionalProperties/items/data/items/records/items/key` became required for the status `200`
  - …1 more
- **2025-12-11** `6f8dc0942cdc` — 1 info
  - added the non-success response with the status `404`

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

---

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