---
title: "Create a bar, line, or stacked bar chart from numbers. Returns SVG and PNG files plus a hosted result for 24 hours."
method: POST
path: "/api/chartlink"
tags: ["chartlink"]
---

# Create a bar, line, or stacked bar chart from numbers. Returns SVG and PNG files plus a hosted result for 24 hours.

`POST /api/chartlink`

## Request

- Base URL: `https://ouro.tools`
- URL: `https://ouro.tools/api/chartlink`
- Auth: none required

## Request body

- object
  - `title` string
  - `subtitle` string
  - `caption` string
  - `type` 'bar' | 'line' | 'stacked-bar'
  - `theme` 'paper' | 'midnight' | 'sage'
  - `width` integer
  - `height` integer
  - `labels` string[], required
  - `datasets` object[], required
    - `name` string
    - `values` number[], required

## Response `200`

Successful result

## Other responses

- `201`: Resource created
- `400`: Invalid input
- `401`: Missing or invalid access
- `402`: Trial exhausted; credits required
- `429`: Rate limit exceeded
- `503`: Required service not configured

---

[API](https://skmtc.dev/ouro/apis/ouro-tools.md) · [All operations](https://skmtc.dev/ouro/apis/ouro-tools/llms.txt) · [OpenAPI document](https://skmtc.dev/ouro/apis/ouro-tools/revisions/44473b60854d?raw)
