1 つの Session thread に限定したイベントをストリーミングします。
GET /api/v1/cloud/sessions/{session_id}/threads/{thread_id}/stream
1 つの thread の公開イベントを Server-Sent Events としてストリーミングします。
パスパラメータ
| パラメータ | 型 | 説明 |
|---|---|---|
session_id | string | sess_ プレフィックス付きの Session ID |
thread_id | string | sthr_ プレフィックス付きの Thread ID |
ヘッダー
| ヘッダー | 必須 | 説明 |
|---|---|---|
Authorization | はい | Bearer $QODER_PAT |
Accept | いいえ | text/event-stream を使用します |
Last-Event-ID | いいえ | 指定すると、ストリームは指定したイベント ID の後から再開します。イベント ID が存在しない、アーカイブ済み、非公開の内部イベントを指す、またはこの thread に属していない場合は 400 を返します。 |
リクエスト例
ストリーム形式
: heartbeat というコメント行を送信します。
エラー
| HTTP | タイプ | トリガー条件 |
|---|---|---|
| 400 | invalid_request_error | Last-Event-ID がこの Session/thread 内の有効な公開イベントを特定できない(イベントが存在しない、アーカイブ済み、非公開の内部イベント、またはこの thread に属していない) |
| 401 | authentication_error | PAT が無効または期限切れ |
| 404 | not_found_error | Session または thread が存在しない |