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

# Send a chat message

> Send a message to a space and receive a streaming response via Server-Sent Events.



## OpenAPI

````yaml /api-reference/openapi.json post /api/workspaces/{workspaceId}/chat
openapi: 3.1.0
info:
  title: Friday Platform API
  description: >-
    The Friday daemon HTTP API for managing spaces, agents, sessions, and
    automations.
  version: 1.0.0
servers:
  - url: http://localhost:18080
    description: Local Friday daemon
security: []
tags:
  - name: Health
    description: Daemon health and status
  - name: Spaces
    description: Space management
  - name: Chat
    description: Conversational AI
  - name: Sessions
    description: Execution session management
  - name: Signals
    description: Trigger management
  - name: Agents
    description: Agent discovery and inspection
  - name: Artifacts
    description: File and data artifact management
  - name: Configuration
    description: Daemon configuration
paths:
  /api/workspaces/{workspaceId}/chat:
    post:
      tags:
        - Chat
      summary: Send a chat message
      description: >-
        Send a message to a space and receive a streaming response via
        Server-Sent Events.
      operationId: createWorkspaceChat
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
                - message
              properties:
                id:
                  type: string
                  description: Chat ID (create new or continue existing)
                message:
                  type: object
                  properties:
                    role:
                      type: string
                      example: user
                    content:
                      type: string
                      example: What can you help me with?
      responses:
        '200':
          description: Streaming response (SSE)
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-Sent Events stream
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl -X POST http://localhost:18080/api/workspaces/abc123/chat \
              -H 'Content-Type: application/json' \
              -d '{
                "id": "chat-001",
                "message": {
                  "role": "user",
                  "content": "What can you help me with?"
                }
              }'

````