{ "/v1/containers": { "get": { "tags": [ "containers" ], "summary": "List Containers", "description": "Container list endpoint for retrieving a list of containers.\n\nFollows the OpenAI Containers API spec:\nhttps://platform.openai.com/docs/api-reference/containers\n\nExample:\n```bash\ncurl -X GET \"http://localhost:4000/v1/containers?limit=20&order=desc\" -H \"Authorization: Bearer sk-1234\"\n```\n\nOr specify provider via header or query param:\n```bash\ncurl -X GET \"http://localhost:4000/v1/containers?custom_llm_provider=azure\" -H \"Authorization: Bearer sk-1234\"\n```", "operationId": "list_containers_v1_containers_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "APIKeyHeader": [] } ] }, "post": { "tags": [ "containers" ], "summary": "Create Container", "description": "Container creation endpoint for creating new containers.\n\nFollows the OpenAI Containers API spec:\nhttps://platform.openai.com/docs/api-reference/containers\n\nExample:\n```bash\ncurl -X POST \"http://localhost:4000/v1/containers\" -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d '{\n \"name\": \"My Container\",\n \"expires_after\": {\n \"anchor\": \"last_active_at\",\n \"minutes\": 20\n }\n }'\n```\n\nOr specify provider via header:\n```bash\ncurl -X POST \"http://localhost:4000/v1/containers\" -H \"Authorization: Bearer sk-1234\" -H \"custom-llm-provider: azure\" -H \"Content-Type: application/json\" -d '{\n \"name\": \"My Container\"\n }'\n```", "operationId": "create_container_v1_containers_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "APIKeyHeader": [] } ] } }, "/v1/containers/{container_id}": { "get": { "tags": [ "containers" ], "summary": "Retrieve Container", "description": "Container retrieve endpoint for getting details of a specific container.\n\nFollows the OpenAI Containers API spec:\nhttps://platform.openai.com/docs/api-reference/containers\n\nExample:\n```bash\ncurl -X GET \"http://localhost:4000/v1/containers/cntr_123\" -H \"Authorization: Bearer sk-1234\"\n```\n\nOr specify provider via header:\n```bash\ncurl -X GET \"http://localhost:4000/v1/containers/cntr_123\" -H \"Authorization: Bearer sk-1234\" -H \"custom-llm-provider: azure\"\n```", "operationId": "retrieve_container_v1_containers__container_id__get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "containers" ], "summary": "Delete Container", "description": "Container delete endpoint for deleting a specific container.\n\nFollows the OpenAI Containers API spec:\nhttps://platform.openai.com/docs/api-reference/containers\n\nExample:\n```bash\ncurl -X DELETE \"http://localhost:4000/v1/containers/cntr_123\" -H \"Authorization: Bearer sk-1234\"\n```\n\nOr specify provider via header:\n```bash\ncurl -X DELETE \"http://localhost:4000/v1/containers/cntr_123\" -H \"Authorization: Bearer sk-1234\" -H \"custom-llm-provider: azure\"\n```", "operationId": "delete_container_v1_containers__container_id__delete", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/containers/{container_id}/files": { "get": { "tags": [ "containers" ], "summary": "Handler Container Id", "operationId": "handler_container_id_v1_containers__container_id__files_get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "tags": [ "containers" ], "summary": "Handler Multipart Upload", "operationId": "handler_multipart_upload_v1_containers__container_id__files_post", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/containers/{container_id}/files/{file_id}": { "get": { "tags": [ "containers" ], "summary": "Handler Container File", "operationId": "handler_container_file_v1_containers__container_id__files__file_id__get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } }, { "name": "file_id", "in": "path", "required": true, "schema": { "type": "string", "title": "File Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "containers" ], "summary": "Handler Container File", "operationId": "handler_container_file_v1_containers__container_id__files__file_id__delete", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } }, { "name": "file_id", "in": "path", "required": true, "schema": { "type": "string", "title": "File Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/containers/{container_id}/files/{file_id}/content": { "get": { "tags": [ "containers" ], "summary": "Handler Binary Content", "operationId": "handler_binary_content_v1_containers__container_id__files__file_id__content_get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "container_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Container Id" } }, { "name": "file_id", "in": "path", "required": true, "schema": { "type": "string", "title": "File Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }