プロジェクト内のすべてのワークスペースで耐久性がある会話セッションを、最近にアクティブになったものが先頭に表示される形式で一覧表示します。これらのセッションには、メッセージと実行するランが含まれています。これらは、予約されたサンドボックス キャパシティーを追跡するランタイム セッションとは別々です。次のページを取得するには、応答から next_cursor をカーソルとして渡します。
クエリ パラメータ
-
最大結果数 (デフォルト 50 、最大 200)
-
単一のワークスペースに限定
-
セッションの最新の実行ステータスでフィルターする
-
この RFC3339 時刻以降にアクティビティがあるセッションのみ
-
この RFC3339 時刻より前のアクティビティのあるセッションのみ
-
前の応答の next_cursor からの不透明なページング トークン
GET /api/v1/%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88/{id}/%E3%82%BB%E3%83%83%E3%82%B7%E3%83%A7%E3%83%B3
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/sessions' \
--header "Authorization: $API_KEY"
応答の例(406)
操作は利用できません
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
応答の例(406)
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
応答の例(200)
{
"has_more": true,
"limit": 42,
"next_cursor": "string",
"sessions": [
{
"active_duration_ms": 42,
"created_at": "string",
"first_message_preview": "string",
"last_activity": "string",
"latest_status": "string",
"project_id": "string",
"session_id": "string",
"total_duration_ms": 42,
"total_tokens": 42,
"turns": 42,
"user_id": "string",
"visibility": "string",
"wait_ms": 42,
"workspace_id": "string"
}
],
"total_count": 42,
"truncated": true
}
応答の例(200)
{
"has_more": true,
"limit": 42,
"next_cursor": "string",
"sessions": [
{
"active_duration_ms": 42,
"created_at": "string",
"first_message_preview": "string",
"last_activity": "string",
"latest_status": "string",
"project_id": "string",
"session_id": "string",
"total_duration_ms": 42,
"total_tokens": 42,
"turns": 42,
"user_id": "string",
"visibility": "string",
"wait_ms": 42,
"workspace_id": "string"
}
],
"total_count": 42,
"truncated": true
}
応答の例(400)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(400)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(401)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(401)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(500)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(500)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(502)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(502)
{
"code": "string",
"error": "string",
"success": true
}