{ "openapi": "3.1.0", "info": { "title": "AIC 2026 Retrieval System", "version": "0.1.0" }, "paths": { "/api/v1/health/live": { "get": { "tags": [ "Health" ], "summary": "Liveness", "operationId": "liveness_api_v1_health_live_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Liveness Api V1 Health Live Get" } } } } } } }, "/api/v1/health/ready": { "get": { "tags": [ "Health" ], "summary": "Readiness", "operationId": "readiness_api_v1_health_ready_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Readiness Api V1 Health Ready Get" } } } } } } }, "/api/v1/search/kis": { "post": { "tags": [ "Search" ], "summary": "Search Kis", "operationId": "search_kis_api_v1_search_kis_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KisSearchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } } }, "503": { "description": "ASR-only retrieval is unavailable" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/search/qa": { "post": { "tags": [ "Search" ], "summary": "Search Qa", "operationId": "search_qa_api_v1_search_qa_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QaSearchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } } }, "503": { "description": "ASR-only retrieval is unavailable" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/search/decompose": { "post": { "tags": [ "Search" ], "summary": "Decompose", "description": "Split one pasted query into the overview and events, for review.\n\nRetrieval does not run here. The operator reads what came back, fixes what\nthe model got wrong, and posts it to `/search/trake` or `/search/kis`,\nwhich then search those forms verbatim and make no LLM call of their own.", "operationId": "decompose_api_v1_search_decompose_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecomposeRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecomposeResponse" } } } }, "503": { "description": "The query could not be decomposed" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/search/trake": { "post": { "tags": [ "Search" ], "summary": "Search Trake", "operationId": "search_trake_api_v1_search_trake_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrakeSearchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/search/ocr": { "post": { "tags": [ "Search" ], "summary": "Search Ocr", "operationId": "search_ocr_api_v1_search_ocr_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OcrSearchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/videos/{video_id}/frames/{frame_id}": { "get": { "tags": [ "Media" ], "summary": "Get Frame", "operationId": "get_frame_api_v1_videos__video_id__frames__frame_id__get", "parameters": [ { "name": "video_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Video Id" } }, { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/videos/{video_id}/frames/{frame_id}/context": { "get": { "tags": [ "Media" ], "summary": "Get Frame Context", "description": "Metadata for one keyframe plus its neighbouring keyframes.\n\nOne request per verify panel: the neighbour thumbnails are then plain\n`/frames/{frame_id}` reads and the clip preview is `/stream#t=pts_sec`.", "operationId": "get_frame_context_api_v1_videos__video_id__frames__frame_id__context_get", "parameters": [ { "name": "video_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Video Id" } }, { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } }, { "name": "radius", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 25, "minimum": 0, "description": "Neighbouring keyframes each side.", "default": 5, "title": "Radius" }, "description": "Neighbouring keyframes each side." } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FrameContext" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/videos/{video_id}/stream": { "get": { "tags": [ "Media" ], "summary": "Stream Video", "description": "Stream the source video for in-place playback.\n\nSeek on the client: `