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

# Create Session

> Create a new conversation session for the authenticated user.

# IDOR AUDIT PASS — user_id is sourced from the API key, never the body.



## OpenAPI

````yaml post /api/v1/sessions
openapi: 3.1.0
info:
  title: EDN Memory Engine
  version: 0.1.0
servers:
  - description: EDN evaluation endpoint
    url: https://api.tensorpro.ai
security:
  - EDNApiKey: []
paths:
  /api/v1/sessions:
    post:
      summary: Create Session
      description: |-
        Create a new conversation session for the authenticated user.

        # IDOR AUDIT PASS — user_id is sourced from the API key, never the body.
      operationId: create_session_api_v1_sessions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSessionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSessionResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    CreateSessionRequest:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
      title: CreateSessionRequest
      type: object
    CreateSessionResponse:
      properties:
        created_at:
          title: Created At
          type: string
        id:
          title: Id
          type: string
        title:
          title: Title
          type: string
        user_id:
          title: User Id
          type: string
      required:
        - id
        - title
        - created_at
        - user_id
      title: CreateSessionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    EDNApiKey:
      description: >-
        EDN API key presented as 'Bearer <key>' in the Authorization header.
        Create and manage keys from the Console.
      in: header
      name: Authorization
      type: apiKey

````