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

# Stream a workspace-scoped assistant turn



## OpenAPI

````yaml /openapi.json post /api/v1/chat
openapi: 3.0.3
info:
  title: ai-cmo.dev Services API
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/chat:
    post:
      summary: Stream a workspace-scoped assistant turn
      operationId: streamWorkspaceChat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatRequest'
      responses:
        '200':
          description: AI SDK UI message stream
          content:
            text/event-stream:
              schema:
                type: string
      security:
        - cookieAuth: []
        - bearerAuth:
            - chat:write
components:
  schemas:
    ChatRequest:
      type: object
      properties:
        workspace:
          type: string
        threadId:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 200
              role:
                type: string
                enum:
                  - system
                  - user
                  - assistant
              parts:
                type: array
                items:
                  type: object
                  additionalProperties: {}
              metadata: {}
            required:
              - id
              - role
              - parts
            additionalProperties: false
      required:
        - workspace
        - threadId
        - messages
      additionalProperties: false
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: geo.session
      description: Signed HttpOnly browser session cookie
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: gp_live_<43 base64url characters>
      description: Workspace-bound machine API key

````