{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/dev-tools:quickchart/get-chart":{"get":{"operationId":"dev_tools_quickchart_get_chart","summary":"Generate a chart (GET)","description":"GET /chart","tags":["dev-tools"],"parameters":[{"name":"chart","in":"query","required":false,"description":"The chart configuration in Chart.js format (JSON or Javascript).","schema":{"type":"string","description":"The chart configuration in Chart.js format (JSON or Javascript)."}},{"name":"width","in":"query","required":false,"description":"The width of the chart in pixels.","schema":{"type":"integer","description":"The width of the chart in pixels."}},{"name":"height","in":"query","required":false,"description":"The height of the chart in pixels.","schema":{"type":"integer","description":"The height of the chart in pixels."}},{"name":"format","in":"query","required":false,"description":"The output format of the chart, 'png', 'jpg', 'svg', or 'webp'.","schema":{"type":"string","description":"The output format of the chart, 'png', 'jpg', 'svg', or 'webp'."}},{"name":"backgroundColor","in":"query","required":false,"description":"The background color of the chart.","schema":{"type":"string","description":"The background color of the chart."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/dev-tools:quickchart/post-chart":{"post":{"operationId":"dev_tools_quickchart_post_chart","summary":"Generate a chart (POST)","description":"POST /chart","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/dev-tools:quickchart/get-qr":{"get":{"operationId":"dev_tools_quickchart_get_qr","summary":"Generate a QR code (GET)","description":"GET /qr","tags":["dev-tools"],"parameters":[{"name":"text","in":"query","required":false,"description":"The text to be encoded in the QR code.","schema":{"type":"string","description":"The text to be encoded in the QR code."}},{"name":"width","in":"query","required":false,"description":"The width of the QR code in pixels.","schema":{"type":"integer","description":"The width of the QR code in pixels."}},{"name":"height","in":"query","required":false,"description":"The height of the QR code in pixels.","schema":{"type":"integer","description":"The height of the QR code in pixels."}},{"name":"format","in":"query","required":false,"description":"The output format of the QR code, e.g., 'png' or 'svg'.","schema":{"type":"string","description":"The output format of the QR code, e.g., 'png' or 'svg'."}},{"name":"margin","in":"query","required":false,"description":"The margin around the QR code in pixels.","schema":{"type":"integer","description":"The margin around the QR code in pixels."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/dev-tools:quickchart/post-qr":{"post":{"operationId":"dev_tools_quickchart_post_qr","summary":"Generate a QR code (POST)","description":"POST /qr","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}