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

# Roleplay Chat



## OpenAPI

````yaml POST /roleplay/chat
openapi: 3.0.0
info:
  title: Closer Intellect AI API
  description: >-
    The core API documentation and interactive playground for Closer Intellect
    AI.
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /roleplay/chat:
    post:
      tags:
        - roleplay
      summary: Stream AI chat response (SSE)
      operationId: RoleplayController_chat
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleplayChatDto'
      responses:
        '200':
          description: 'Streams SSE deltas {delta: string}'
      security:
        - bearer: []
components:
  schemas:
    RoleplayChatDto:
      type: object
      properties:
        scenarioId:
          type: string
          example: budget-objection
          enum:
            - budget-objection
            - not-decision-maker
            - competitor-comparison
            - bad-timing
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ChatMessageDto'
      required:
        - messages
    ChatMessageDto:
      type: object
      properties: {}
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````