> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seamind.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Current Session

> Authz primitives for the current session.

Cheap, JWT-only pass-through. The frontend uses this to drive
`useEntitlement`, role-based nav, and feature gating without
triggering the heavier `/me` query (which hits the DB for profile,
org, and assignments). Both endpoints exist on parallel React Query
keys so they can be cached with different staleness.



## OpenAPI

````yaml /openapi.json get /api/v1/shared/users/me/session
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/shared/users/me/session:
    get:
      tags:
        - shared-users
      summary: Get Current Session
      description: |-
        Authz primitives for the current session.

        Cheap, JWT-only pass-through. The frontend uses this to drive
        `useEntitlement`, role-based nav, and feature gating without
        triggering the heavier `/me` query (which hits the DB for profile,
        org, and assignments). Both endpoints exist on parallel React Query
        keys so they can be cached with different staleness.
      operationId: get_current_session_api_v1_shared_users_me_session_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionInfoDTO'
      security:
        - HTTPBearer: []
components:
  schemas:
    SessionInfoDTO:
      properties:
        role:
          type: string
          title: Role
        roles:
          items:
            type: string
          type: array
          title: Roles
        permissions:
          items:
            type: string
          type: array
          title: Permissions
        featureFlags:
          items:
            type: string
          type: array
          title: Featureflags
      type: object
      required:
        - role
        - roles
        - permissions
        - featureFlags
      title: SessionInfoDTO
      description: |-
        Authz primitives for the current session, surfaced to the frontend.

        Lightweight pass-through of JWT claims relevant to client-side gating
        (entitlements + role + permissions). Cached aggressively in the FE.
        Display data lives on `/me`, not here.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````