Valyourise Logo

ValYouRise

DevelopmentApi

Stream AI workspace chat

Streams assistant output, tool activity, and completion events for a workspace AI chat as server-sent events.

POST
/api/workspaces/{workspaceId}/ai/chat

Streams assistant output, tool activity, and completion events for a workspace AI chat as server-sent events.

PAT<token>

Personal Access Token

In: header

Path Parameters

workspaceId*string

Request Body

application/json

prompt*string
Length1 <= length <= 4000
conversationId?string
[key: string]?never

Response Body

text/event-stream

curl -X POST "https://loading/api/workspaces/string/ai/chat" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'

{
  "type": "text",
  "data": {
    "content": "Drafting an objective for your workspace."
  }
}

Empty
Empty
Empty
Empty