---
title: "Render a bar or line chart (SVG or PNG) from your own series. Free."
method: POST
path: "/v1/chart"
---

# Render a bar or line chart (SVG or PNG) from your own series. Free.

`POST /v1/chart`

## Request

- Base URL: `https://api.americantradesindex.com`
- URL: `https://api.americantradesindex.com/v1/chart`
- Auth: HTTP bearer

## Query parameters

- `format` string

## Request body

- object
  - `kind` 'bar' | 'line', required
  - `title` string
  - `subtitle` string
  - `unit` string
  - `source` string
  - `series` object[], required
    - `label` string
    - `value` number

## Response `200`

chart

## Other responses

- `400`: invalid_request: detail names the field
- `401`: unauthorized: missing, invalid or revoked key
- `402`: upgrade_required (no active plan), credits_exhausted (period pool used up) or payment_required (last charge failed); body carries an `upgrade` URL
- `429`: rate_limited (120/min per workspace). Every response carries RateLimit-Limit/Remaining/Reset/Policy; a 429 adds Retry-After

---

[API](https://skmtc.dev/americantradesindex/apis/american-trades-index-api.md) · [All operations](https://skmtc.dev/americantradesindex/apis/american-trades-index-api/llms.txt) · [OpenAPI document](https://skmtc.dev/americantradesindex/apis/american-trades-index-api/revisions/5a9de4d8c76b?raw)
