---
title: "Get Session"
method: GET
path: "/session"
---

# Get Session

`GET /session`

Bootstrap anchor for mobile. The dependency does all the work: mints
a guest row if nothing is present, reuses an existing one, or returns
the authenticated user. Response carries X-Guest-Id (or
X-Guest-Id-Cleared on conversion) so the mobile client can sync
secure-store with the server's view.

## Response `200`

Successful Response

- SessionResponse — Tiny payload returned by `GET /session`. Used as a bootstrap anchor: mobile calls it on cold start so the backend can mint a guest row (via `get_current_user_or_guest`) and return the ID via `X-Guest-Id`, before any domain endpoints fire in parallel. `has_trips` lets the web app pick the post-login landing page (trips list vs new-trip chat) without a second round-trip to `/trips`.
  - `user_id` string, uuid4, required
  - `is_guest` boolean, required
  - `has_trips` boolean, required

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
