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

# Create Session

> Create a persistent conversation session. Scale plan and above.



## OpenAPI

````yaml POST /v1/sessions
openapi: 3.1.0
info:
  title: Stewrd API
  description: >-
    Managed AI agent infrastructure. Bring your own LLM key, send a message, get
    finished work back.
  version: 1.0.0
  contact:
    name: Stewrd Support
    email: team@stewrd.dev
    url: https://stewrd.dev
servers:
  - url: https://api.stewrd.dev
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/sessions:
    post:
      tags:
        - Sessions
      summary: Create a session
      description: >-
        Create a persistent conversation session for multi-turn interactions.
        Requires Scale plan or above.
      operationId: createSession
      responses:
        '201':
          description: Session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden — plan does not support sessions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: plan_restricted
                  message: Persistent sessions require the Scale plan or higher.
        '429':
          description: Too many active sessions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: session_limit_reached
                  message: Maximum 10 active sessions per project.
components:
  schemas:
    SessionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique session identifier.
        object:
          type: string
          enum:
            - session
          description: Object type, always `session`.
        status:
          type: string
          enum:
            - active
          description: Session status.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            message:
              type: string
              description: Human-readable error description.
            docs:
              type: string
              format: uri
              description: Link to relevant documentation.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key in the format `sk-stw_...`. Get yours at
        [stewrd.dev/dashboard](https://stewrd.dev/dashboard).

````