Skip to content

StreamsController_create

POST
/api/streams
curl --request POST \
--url https://api.streams-ai.com/api/streams \
--header 'Content-Type: application/json' \
--data '{ "title": "example", "visibility": "public", "memberUserIds": [], "initialMessage": { "content": { "blocks": [ { "type": "rich_text", "elements": [ { "type": "paragraph", "direction": "ltr", "children": [ { "type": "text", "text": "example", "style": { "bold": true, "italic": true, "strikethrough": true, "code": true } } ] } ] } ] } } }'
Media typeapplication/json
object
title
required
string
>= 1 characters <= 255 characters
visibility
string
default: private
Allowed values: public private
memberUserIds
Array<string>
default: <= 100 items
initialMessage
object
content
required
object
blocks
required
Array<object>
>= 1 items
One of:
object
type
required
string
Allowed values: rich_text
elements
required
Array<object>
One of:
object
type
required
string
Allowed values: paragraph
direction
string
Allowed values: ltr rtl
children
required
Array<object>
One of:
object
type
required
string
Allowed values: text
text
required
string
style
object
bold
boolean
italic
boolean
strikethrough
boolean
code
boolean