Passer au contenu principal
GET
/
agent-sessions
/
{session_id}
/
stream
Streaming des événements de session
import requests

url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/stream"

headers = {"X-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Autorisations

X-API-KEY
string
header
requis

En-têtes

X-End-User-ID
string | null

Paramètres de chemin

session_id
string<uuid>
requis

Paramètres de requête

token
string | null

Short-lived JWT token for authentication (alternative to header).

task_id
string | null

The ID of the task to stream. If omitted, streams the current or most recent task.

include_chunks
boolean
défaut:true

Whether to include partial content chunks in the stream.

Réponse

Successful Response