# Divctor API Documentation Complete reference for the Divctor SVG Charts and Flowcharts API. ## Quick Start Generate a chart: GET https://api.divct.workers.dev/chart?type=bar&data=10,20,30&apikey=YOUR_KEY Same chart with POST: POST https://api.divct.workers.dev/chart with header Authorization: Bearer YOUR_KEY and a JSON body such as {"type":"bar","data":[10,20,30]}. GET and POST give identical results. ## Authentication - API Key: Pass as 'apikey' parameter or 'Authorization: Bearer YOUR_KEY'. ## Rate Limits & Plans - Free plan: 2,500 points/month - Beta plan: 7,000 points/day - 1 point = 1 data point ## Common Use Cases 1. Server-side PDFs: Generate reports without heavy rendering libraries. 2. Static Sites: Add dynamic charts to Jekyll, Hugo, or WordPress via tags. 3. Documentation: Visualize metrics in GitHub READMEs. ## MCP Server AI assistants with MCP support can draw directly via https://divctor-mcp.divct.workers.dev/mcp (Streamable HTTP; no API key needed; anonymous use is free with no points deducted, output carries the Divctor watermark, 30 requests/minute per IP). Optional: pass your Divctor API key as the api_key argument of generate_chart or generate_graph to run the call on your own account under your plan's points and rules. ## Links - [Home](https://www.divct.workers.dev) - [Dashboard](https://www.divct.workers.dev/dashboard) - [QR Generator](https://qr.divct.workers.dev)