---
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

---

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