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

# Get current session

> Returns the current session with user details and organization context



## OpenAPI

````yaml api-docs/app-team/auth.json get /v1/auth/session
openapi: 3.1.1
info:
  title: Auth API
  version: 1.0.0
  description: >-
    Auth API supporting the k0rdent Enterprise authentication and authorization
    service
servers:
  - url: http://localhost:8000
    description: Local Development
security: []
paths:
  /v1/auth/session:
    get:
      tags:
        - Session
      summary: Get current session
      description: Returns the current session with user details and organization context
      responses:
        '200':
          description: Current session data
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      session:
                        type: object
                        nullable: true
                        properties:
                          token:
                            type: string
                          expiresAt:
                            type: string
                            nullable: true
                            format: date-time
                        required:
                          - token
                          - expiresAt
                      user:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          email:
                            type: string
                            format: email
                          name:
                            type: string
                            nullable: true
                          image:
                            type: string
                            nullable: true
                          emailVerified:
                            type: boolean
                          createdAt:
                            type: string
                            nullable: true
                            format: date-time
                          role:
                            type: string
                            nullable: true
                        required:
                          - id
                          - email
                          - name
                      currentOrganization:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          slug:
                            type: string
                          logo:
                            type: string
                            nullable: true
                          metadata:
                            type: object
                            nullable: true
                            additionalProperties:
                              nullable: true
                          createdAt:
                            type: string
                            nullable: true
                            format: date-time
                          updatedAt:
                            type: string
                            nullable: true
                            format: date-time
                        required:
                          - id
                          - name
                          - slug
                      organizationMemberships:
                        type: array
                        items:
                          type: object
                          properties:
                            organizationId:
                              type: string
                            organizationName:
                              type: string
                            organizationSlug:
                              type: string
                            role:
                              type: string
                              enum:
                                - owner
                                - admin
                                - member
                          required:
                            - organizationId
                            - organizationName
                            - organizationSlug
                            - role
                    required:
                      - session
                      - user
                      - currentOrganization
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - data
                  - meta
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - error
                  - meta

````