{"openapi":"3.1.0","info":{"title":"Pixmato API","version":"1.0.0","description":"Public API for template-based rendering, brand assets, templates, usage, and workspace settings."},"servers":[{"url":"https://api.pixmato.com/v1","description":"Pixmato v1 API"}],"tags":[{"name":"Identity"},{"name":"Rendering"},{"name":"Templates"},{"name":"Assets"},{"name":"Brand Colors"},{"name":"Workspace"},{"name":"API keys"},{"name":"Usage"}],"paths":{"/me":{"get":{"tags":["Identity"],"operationId":"getCurrentWorkspace","summary":"Get the current user and workspace.","security":[{"dashboardSession":[]}],"responses":{"200":{"description":"Current workspace context","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/renders":{"post":{"tags":["Rendering"],"operationId":"createRender","summary":"Generate one render from a template.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"Prefer","in":"header","required":false,"description":"Set to respond-async to enqueue and return a polling URL.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRenderRequest"}}}},"responses":{"200":{"description":"Generated render","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRenderResponse"}}}},"202":{"description":"Render accepted. Returned for Prefer: respond-async, and when a synchronous render is still running after the wait","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedRenderResponse"}}},"headers":{"Location":{"schema":{"type":"string"},"description":"Authenticated polling URL."},"Preference-Applied":{"schema":{"type":"string","const":"respond-async"},"description":"Present only when the request asked for respond-async."}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Render accepted but not queued yet; it is queued automatically. Error details include the render ID and polling URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["Rendering"],"operationId":"listRenders","summary":"List recent render jobs.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"responses":{"200":{"description":"Recent render jobs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRendersResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/renders/{id}":{"get":{"tags":["Rendering"],"operationId":"getRender","summary":"Get one render job.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Render job ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Render job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderDetailResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/templates":{"get":{"tags":["Templates"],"operationId":"listTemplates","summary":"List workspace templates.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"responses":{"200":{"description":"Workspace templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTemplatesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Templates"],"operationId":"createTemplate","summary":"Create a blank workspace template.","security":[{"dashboardSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequest"}}}},"responses":{"201":{"description":"Created template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSummaryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/templates/{id}":{"get":{"tags":["Templates"],"operationId":"getTemplate","summary":"Get one template.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Template ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Template detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Templates"],"operationId":"updateTemplate","summary":"Update a workspace template.","security":[{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Template ID.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateRequest"}}}},"responses":{"200":{"description":"Updated template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Templates"],"operationId":"deleteTemplate","summary":"Archive a workspace template.","security":[{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Template ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Archived template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSummaryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/templates/{id}/renders":{"get":{"tags":["Templates"],"operationId":"listTemplateRenders","summary":"List recent render jobs for one workspace template.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Template ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Template render jobs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateRendersResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/templates/{id}/clone":{"post":{"tags":["Templates"],"operationId":"cloneTemplate","summary":"Duplicate a template in the current workspace.","security":[{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Workspace template ID.","schema":{"type":"string"}}],"responses":{"201":{"description":"Cloned template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSummaryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/assets":{"get":{"tags":["Assets"],"operationId":"listAssets","summary":"List workspace assets.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"responses":{"200":{"description":"Assets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAssetsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Assets"],"operationId":"uploadAsset","summary":"Upload a workspace asset.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadAssetRequest"}}}},"responses":{"200":{"description":"Uploaded asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/assets/{id}":{"get":{"tags":["Assets"],"operationId":"getAsset","summary":"Get one workspace asset.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Asset ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Assets"],"operationId":"updateAsset","summary":"Update workspace asset metadata.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Asset ID.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}}},"responses":{"200":{"description":"Updated asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Assets"],"operationId":"deleteAsset","summary":"Delete a workspace asset.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Asset ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/brand/colors":{"get":{"tags":["Brand Colors"],"operationId":"listBrandColors","summary":"List workspace brand asset colors.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"responses":{"200":{"description":"Brand colors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBrandColorsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Brand Colors"],"operationId":"createBrandColor","summary":"Create a workspace brand asset color.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrandColorRequest"}}}},"responses":{"201":{"description":"Created brand color","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandColorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/brand/colors/{id}":{"patch":{"tags":["Brand Colors"],"operationId":"updateBrandColor","summary":"Update a workspace brand asset color.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Brand color ID.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBrandColorRequest"}}}},"responses":{"200":{"description":"Updated brand color","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandColorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Brand Colors"],"operationId":"deleteBrandColor","summary":"Delete a workspace brand asset color.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Brand color ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted brand color","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandColorResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/settings":{"get":{"tags":["Workspace"],"operationId":"getSettings","summary":"Get workspace settings.","security":[{"dashboardSession":[]}],"responses":{"200":{"description":"Workspace settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSettingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Workspace"],"operationId":"updateSettings","summary":"Update workspace settings.","security":[{"dashboardSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSettingsRequest"}}}},"responses":{"200":{"description":"Workspace settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSettingsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api-keys":{"get":{"tags":["API keys"],"operationId":"listApiKeys","summary":"List workspace API keys.","security":[{"dashboardSession":[]}],"responses":{"200":{"description":"API keys","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["API keys"],"operationId":"createApiKey","summary":"Create a workspace API key.","security":[{"dashboardSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"201":{"description":"Created API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api-keys/{id}/revoke":{"patch":{"tags":["API keys"],"operationId":"revokeApiKey","summary":"Revoke a workspace API key.","security":[{"dashboardSession":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"API key ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/usage/summary":{"get":{"tags":["Usage"],"operationId":"getUsageSummary","summary":"Get recent usage summary.","security":[{"dashboardSession":[]}],"responses":{"200":{"description":"Usage summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummaryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/usage/allowance":{"get":{"tags":["Usage"],"operationId":"getUsageAllowance","summary":"Get remaining render credits for the current billing period.","security":[{"bearerAuth":[]},{"dashboardSession":[]}],"responses":{"200":{"description":"Render credit allowance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageAllowanceResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or usage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Pixmato API key"},"dashboardSession":{"type":"apiKey","in":"cookie","name":"better-auth.session_token"}},"schemas":{"ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"error":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"details":{}},"required":["error","status"]},"MeResponse":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"workspace":{"$ref":"#/components/schemas/Workspace"}},"required":["user","workspace"]},"User":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","format":"email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email"],"additionalProperties":{}},"Workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"updatedAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","name","slug"]},"CreateRenderRequest":{"type":"object","properties":{"template":{"type":"string","minLength":1,"maxLength":160},"modifications":{"$ref":"#/components/schemas/Modifications"},"output":{"$ref":"#/components/schemas/RenderOutputOptions","default":{"format":"png","scale":2}}},"required":["template"]},"CreateRenderResponse":{"type":"object","properties":{"id":{"type":"string"},"status":{"const":"completed"},"output_url":{"type":"string","minLength":1},"duration_ms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"template":{"type":"string"}},"required":["id","status","output_url","duration_ms","template"]},"RenderOutputOptions":{"type":"object","properties":{"format":{"enum":["png","jpeg","webp","pdf"],"type":"string","default":"png"},"scale":{"type":"number","minimum":0.5,"maximum":4,"default":2},"quality":{"type":"number","minimum":1,"maximum":100}},"required":[]},"Modifications":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"RenderJob":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"enum":["single","thumbnail"],"type":"string"},"status":{"enum":["pending","processing","completed","failed"],"type":"string"},"requestJson":{},"responseJson":{},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"startedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"outputs":{"type":"array","items":{"$ref":"#/components/schemas/RenderOutput"}},"template":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},{"type":"null"}]}},"required":["id","workspaceId","templateId","kind","status","requestJson","responseJson","error","errorCode","durationMs","createdAt","startedAt","completedAt","outputs","template"]},"RenderOutput":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","minLength":1},"storageKey":{"type":"string"},"format":{"type":"string"},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scale":{"type":"number"},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","url","storageKey","format","width","height","scale","size","createdAt"]},"ListRendersResponse":{"type":"object","properties":{"renders":{"type":"array","items":{"$ref":"#/components/schemas/RenderJob"}}},"required":["renders"]},"TemplateRendersResponse":{"type":"object","properties":{"renders":{"type":"array","items":{"$ref":"#/components/schemas/RenderJob"}},"template":{"$ref":"#/components/schemas/TemplateSummary"}},"required":["renders","template"]},"TemplateSummary":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbnailUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"canvasWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"canvasHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"parameterCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string"},"updatedAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","workspaceId","slug","name","description","category","thumbnailUrl","status","updatedAt"]},"ListTemplatesResponse":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/TemplateSummary"}}},"required":["templates"]},"TemplateSummaryResponse":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/TemplateSummary"}},"required":["template"]},"TemplateDetailResponse":{"type":"object","properties":{"id":{"type":"string"},"template":{"$ref":"#/components/schemas/Template"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"enum":["boolean","color","image","number","select","text"],"type":"string"},"required":{"type":"boolean"},"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"example":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"options":{"type":"array","items":{"type":"string"}}},"required":["key","label","type","required"]}},"slug":{"type":"string"},"thumbnailUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"updatedAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","template","slug","thumbnailUrl","updatedAt"]},"CreateTemplateRequest":{"type":"object","properties":{"starter":{"const":"social-card"},"name":{"type":"string","minLength":1,"maxLength":160},"category":{"type":"string","maxLength":80,"default":"Custom"},"width":{"type":"integer","minimum":1,"maximum":10000,"default":1200},"height":{"type":"integer","minimum":1,"maximum":10000,"default":630}},"required":["name"]},"UpdateTemplateRequest":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/Template"}},"required":["template"]},"UpdateTemplateResponse":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/TemplateSummary"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["template","version"]},"Template":{"type":"object","properties":{"version":{"const":1},"id":{"type":"string","minLength":1,"maxLength":120},"name":{"type":"string","minLength":1,"maxLength":160},"pages":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePage"},"minItems":1,"maxItems":50},"parameters":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"label":{"type":"string","minLength":1,"maxLength":160},"type":{"enum":["text","number","image","color","boolean","select"],"type":"string"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"exampleValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"required":{"type":"boolean","default":false},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":160},"value":{"type":"string","maxLength":500}},"required":["label","value"]}},"validation":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string","maxLength":256}},"required":[]},"targetElementId":{"type":"string","minLength":1,"maxLength":120},"targetProperty":{"type":"string","minLength":1,"maxLength":120}},"required":["key","label","type","targetElementId","targetProperty"]},"maxItems":500,"default":[]},"sampleRows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":160},"values":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}},"required":["id","name","values"]},"maxItems":100,"default":[]},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160},"name":{"type":"string","minLength":1,"maxLength":240},"url":{"type":"string","minLength":1,"maxLength":4096},"contentType":{"type":"string","maxLength":120}},"required":["id","name","url"]},"maxItems":1000,"default":[]}},"required":["version","name","pages"]},"TemplatePage":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"name":{"type":"string","minLength":1,"maxLength":160},"canvas":{"$ref":"#/components/schemas/CanvasSettings"},"elements":{"type":"array","items":{"$ref":"#/components/schemas/EditorElement"},"maxItems":1000},"parameters":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"label":{"type":"string","minLength":1,"maxLength":160},"type":{"enum":["text","number","image","color","boolean","select"],"type":"string"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"exampleValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"required":{"type":"boolean","default":false},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":160},"value":{"type":"string","maxLength":500}},"required":["label","value"]}},"validation":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string","maxLength":256}},"required":[]},"targetElementId":{"type":"string","minLength":1,"maxLength":120},"targetProperty":{"type":"string","minLength":1,"maxLength":120}},"required":["key","label","type","targetElementId","targetProperty"]},"maxItems":500,"default":[]}},"required":["id","name","canvas","elements"]},"CanvasSettings":{"type":"object","properties":{"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"backgroundColor":{"type":"string","maxLength":4096,"default":"#ffffff"},"borderWidth":{"type":"number","minimum":0,"maximum":100},"borderColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$"}},"required":["width","height"]},"EditorElement":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"text"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"content":{"type":"string","maxLength":10000},"fontSize":{"type":"number","minimum":1,"maximum":2000},"fontFamily":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[\\w\\s,.'\"()-]+$"},"fontWeight":{"anyOf":[{"const":"normal"},{"const":"bold"},{"type":"number","minimum":1,"maximum":1000},{"type":"string","pattern":"^[1-9]00$"}]},"fontStyle":{"enum":["normal","italic"],"type":"string","default":"normal"},"textDecoration":{"enum":["none","line-through","underline","underline line-through"],"type":"string","default":"none"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"textWrap":{"enum":["normal","balance","nowrap"],"type":"string"},"color":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$"},"backgroundColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"transparent"},"backgroundRadius":{"type":"number","minimum":0,"maximum":1000},"backgroundFit":{"enum":["box","text"],"type":"string"},"backgroundPaddingX":{"type":"number","minimum":0,"maximum":500},"backgroundPaddingY":{"type":"number","minimum":0,"maximum":500},"textAlign":{"enum":["left","center","right","justify"],"type":"string","default":"left"},"direction":{"enum":["ltr","rtl"],"type":"string"},"lineBreaking":{"enum":["words"],"type":"string"},"verticalAlign":{"enum":["top","middle","bottom"],"type":"string","default":"middle"},"lineHeight":{"type":"number","minimum":0.5,"maximum":5,"default":1.2},"letterSpacing":{"type":"number","minimum":-100,"maximum":100,"default":0},"textFitMode":{"enum":["fixed","shrink-to-fit","truncate","auto-height"],"type":"string","default":"fixed"},"minFontSize":{"type":"number","minimum":1,"maximum":2000,"default":12},"maxLines":{"type":"number","minimum":1,"maximum":100},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#00000026"},"offsetX":{"type":"number","minimum":-500,"maximum":500,"default":0},"offsetY":{"type":"number","minimum":-500,"maximum":500,"default":8},"blur":{"type":"number","minimum":0,"maximum":200,"default":16}},"required":[]},{"type":"null"}]},"outlineWidth":{"type":"number","minimum":0,"maximum":20},"outlineColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$"}},"required":["id","type","x","y","width","height","content","fontSize","fontFamily","fontWeight","color"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"image"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"src":{"type":"string","minLength":1,"maxLength":4096},"alt":{"type":"string","maxLength":500,"default":""},"fit":{"enum":["cover","contain","fill"],"type":"string","default":"cover"},"filter":{"type":"string","maxLength":300},"cropX":{"type":"number","minimum":0,"maximum":1,"default":0.5},"cropY":{"type":"number","minimum":0,"maximum":1,"default":0.5},"imageScale":{"type":"number","minimum":0.1,"maximum":10,"default":1},"borderRadius":{"type":"number","minimum":0,"maximum":1000,"default":0},"cornerRadii":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000}],"minItems":4},"borderWidth":{"type":"number","minimum":0,"maximum":100},"borderColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$"},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderSide":{"enum":["all","top","right","bottom","left"],"type":"string"},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#00000026"},"offsetX":{"type":"number","minimum":-500,"maximum":500,"default":0},"offsetY":{"type":"number","minimum":-500,"maximum":500,"default":8},"blur":{"type":"number","minimum":0,"maximum":200,"default":16}},"required":[]},{"type":"null"}]},"flipX":{"type":"boolean"},"flipY":{"type":"boolean"},"imageSource":{"type":"object","properties":{"provider":{"enum":["asset","unsplash","url"],"type":"string"},"externalId":{"type":"string","maxLength":240},"authorName":{"type":"string","maxLength":240},"authorUrl":{"type":"string","format":"uri"},"sourceUrl":{"type":"string","format":"uri"}},"required":["provider"]}},"required":["id","type","x","y","width","height","src"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"rating"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"maxRating":{"type":"number","minimum":1,"maximum":10,"default":5},"value":{"type":"number","minimum":0,"maximum":10,"default":5},"size":{"type":"number","minimum":1,"maximum":256,"default":28},"color":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#f59e0b"}},"required":["id","type","x","y","width","height"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"qr"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":4096},"foregroundColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#111827"},"backgroundColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#ffffff"},"margin":{"type":"number","minimum":0,"maximum":8,"default":2},"errorCorrection":{"enum":["low","medium","quartile","high"],"type":"string","default":"medium"}},"required":["id","type","x","y","width","height","value"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"shape"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"shapeType":{"enum":["circle","rectangle","triangle"],"type":"string"},"fillColor":{"type":"string","maxLength":4096,"default":"#000000"},"borderColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"transparent"},"borderWidth":{"type":"number","minimum":0,"maximum":100,"default":0},"borderRadius":{"type":"number","minimum":0,"maximum":1000,"default":0},"cornerRadii":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000},{"type":"number","minimum":0,"maximum":1000}],"minItems":4},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderSide":{"enum":["all","top","right","bottom","left"],"type":"string"},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#00000026"},"offsetX":{"type":"number","minimum":-500,"maximum":500,"default":0},"offsetY":{"type":"number","minimum":-500,"maximum":500,"default":8},"blur":{"type":"number","minimum":0,"maximum":200,"default":16}},"required":[]},{"type":"null"}]}},"required":["id","type","x","y","width","height","shapeType"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"line"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"strokeColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#111827"},"strokeWidth":{"type":"number","minimum":1,"maximum":100,"default":4},"lineCap":{"enum":["butt","round","square"],"type":"string","default":"butt"}},"required":["id","type","x","y","width","height"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"arrow"},"name":{"type":"string","maxLength":160},"x":{"type":"number","minimum":-10000,"maximum":10000},"y":{"type":"number","minimum":-10000,"maximum":10000},"width":{"type":"number","minimum":1,"maximum":10000},"height":{"type":"number","minimum":1,"maximum":10000},"rotation":{"type":"number","minimum":-3600,"maximum":3600,"default":0},"zIndex":{"type":"number","minimum":0,"maximum":10000,"default":0},"visible":{"type":"boolean","default":true},"locked":{"type":"boolean","default":false},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"parameterKey":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_.:-]+$"},"groupId":{"type":"string","minLength":1,"maxLength":120},"groupName":{"type":"string","maxLength":160},"flowAfterId":{"type":"string","minLength":1,"maxLength":120},"flowGap":{"type":"number","minimum":0,"maximum":1000},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","soft-light"],"type":"string"},"anchorX":{"enum":["left","center","right"],"type":"string"},"anchorY":{"enum":["top","center","bottom"],"type":"string"},"strokeColor":{"type":"string","maxLength":160,"pattern":"^(?:transparent|#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\)|hsla?\\(\\s*(?:[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*,\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?|[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:deg|grad|rad|turn)?\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%\\s+[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%(?:\\s*\\/\\s*[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%?)?)\\s*\\))$","default":"#111827"},"strokeWidth":{"type":"number","minimum":1,"maximum":100,"default":4},"lineCap":{"enum":["butt","round","square"],"type":"string","default":"butt"},"arrowHeadSize":{"type":"number","minimum":4,"maximum":256,"default":6}},"required":["id","type","x","y","width","height"]}]},"TemplateParameter":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"enum":["boolean","color","image","number","select","text"],"type":"string"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"exampleValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"required":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]}},"validation":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"required":[]},"targetElementId":{"type":"string"},"targetProperty":{"type":"string"}},"required":["key","label","type","targetElementId","targetProperty"]},"TemplateSampleRow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"values":{"$ref":"#/components/schemas/Modifications"}},"required":["id","name","values"]},"TemplateAsset":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","minLength":1},"contentType":{"type":"string"}},"required":["id","name","url"]},"Asset":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"kind":{"enum":["IMAGE","FONT","OTHER"],"type":"string"},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"url":{"type":"string","minLength":1},"storageKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","workspaceId","name","kind","contentType","size","url","storageKey","tags","createdAt"]},"AssetResponse":{"type":"object","properties":{"asset":{"$ref":"#/components/schemas/Asset"}},"required":["asset"]},"ListAssetsResponse":{"type":"object","properties":{"assets":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}},"required":["assets"]},"UploadAssetRequest":{"type":"object","properties":{"file":{}},"required":["file"]},"UpdateAssetRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20}},"required":[]},"UnsplashPhoto":{"type":"object","properties":{"id":{"type":"string"},"alt":{"type":"string"},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"thumbUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"previewUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"downloadLocation":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"photographerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"photographerUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"unsplashUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["id","alt","width","height","thumbUrl","previewUrl","imageUrl","downloadLocation","photographerName","photographerUrl","unsplashUrl"]},"UnsplashSearchResponse":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"photos":{"type":"array","items":{"$ref":"#/components/schemas/UnsplashPhoto"}}},"required":["total","totalPages","photos"]},"ImageSource":{"type":"object","properties":{"provider":{"enum":["asset","unsplash","url"],"type":"string"},"externalId":{"type":"string"},"authorName":{"type":"string"},"authorUrl":{"type":"string","minLength":1},"sourceUrl":{"type":"string","minLength":1}},"required":["provider"]},"UnsplashTrackDownloadRequest":{"type":"object","properties":{"photoId":{"type":"string","minLength":1,"maxLength":120},"downloadLocation":{"type":"string","format":"uri"},"imageUrl":{"type":"string","format":"uri"},"alt":{"type":"string","maxLength":240},"photographerName":{"type":"string","maxLength":160},"photographerUrl":{"type":"string","format":"uri"},"unsplashUrl":{"type":"string","format":"uri"}},"required":["photoId","downloadLocation","imageUrl"]},"UnsplashTrackDownloadResponse":{"type":"object","properties":{"source":{"type":"object","properties":{"src":{"type":"string","minLength":1},"alt":{"type":"string"},"imageSource":{"$ref":"#/components/schemas/ImageSource"}},"required":["src","alt","imageSource"]}},"required":["source"]},"WorkspaceSettingsResponse":{"type":"object","properties":{"workspace":{"$ref":"#/components/schemas/Workspace"},"renderDefaults":{"$ref":"#/components/schemas/RenderDefaults"}},"required":["workspace","renderDefaults"]},"RenderDefaults":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"defaultFormat":{"enum":["png","jpeg","webp","pdf"],"type":"string"},"defaultScale":{"type":"number"},"defaultQuality":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"webhookUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Stored for a future feature. Pixmato does not send webhooks yet; poll GET /v1/renders/{id} for results."},"allowedOrigins":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"updatedAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","workspaceId","defaultFormat","defaultScale","defaultQuality","webhookUrl","allowedOrigins","createdAt","updatedAt"]},"BrandColor":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["name","value","tags"]},"ListBrandColorsResponse":{"type":"object","properties":{"colors":{"type":"array","items":{"$ref":"#/components/schemas/BrandColor"}}},"required":["colors"]},"BrandColorResponse":{"type":"object","properties":{"color":{"$ref":"#/components/schemas/BrandColor"}},"required":["color"]},"CreateBrandColorRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"value":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":24},"maxItems":6,"default":[]},"sortOrder":{"type":"integer","minimum":0,"maximum":10000}},"required":["name","value"]},"UpdateBrandColorRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"value":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":24},"maxItems":6,"default":[]},"sortOrder":{"type":"integer","minimum":0,"maximum":10000}},"required":[]},"UpdateSettingsRequest":{"type":"object","properties":{"workspace":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]},"renderDefaults":{"type":"object","properties":{"defaultFormat":{"enum":["png","jpeg","webp","pdf"],"type":"string"},"defaultScale":{"type":"number","minimum":0.5,"maximum":4},"defaultQuality":{"type":"integer","minimum":1,"maximum":100},"webhookUrl":{"anyOf":[{"type":"string","format":"uri"},{"const":""}],"description":"Stored for a future feature. Pixmato does not send webhooks yet; poll GET /v1/renders/{id} for results."},"allowedOrigins":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"default":[]}},"required":["defaultFormat","defaultScale","defaultQuality"]}},"required":[]},"ApiKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"revokedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["id","name","prefix","revokedAt","lastUsedAt","createdAt"]},"ListApiKeysResponse":{"type":"object","properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}},"required":["keys"]},"CreateApiKeyRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]},"CreateApiKeyResponse":{"type":"object","properties":{"token":{"type":"string"},"apiKey":{"$ref":"#/components/schemas/ApiKey"}},"required":["token","apiKey"]},"ApiKeyResponse":{"type":"object","properties":{"apiKey":{"$ref":"#/components/schemas/ApiKey"}},"required":["apiKey"]},"UsageSummaryResponse":{"type":"object","properties":{"billing":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"billingPeriod":{"type":"string"},"renderCreditLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxScale":{"type":"number"},"maxCanvasPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxRasterPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","status","billingPeriod","renderCreditLimit","maxScale","maxCanvasPixels","maxRasterPixels"]},"credits":{"$ref":"#/components/schemas/UsageAllowanceResponse"}},"required":["plan","credits"]},"summary":{"type":"object","properties":{"renderCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errorRate":{"type":"number"},"avgDurationMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"templateCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeApiKeyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"assetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["renderCount","completedCount","failedCount","errorRate","avgDurationMs","templateCount","activeApiKeyCount","assetCount"]},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","format":"date"},"renders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["date","renders"]}},"recent":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"template":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}},"required":["name","slug"]},{"type":"null"}]},"outputUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["id","status","durationMs","createdAt","template","outputUrl"]}}},"required":["billing","summary","daily","recent"]},"AcceptedRenderResponse":{"type":"object","properties":{"id":{"type":"string"},"status":{"const":"pending"},"template":{"type":"string"},"poll_url":{"type":"string","minLength":1}},"required":["id","status","template","poll_url"]},"RenderDetailResponse":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"enum":["single","thumbnail"],"type":"string"},"status":{"enum":["pending","processing","completed","failed"],"type":"string"},"requestJson":{},"responseJson":{},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"startedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},{"type":"null"}]},"outputs":{"type":"array","items":{"$ref":"#/components/schemas/RenderOutput"}},"template":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},{"type":"null"}]}},"required":["id","workspaceId","templateId","kind","status","requestJson","responseJson","error","errorCode","durationMs","createdAt","startedAt","completedAt","outputs","template"]},"UnsplashSearchRequest":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":120},"page":{"type":"integer","minimum":-9007199254740991,"maximum":50,"exclusiveMinimum":0,"default":1},"perPage":{"type":"integer","minimum":-9007199254740991,"maximum":30,"exclusiveMinimum":0,"default":20},"orientation":{"enum":["landscape","portrait","squarish"],"type":"string"}},"required":["q"]},"UsageAllowanceResponse":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentUsed":{"type":"number"},"periodStart":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"},"periodEnd":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","format":"date-time"}},"required":["used","limit","remaining","percentUsed","periodStart","periodEnd"]}}}}