> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get v1panelauthsession

> The current operator, their effective permissions, and the CSRF token. The panel renders from these permissions, which are the same set the API enforces.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml get /v1/panel/auth/session
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/auth/session:
    get:
      tags:
        - panel
      description: >-
        The current operator, their effective permissions, and the CSRF token.
        The panel renders from these permissions, which are the same set the API
        enforces.
      operationId: getPanelSession
      responses:
        '200':
          description: Current session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelSession'
        '401':
          $ref: '#/components/responses/Problem'
components:
  schemas:
    PanelSession:
      type: object
      required:
        - account
        - permissions
        - csrfToken
        - sessionId
        - expiresAt
      properties:
        account:
          $ref: '#/components/schemas/AdminAccount'
        permissions:
          type: array
          items:
            type: string
          description: >-
            Effective permissions. The panel renders from these; the API
            enforces the same set.
        csrfToken:
          type: string
        sessionId:
          type: string
          format: uuid
        expiresAt:
          type: string
          format: date-time
        remainingRecoveryCodes:
          type: integer
          minimum: 0
    AdminAccount:
      type: object
      required:
        - id
        - email
        - displayName
        - status
        - locale
        - timezone
        - roles
        - totpEnabled
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        displayName:
          type: string
        status:
          $ref: '#/components/schemas/AdminStatus'
        locale:
          $ref: '#/components/schemas/AdminLocale'
        timezone:
          type: string
        roles:
          type: array
          items:
            $ref: '#/components/schemas/AdminRole'
        totpEnabled:
          type: boolean
        lastLoginAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
    AdminStatus:
      type: string
      enum:
        - active
        - suspended
        - disabled
    AdminLocale:
      type: string
      enum:
        - en
        - ru
    AdminRole:
      type: string
      enum:
        - owner
        - administrator
        - support
        - finance
        - marketing
        - auditor
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.