API overview
Render Sankey charts as SVG or PNG as an API request.
The Static Render API turns flow data into a finished chart image — SVG or PNG — in a single request. It's the same layout and rendering engine used by the builder, available for you to call from your own backend, batch jobs, or scheduled reports.
- Base URL:
https://sankeykit.com/api/v1 - Auth:
Authorization: Bearer sk_live_...(see Authentication) - Requires a paid plan — see Limits
#60-second quickstart
curl https://sankeykit.com/api/v1/render \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"flows": [
{ "source": "Visitors", "target": "Signups", "value": 120 },
{ "source": "Signups", "target": "Paid", "value": 30 }
]
}' \
-o chart.svgThat's it — chart.svg now has your rendered diagram. Ask for a PNG instead by setting "options": { "format": "png" }, see the full render reference.
You can use the UI builder to help with the styling, then copy the JSON into your API payload.
#Next steps
- Authentication — create and use an API key
- Render reference — every request field and response detail
- Limits — monthly quota and rate-limit headers
- Examples — curl, Node and Python