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

# Create Session



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workflow/playground/sessions
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/workflow/playground/sessions:
    post:
      tags:
        - workflow-playground
      summary: Create Session
      operationId: create_session_v1_workflow_playground_sessions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePlaygroundSessionRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlaygroundSessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreatePlaygroundSessionRequest:
      properties:
        catalog_slug:
          anyOf:
            - type: string
              maxLength: 128
              minLength: 1
            - type: 'null'
          title: Catalog Slug
        revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Revision Id
      type: object
      title: CreatePlaygroundSessionRequest
      description: >-
        Open a session against a catalog workflow (``catalog_slug``) or a DB
        revision

        (``revision_id``). Exactly one source must be supplied.
    PlaygroundSessionResponse:
      properties:
        session_id:
          type: string
          title: Session Id
        catalog_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Catalog Slug
        revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Revision Id
        graph:
          $ref: '#/components/schemas/src__workflow__playground__schemas__GraphMeta'
        current_step_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Step Id
        completed_steps:
          items:
            type: string
          type: array
          title: Completed Steps
        context_vars:
          additionalProperties: true
          type: object
          title: Context Vars
        step_count:
          type: integer
          title: Step Count
        last_signal:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Signal
        awaiting_approval:
          type: boolean
          title: Awaiting Approval
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - session_id
        - graph
        - current_step_id
        - completed_steps
        - context_vars
        - step_count
        - last_signal
        - created_at
      title: PlaygroundSessionResponse
      description: >-
        Session metadata returned by ``POST /sessions`` and ``GET
        /sessions/{id}``.


        Exactly one of ``catalog_slug`` / ``revision_id`` is set, reflecting
        which source

        the session was opened against.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    src__workflow__playground__schemas__GraphMeta:
      properties:
        name:
          type: string
          title: Name
        entry_node_id:
          type: string
          title: Entry Node Id
        persona:
          anyOf:
            - type: string
            - type: 'null'
          title: Persona
      type: object
      required:
        - name
        - entry_node_id
      title: GraphMeta
      description: The small graph descriptor surfaced to a client on session start / GET.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````