{ "openapi": "3.1.0", "info": { "title": "AI-Native Monorepo API", "description": "Backend API with AI memory integration", "version": "0.1.0" }, "paths": { "/health": { "get": { "tags": [ "health" ], "summary": "Health Check", "operationId": "health_check_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" } } } } } } }, "/memory/add": { "post": { "tags": [ "memory" ], "summary": "Add Memory", "description": "Store a new memory in Supermemory.", "operationId": "add_memory_memory_add_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryAddRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryAddResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/memory/search": { "post": { "tags": [ "memory" ], "summary": "Search Memories", "description": "Search memories by semantic similarity.", "operationId": "search_memories_memory_search_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySearchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySearchResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "HealthResponse": { "properties": { "status": { "type": "string", "title": "Status" } }, "type": "object", "required": [ "status" ], "title": "HealthResponse" }, "MemoryAddRequest": { "properties": { "content": { "type": "string", "title": "Content" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Tags" }, "metadata": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Metadata" } }, "type": "object", "required": [ "content" ], "title": "MemoryAddRequest" }, "MemoryAddResponse": { "properties": { "message": { "type": "string", "title": "Message" } }, "type": "object", "required": [ "message" ], "title": "MemoryAddResponse" }, "MemorySearchRequest": { "properties": { "query": { "type": "string", "title": "Query" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Tags" }, "limit": { "type": "integer", "title": "Limit", "default": 10 } }, "type": "object", "required": [ "query" ], "title": "MemorySearchRequest" }, "MemorySearchResponse": { "properties": { "results": { "items": { "$ref": "#/components/schemas/MemorySearchResult" }, "type": "array", "title": "Results" }, "count": { "type": "integer", "title": "Count" } }, "type": "object", "required": [ "results", "count" ], "title": "MemorySearchResponse" }, "MemorySearchResult": { "properties": { "content": { "type": "string", "title": "Content" }, "score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Score" } }, "type": "object", "required": [ "content" ], "title": "MemorySearchResult" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } } } }