Skip to content
Follow yggy on LinkedInFollow @yggy_tech on X

Stream Chat with Knowledge Graph (org-wide, AI SDK Compatible)

POST
/api/v1/chat/stream
curl --request POST \
--url https://api.yggy.tech/api/v1/chat/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "input": [ { "id": "example", "role": "user", "parts": [ "example" ], "metadata": { "commandId": "search" } } ], "options": { "tier": "fast", "conversationId": "example", "userId": "example", "chatId": "example", "projectId": "example", "graphContext": { "nodes": [ { "id": "example", "label": "example", "type": "example" } ], "edges": [ { "source": "example", "target": "example", "label": "example" } ] }, "roomContext": { "roomId": "example", "roomTitle": "example", "boardId": "example", "boardTitle": "example", "title": "example" }, "seedMode": "first-run" } }'

Stream org-wide chat responses. Same SSE contract as the project stream.

Media type application/json
object
input
required
Any of:
string
options
object
tier
string
default: balanced
Allowed values: fast balanced accurate
conversationId
string
userId
string
chatId
string
projectId
string
graphContext
object
nodes
Array<object>
object
id
required
string
label
required
string
type
required
string
edges
Array<object>
object
source
required
string
target
required
string
label
string
roomContext
object
roomId
required
string
<= 80 characters
roomTitle
string
<= 500 characters
boardId
string
<= 80 characters
boardTitle
string
<= 200 characters
title
string
<= 500 characters
seedMode
string
Allowed values: first-run

SSE stream of chat chunks

Media type text/event-stream

Unauthorized

Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
string
Example
{
"success": false
}

Project access denied

Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
string
Example
{
"success": false
}

Internal server error

Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
string
Example
{
"success": false
}