Skip to content

Chat + stream ​

POST https://api.gommo.net/api/v2/chat — upstream requires non-empty messages. Form body: application/x-www-form-urlencoded.

Chat (JSON response) ​

powershell
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$messages = '[{"role":"user","text":"Say hello in one short sentence."}]'
$form = "action=chat&access_token=$env:TOKEN&domain=$domain&query=Say hello in one short sentence.&messages=$messages"

Invoke-RestMethod -Method POST `
  -Uri "https://api.gommo.net/api/v2/chat" `
  -ContentType "application/x-www-form-urlencoded" `
  -Body $form

Optional: pass sessionId from a prior response for multi-turn.

Stream (SSE) ​

Use curl -N to read the stream on the terminal:

powershell
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$messages = '[{"role":"user","text":"Tell a very short story."}]'
$form = "action=stream&access_token=$env:TOKEN&domain=$domain&query=Tell a very short story.&messages=$messages"

curl.exe -N -X POST "https://api.gommo.net/api/v2/chat" `
  -H "Content-Type: application/x-www-form-urlencoded" `
  -d $form

Playground ​

Playground — worker Platform → Chat (search chat) or ?embed=1&worker=chat → action stream → Run request. See Chat reference.

Self-host (operators only) ​

When you deploy Gommo Developer locally — Deploy → Self-host (advanced).

Next ​