{"openapi":"3.1.0","info":{"title":"Creativox API","version":"0.1.0"},"paths":{"/api/v1/me":{"get":{"tags":["me","public"],"summary":"Read Me","operationId":"read_me_api_v1_me_get","parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products":{"post":{"tags":["products","public"],"summary":"Create Product","operationId":"create_product_api_v1_products_post","parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]},"get":{"tags":["products","public"],"summary":"List Products","operationId":"list_products_api_v1_products_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products/{product_id}":{"get":{"tags":["products","public"],"summary":"Get Product","operationId":"get_product_api_v1_products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]},"patch":{"tags":["products","public"],"summary":"Update Product","operationId":"update_product_api_v1_products__product_id__patch","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]},"delete":{"tags":["products","public"],"summary":"Delete Product","operationId":"delete_product_api_v1_products__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products/{product_id}/upload-url":{"post":{"tags":["products","public"],"summary":"Request Upload Url","operationId":"request_upload_url_api_v1_products__product_id__upload_url_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products/{product_id}/confirm-upload":{"post":{"tags":["products","public"],"summary":"Confirm Upload","operationId":"confirm_upload_api_v1_products__product_id__confirm_upload_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products/{product_id}/images/from-url":{"post":{"tags":["products","public"],"summary":"Import Product Image","operationId":"import_product_image_api_v1_products__product_id__images_from_url_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFromURLRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/products/{product_id}/images/imports/{import_id}":{"get":{"tags":["products","public"],"summary":"Get Product Image Import","operationId":"get_product_image_import_api_v1_products__product_id__images_imports__import_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/models":{"get":{"tags":["models","public"],"summary":"List Available Models","operationId":"list_available_models_api_v1_models_get","parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelListItem"},"title":"Response List Available Models Api V1 Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/generations":{"post":{"tags":["generations","public"],"summary":"Create Generation","operationId":"create_generation_api_v1_generations_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]},"get":{"tags":["generations","public"],"summary":"List Generations","operationId":"list_generations_api_v1_generations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerationStatus"},{"type":"null"}],"title":"Status"}},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/generations/{generation_id}":{"get":{"tags":["generations","public"],"summary":"Get Generation","operationId":"get_generation_api_v1_generations__generation_id__get","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Generation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/generations/{generation_id}/favorite":{"patch":{"tags":["generations","public"],"summary":"Toggle Generation Favorite","operationId":"toggle_generation_favorite_api_v1_generations__generation_id__favorite_patch","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Generation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationFavoriteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/library":{"get":{"tags":["library","public"],"summary":"List Library","operationId":"list_library_api_v1_library_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (max 100).","default":24,"title":"Limit"},"description":"Page size (max 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor from the previous page's `next_cursor` (base64url JSON: `created_at` ISO-8601 + `id` UUID).","title":"Cursor"},"description":"Opaque cursor from the previous page's `next_cursor` (base64url JSON: `created_at` ISO-8601 + `id` UUID)."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerationStatus"},{"type":"null"}],"title":"Status"}},{"name":"is_favorite","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When set, only favorites (true) or non-favorites (false).","title":"Is Favorite"},"description":"When set, only favorites (true) or non-favorites (false)."},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/templates":{"get":{"tags":["templates","public"],"summary":"List Templates","description":"List active global templates (not scoped to workspace).","operationId":"list_templates_api_v1_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateListResponse"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/billing/balance":{"get":{"tags":["billing","public"],"summary":"Read Billing Balance","operationId":"read_billing_balance_api_v1_billing_balance_get","parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingBalanceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/mcp":{"post":{"summary":"Remote MCP (Streamable HTTP)","description":"Stateless JSON-RPC MCP tools with workspace bearer API keys. Requests with a progress token receive SSE. Tool scopes match REST. See https://github.com/modelcontextprotocol/python-sdk for MCP clients.","operationId":"remote_mcp","tags":["public","mcp"],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"MCP JSON-RPC result or SSE stream"}}}}},"components":{"schemas":{"ApiKeyMeResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/KeyWorkspaceOut"},"key":{"$ref":"#/components/schemas/CurrentKeyOut"}},"type":"object","required":["workspace","key"],"title":"ApiKeyMeResponse"},"BillingBalanceRead":{"properties":{"balance":{"type":"integer","title":"Balance"},"plan":{"type":"string","title":"Plan"},"billing_status":{"$ref":"#/components/schemas/BillingStatus","default":"active"},"monthly_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Quota"},"promo_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promo Label"}},"type":"object","required":["balance","plan"],"title":"BillingBalanceRead"},"BillingStatus":{"type":"string","enum":["active","past_due","inactive"],"title":"BillingStatus"},"ConfirmUploadRequest":{"properties":{"key":{"type":"string","minLength":1,"title":"Key"}},"additionalProperties":false,"type":"object","required":["key"],"title":"ConfirmUploadRequest"},"CurrentKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["id","name","prefix","scopes"],"title":"CurrentKeyOut"},"GenerationCreateRequest":{"properties":{"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"template_slug":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Template Slug"},"template_vars":{"additionalProperties":{"type":"string"},"type":"object","title":"Template Vars"},"prompt":{"anyOf":[{"type":"string","maxLength":16000,"minLength":1},{"type":"null"}],"title":"Prompt","error_code":"GENERATION_PROMPT_REQUIRED"},"format":{"type":"string","enum":["1:1","9:16","16:9","4:3","3:4","4:5"],"title":"Format","description":"Output aspect ratio.","error_code":"GENERATION_FORMAT_INVALID"},"product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["txt2img","img2img"],"title":"Type","description":"txt2img or img2img.","error_code":"GENERATION_TYPE_INVALID"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model ID. If omitted, uses the default model."},"num_images":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Num Images","description":"Images to generate in this request (default 1). Must not exceed the model's `max_images` (GET /models); credits charged = per-image cost x num_images.","default":1},"model_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Model Prompt","description":"Prompt traducido a inglés en el cliente para enviar al proveedor; el prompt visible sigue siendo `prompt`."}},"additionalProperties":false,"type":"object","required":["format","type"],"title":"GenerationCreateRequest","description":"Create a generation job.\n\nValidation failures return HTTP 422; Pydantic issues include ``ctx`` with\n``error_code`` where applicable for stable i18n keys."},"GenerationFavoriteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"is_favorite":{"type":"boolean","title":"Is Favorite"}},"type":"object","required":["id","is_favorite"],"title":"GenerationFavoriteRead"},"GenerationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GenerationRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"GenerationList"},"GenerationOutput":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"}},"type":"object","required":["id","url"],"title":"GenerationOutput"},"GenerationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"prompt":{"type":"string","title":"Prompt"},"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"type":{"type":"string","title":"Type"},"status":{"$ref":"#/components/schemas/GenerationStatus"},"format":{"type":"string","enum":["1:1","9:16","16:9","4:3","3:4","4:5"],"title":"Format"},"image_format":{"type":"string","title":"Image Format","description":"Encoded image format (e.g. png)."},"output_urls":{"items":{"type":"string"},"type":"array","title":"Output Urls"},"outputs":{"items":{"$ref":"#/components/schemas/GenerationOutput"},"type":"array","title":"Outputs"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"credits_consumed":{"type":"integer","title":"Credits Consumed"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","user_id","product_id","parent_id","prompt","provider","model","type","status","format","image_format","output_urls","metadata","credits_consumed","is_favorite","created_at","updated_at"],"title":"GenerationRead","description":"Single generation for API responses."},"GenerationStatus":{"type":"string","enum":["pending","processing","completed","failed"],"title":"GenerationStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageFromURLRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"ImageFromURLRequest"},"KeyWorkspaceOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"KeyWorkspaceOut"},"LibraryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GenerationRead"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Opaque cursor for the next page: base64url-encoded JSON `{\"created_at\":\"<ISO-8601>\",\"id\":\"<uuid>\"}` matching the last item on this page. Omit on the first request; pass the previous `next_cursor` to continue."},"has_more":{"type":"boolean","title":"Has More","description":"True when more items exist after `items` using `next_cursor`."}},"type":"object","required":["items","has_more"],"title":"LibraryListResponse","description":"Cursor-paginated workspace library (generations)."},"ModelListItem":{"properties":{"model_id":{"type":"string","title":"Model Id"},"provider":{"type":"string","title":"Provider"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"credit_cost":{"type":"integer","minimum":0.0,"title":"Credit Cost"},"speed_tier":{"type":"string","title":"Speed Tier"},"quality_tier":{"type":"string","title":"Quality Tier"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"supported_aspects":{"items":{"type":"string"},"type":"array","title":"Supported Aspects"},"max_resolution":{"type":"string","title":"Max Resolution"},"is_default":{"type":"boolean","title":"Is Default"},"max_images":{"type":"integer","minimum":1.0,"title":"Max Images","description":"Largest `num_images` POST /generations accepts for this model."}},"type":"object","required":["model_id","provider","display_name","description","credit_cost","speed_tier","quality_tier","capabilities","supported_aspects","max_resolution","is_default","max_images"],"title":"ModelListItem"},"ProductCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"product_type":{"anyOf":[{"type":"string","enum":["ropa","joyeria","belleza","hogar","suplementos"]},{"type":"null"}],"title":"Product Type"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ProductCreate"},"ProductList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ProductList"},"ProductRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"product_type":{"anyOf":[{"type":"string","enum":["ropa","joyeria","belleza","hogar","suplementos"]},{"type":"null"}],"title":"Product Type"},"base_images":{"items":{"type":"string"},"type":"array","title":"Base Images"},"image_urls":{"additionalProperties":{"type":"string"},"type":"object","title":"Image Urls"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","product_type","base_images","created_at","updated_at"],"title":"ProductRead"},"ProductUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"product_type":{"anyOf":[{"type":"string","enum":["ropa","joyeria","belleza","hogar","suplementos"]},{"type":"null"}],"title":"Product Type"}},"additionalProperties":false,"type":"object","title":"ProductUpdate"},"TemplateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TemplateRead"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TemplateListResponse"},"TemplateRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"category":{"type":"string","title":"Category"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt_template":{"type":"string","title":"Prompt Template"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"default_format":{"type":"string","title":"Default Format"},"product_types":{"items":{"type":"string"},"type":"array","title":"Product Types"},"formats":{"items":{"type":"string"},"type":"array","title":"Formats"},"is_active":{"type":"boolean","title":"Is Active"},"sort_order":{"type":"integer","title":"Sort Order"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","slug","category","description","prompt_template","preview_url","default_format","product_types","formats","is_active","sort_order","created_at","updated_at"],"title":"TemplateRead"},"UploadUrlRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":100,"minLength":1,"title":"Content Type"},"content_length":{"type":"integer","minimum":1.0,"title":"Content Length","description":"Exact byte size of the file to upload. It is validated against the product image size policy and bound into the presigned URL signature, so storage rejects any body of a different size."}},"additionalProperties":false,"type":"object","required":["filename","content_type","content_length"],"title":"UploadUrlRequest"},"UploadUrlResponse":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","const":"PUT","title":"Method","default":"PUT"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"upload_id":{"type":"string","title":"Upload Id"},"curl":{"type":"string","title":"Curl"},"upload_url":{"type":"string","title":"Upload Url"},"key":{"type":"string","title":"Key"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["url","headers","upload_id","curl","upload_url","key","expires_in"],"title":"UploadUrlResponse"},"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"}},"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"cvx_live_…","description":"Workspace API key"}}}}