---
title: "Bootstrap Browser Route Session"
method: GET
path: "/routes/session"
tags: ["routes"]
---

# Bootstrap Browser Route Session

`GET /routes/session`

Create or refresh the current browser's public Routes session.

## Response `200`

Successful Response

- BrowserRouteSessionResponse — Bootstrap response containing the in-memory CSRF token.
  - `session_id` string, required
  - `created_at` string, date-time, required
  - `last_seen_at` string, date-time, required
  - `expires_at` string, date-time, required
  - `source_route_hash` string, nullable
  - `source_route_slug` string, nullable
  - `source_public_route_id` string, nullable
  - `source_session_id` string, nullable
  - `csrf_token` string, required

---

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