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

# Get current session context

> Return the current principal's account, user identity, and auth type in a single call — the app shell's session bootstrap. `auth_type` is `api_key` when authenticated via `X-API-Key` (no user) or `clerk` when authenticated via a Clerk session JWT (with the user sub-object).



## OpenAPI

````yaml /openapi.json get /me
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
security: []
paths:
  /me:
    get:
      tags:
        - me
      summary: Get current session context
      description: >-
        Return the current principal's account, user identity, and auth type in
        a single call — the app shell's session bootstrap. `auth_type` is
        `api_key` when authenticated via `X-API-Key` (no user) or `clerk` when
        authenticated via a Clerk session JWT (with the user sub-object).
      operationId: get_me_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '422':
          description: Validation error (see body for field details)
          content:
            application/json:
              example:
                detail: Validation error
        '429':
          description: Rate limit exceeded — retry after the Retry-After header
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
          content:
            application/json:
              example:
                detail: 'Rate limit exceeded: 100 per 1 minute'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    MeResponse:
      properties:
        account:
          $ref: '#/components/schemas/MeAccount'
        user:
          anyOf:
            - $ref: '#/components/schemas/MeUser'
            - type: 'null'
        auth_type:
          type: string
          title: Auth Type
      type: object
      required:
        - account
        - auth_type
      title: MeResponse
      description: Session context for the current principal, composed from AuthContext.
      example:
        account:
          clerk_org_id: org_a1b2c3d4
          id: acct_a1b2c3d4
          name: Acme Corp
          slug: acme
          status: active
        auth_type: clerk
        user:
          email: ops@acme.example
          id: user_a1b2c3d4
          role: admin
    MeAccount:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        clerk_org_id:
          type: string
          title: Clerk Org Id
        status:
          type: string
          title: Status
      type: object
      required:
        - id
        - name
        - slug
        - clerk_org_id
        - status
      title: MeAccount
      description: The caller's account, projected for the session bootstrap.
    MeUser:
      properties:
        id:
          type: string
          title: Id
        role:
          type: string
          title: Role
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
      type: object
      required:
        - id
        - role
      title: MeUser
      description: The Clerk user identity — present only on the Clerk JWT auth path.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````