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

# Current user, organisation, permissions, team, and projects

> Returns the authenticated session bundle: user profile (from Kinde or mock), organisation, permissions, team id resolved from the Kinde orgCode, and the projects the team owns. `devMode: true` + a top-level `role` indicate the mock-auth branch and are only emitted in non-production environments.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/auth/me
openapi: 3.1.0
info:
  title: no-tickets API
  version: 0.1.0
  description: REST API for the no-tickets team dashboard.
servers: []
security: []
paths:
  /v1/auth/me:
    get:
      tags:
        - auth
      summary: Current user, organisation, permissions, team, and projects
      description: >-
        Returns the authenticated session bundle: user profile (from Kinde or
        mock), organisation, permissions, team id resolved from the Kinde
        orgCode, and the projects the team owns. `devMode: true` + a top-level
        `role` indicate the mock-auth branch and are only emitted in
        non-production environments.
      operationId: getCurrentUser
      responses:
        '200':
          description: User context
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  devMode:
                    type: boolean
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      email:
                        type: string
                      givenName:
                        anyOf:
                          - type: string
                          - type: 'null'
                      familyName:
                        anyOf:
                          - type: string
                          - type: 'null'
                      picture:
                        anyOf:
                          - type: string
                          - type: 'null'
                    required:
                      - id
                      - email
                      - givenName
                      - familyName
                      - picture
                    additionalProperties: false
                  organization:
                    anyOf:
                      - type: object
                        properties:
                          orgCode:
                            type: string
                        required:
                          - orgCode
                        additionalProperties: false
                      - type: 'null'
                  permissions:
                    type: array
                    items:
                      type: string
                  role:
                    type: string
                  teamId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  projects:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                      required:
                        - id
                        - name
                      additionalProperties: false
                required:
                  - devMode
                  - user
                  - organization
                  - permissions
                  - teamId
                  - projects
                additionalProperties: false
        '401':
          description: No session cookie
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - sessionAuth: []
components:
  securitySchemes:
    sessionAuth:
      type: apiKey
      in: cookie
      name: session

````