Output Charts

Docs

Agent API.

Create, update and publish dashboards and visuals from a bot or a script with an API key.

What it is

The agent API builds and maintains dashboards from code: a bot creates a dashboard, adds visuals, sizes and orders them, fills them with data and publishes the result. Every call goes to https://api.outputcharts.com/v1 with the key as a bearer token, Authorization: Bearer oc_live_…, and sends and returns JSON. Every account can make keys. On Free a key builds and keeps current the account's one dashboard, at the pace of On Free; on Solo updates are live. Every key may make 60 requests a minute across every call. An agent that has nothing but this page can start at Start without an account; /llms.txt and the skill file say the same for agents that read those. Assistants that take MCP servers use the same API as tools: see the MCP server.

A real run

Four exchanges from a real session on 28 November 2026: Claude Code, a usage export, and nothing else. A connected assistant does the same from a chat.

  1. You

    Read https://outputcharts.com/llms.txt and build me a dashboard of this month's AI spend by day and by model. The export is usage.csv.

  2. Agent

    Read llms.txt and usage.csv: 28 rows, two models, $54.30 in all. You have no account yet, so I'll open one for you first.

    POST /v1/signup → 201 in 4.3 s: a key for me, a claim link for you
  3. Agent

    Two KPIs, the daily line and a bar by model, published in the same call.

    POST /v1/dashboards { visuals, publish: true } → 201, dashboard.url
  4. Agent

    Here it is. The account is free and stays free; claim it from the email you just got. Say the word and I'll push new numbers when usage.csv changes: anything today, and after that each chart once a day.

5.5 seconds from the first call to the link. The dashboards in the gallery were built the same way, from the numbers in our tutorials.

Start without an account

An agent can open the account for the person it is working for. One call, no key, with their email address:

curl -X POST "https://api.outputcharts.com/v1/signup" \
  -H "Content-Type: application/json" \
  -d '{"email":"person@example.com","agentName":"Claude Code","useCase":"PR queue dashboard"}'

It answers 201:

{
  "account": { "id": "…", "email": "person@example.com", "tier": "free" },
  "apiKey": { "id": "…", "name": "Claude Code", "scope": "manage", "dashboardId": null,
              "secret": "oc_live_…", "mcpUrl": "https://api.outputcharts.com/mcp/oc_live_…", … },
  "claimUrl": "https://outputcharts.com/claim-account?email=person%40example.com",
  "claimEmailSent": true,
  "unclaimedUntil": "2026-11-27T09:12:00.000Z",
  "next": "Keep apiKey.secret: it is shown once. … The account is on Free: one dashboard, which you can build now and correct freely for its first 24 hours; after that each visual takes one update a day."
}

apiKey.secret is a Manage key, shown once; the agent keeps it and sends it as the bearer token from here on. The account is on Free from this minute, and the key works at once on its one dashboard. The person gets an email, "An AI agent set up Output Charts for you", with the same claimUrl: it opens the page where they sign in with Google or set a password and take the account over; the agent should hand them the link in the conversation too, and must when claimEmailSent is false (the address's domain takes no mail, so no email was sent). An account nobody claims and nobody pays for is deleted 30 days after sign-up, dashboards included. An address that already has an account answers 409 email_taken and makes nothing; sign-ups are limited to 5 per IP and 300 in all a day.

The person must claim the account within 24 hours of sign-up: from then on every call but GET /v1/me and the checkout answers 403 claim_required until they open the link once, after which calls resume at once:

{
  "error": "The person has not claimed this account yet",
  "code": "claim_required",
  "upgradeUrl": "https://outputcharts.com/account/billing",
  "claimUrl": "https://outputcharts.com/claim-account?email=person%40example.com",
  "fix": "The person must open the claim link once (claimUrl, also in the email they were sent); pushes resume as soon as they do."
}

Keys, scopes and binding

Create a key under Account → API keys and choose its scope, or start from the Manage key a sign-up returns. A Push only key can replace a visual's data, read a visual and call GET /v1/me; a Manage key can also create, edit, delete and publish dashboards and visuals, though no key can delete a dashboard. A key can also be bound to one dashboard: it can touch nothing outside it and cannot create dashboards.

Quickstart

Put the key in an environment variable named OC_KEY. First, create a dashboard:

curl -X POST "https://api.outputcharts.com/v1/dashboards" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Ops","ref":"ops"}'

It answers 201 with { "dashboard": { "id": "…", … }, "created": true }. Run it again and the same ref answers 200 with the existing dashboard, unchanged, and "created": false.

Then add a KPI to it, using the dashboard's id:

curl -X POST "https://api.outputcharts.com/v1/dashboards/<dashboard-id>/visuals" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"kpi","title":"Registered users","ref":"users","document":{"label":"Registered users","value":1280,"format":"number"}}'

It answers 201 with { "visual": { "id": "…", … }, "created": true }; keep that id for pushing. The same ref again answers 200 with the existing visual, unchanged, and "created": false.

Last, replace the visual's data. The body is the document and nothing else:

curl -X PUT "https://api.outputcharts.com/v1/visuals/<visual-id>/data" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"Registered users","value":1342,"format":"number"}'

It answers 200 with { "visualId": "…", "updatedAt": "…", "coerced": [], "coercedCount": 0 }, and every open copy of the dashboard shows the new number within 15 seconds.

One call to a live dashboard

The three steps above fit in one request: send visuals and publish: true with the dashboard, and the answer carries the public page's address. Send shareWith instead of, or as well as, publish to give named people access (the next section).

curl -X POST "https://api.outputcharts.com/v1/dashboards" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Store KPIs", "ref": "store-kpis", "publish": true,
    "visuals": [
      { "type": "kpi", "title": "MRR", "ref": "mrr",
        "document": { "label": "MRR", "value": 12840, "format": "number", "prefix": "$" } },
      { "type": "line", "title": "Sign-ups", "ref": "signups",
        "document": { "xKey": "date", "curve": "monotone", "series": [{ "key": "free" }, { "key": "paid" }],
                      "data": [{ "date": "2026-10-20", "free": 12, "paid": 3 }] } }
    ]
  }'

It answers 201 with { "dashboard": { "id", "url", "isPublic": true, … }, "created": true, "visuals": [ … ] }. The visuals are made in order, each as POST /v1/dashboards/{id}/visuals would make it, so give each one a ref: run the same call again and it answers 200 with "created": false, the dashboard unchanged and every visual that exists returned as it is; a run that stopped half way (a 409 conflict, a network error) is finished by the next one. Every dashboard the API returns has url; the page opens once isPublic is true.

Everything in the body is checked before anything is written: a bad document in the third visual answers 422 with its path (visuals[2].document.data[0].paid) and no dashboard exists afterwards. "dryRun": true stops there on purpose: it answers 200 { "dryRun": true } or the error the real call would give, and writes nothing.

Share with named people

Publishing opens the page to anyone with the link. The other way to give access is the app's email share: POST /v1/dashboards/{id}/shares with { "email" } gives one person view-only access after they sign in with that address, and emails them the link, naming the account's agent as the sharer. Someone who already has an account sees the dashboard at once; anyone else has the share attached the moment they sign up or sign in with that address. The dashboard need not be public: this is how named people see a private one.

curl -X POST "https://api.outputcharts.com/v1/dashboards/<dashboard-id>/shares" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "colleague@example.com" }'

It answers 201 with { "share": { "id", "email", "status", "url", … }, "created": true, "emailSent": true }; url is the page the person opens after signing in. The same address again answers 200 with "created": false and sends nothing, so a re-run never emails twice. On the one-call create, shareWith takes a list of addresses and does the same after the visuals, with or instead of publish. GET …/shares lists a dashboard's shares with their status, and DELETE …/shares/{shareId} revokes one. A dashboard holds at most 20 shares (403 share_limit).

An account you opened can send share emails only after the person has claimed it: until then POST /v1/dashboards/{id}/shares and shareWith answer 403 claim_required with claimUrl. Build and publish first, give the person the link and the claim link, and share once they have signed in.

Append rows, send CSV

A bar, bar-horizontal, line, area, table or scatter visual can take rows on the end instead of a whole new document:

curl -X POST "https://api.outputcharts.com/v1/visuals/<visual-id>/rows" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rows":[{"date":"2026-10-21","free":"1,204","paid":5}],"keepLast":90}'

The visual's settings (xKey, series, columns) stay; the rows go after the ones it holds, and the oldest fall off past keepLast, or past the type's cap (500 rows for charts, 200 for a table) when keepLast is left out; dropped counts them. On a map the rows merge by region code: a sent row replaces the stored row with the same region code, the others are added, and keepLast does not apply. On a progress list the rows merge by name: a sent row replaces the stored row with the same name, the others are added, and keepLast does not apply. On a status grid the rows merge by name: a sent row replaces the stored row with the same name, the others are added, and keepLast does not apply. On a heatmap the rows merge by cell (x and y) or date: a sent row replaces the stored row with the same cell (x and y) or date, the others are added, and keepLast does not apply. Their rows never fall off past the cap: an append that would take one past it (4000 on a map, 20 on a progress list, 200 on a status grid and 1000 on a heatmap) is a 422 at rows whose fix says to replace the whole list with PUT …/data. The one exception is a calendar heatmap's window, the 366 days ending at its latest date: an append drops the days before it and counts them in dropped, and an append that would push every stored day out of it is a 422 naming the sent row with the latest date, whose fix says to check the year or start the calendar over with PUT …/data, so a mistyped year cannot erase the calendar. It answers { "visualId", "updatedAt", "rows", "dropped", "coerced", "coercedCount" }. Two appends at the same moment do not lose rows: the write is conditional on what was read, and the loser reads again. A visual with no row list (pie, kpi, markdown, funnel, gauge, waterfall, treemap and sankey) answers 422 with a fix that says to send the whole document with PUT …/data.

Both PUT /v1/visuals/{id}/data and POST /v1/visuals/{id}/rows also take Content-Type: text/csv. The header row is the keys the visual's rows have; on PUT the rows replace the data and the settings stay, on POST they are appended, with ?keepLast=90 in the query string (which works with a JSON body too). Quoted fields, commas and newlines inside quotes, CRLF, bare CR and a BOM are fine; a ragged line is 400 invalid_csv naming the line, and a header with a key the visual does not have, or without one it needs, is 422 whatever the row count, so a wrong file never empties a visual.

curl -X PUT "https://api.outputcharts.com/v1/visuals/<visual-id>/data" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: text/csv" \
  --data-binary @signups.csv

On every write, numeric strings at the fields that must be numbers become numbers: thousands separators, a currency sign, a percent sign and parentheses for negatives are read ("$12,840", "(3)", "12%"), and in a table's number cells N/A, - and blank become null. In a field the page shows as a percent (a KPI with format: "percent", a percent column) "25%" is stored as 0.25, the fraction the page multiplies by 100. The answer to a push, an append or a batch lists what changed in coerced (at most 20 entries, with path, from and to) and counts all of them in coercedCount; the dashboard shows the same with no notice. Dates and labels are never rewritten, and a string that is not a number stays as sent, so the 422 names it. A CSV header with a key the visual does not have is a 422 whose fix lists the keys it expects: no column is ever dropped in silence, and no file ever empties a visual.

Update several visuals at once

One request keeps a whole dashboard fresh, keyed by each visual's ref:

curl -X PUT "https://api.outputcharts.com/v1/dashboards/<dashboard-id>/data" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mrr": { "label": "MRR", "value": 13100, "format": "number", "prefix": "$" },
    "signups": { "xKey": "date", "curve": "monotone", "series": [{ "key": "free" }, { "key": "paid" }],
                 "data": [{ "date": "2026-10-20", "free": 12, "paid": 3 }, { "date": "2026-10-21", "free": 15, "paid": 4 }] }
  }'

Each document is written as PUT …/data writes it, in the order sent, and one bad entry holds back nothing else. It answers 200 { "results": { "mrr": { "visualId", "updatedAt", "coerced", "coercedCount" }, … } } when every entry was written, and 422 batch_failed with the same results when any was not: a ref no visual has is { "error", "code": "not_found" }, a bad document is invalid_document with its details, fix and example.

Keys for CI

A Manage key can make a narrower key for the job that only sends data, so the Manage key never lands in a repository secret or a crontab:

curl -X POST "https://api.outputcharts.com/v1/keys" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"CI","scope":"push","dashboardId":"<dashboard-id>"}'

It answers 201 with the new key's secret and mcpUrl, shown once, under the keys page's rules: five live keys per account, and the dashboard must be the owner's. A key bound to a dashboard cannot make keys.

Refs

A ref is a name you choose for a dashboard or a visual: 1 to 64 characters of a-z, 0-9 and -. It is unique per account for dashboards and per dashboard for visuals, and it is set once: changing it is a 400, and a ref that another object has is a 409 ref_taken. A dashboard or visual made without a ref can be given one later with PATCH, once. Refs appear on public dashboard pages, so never put a secret in one.

Create by ref, push by id. Creating with a ref that exists returns that object instead of a second one, so a bot with no memory finds its dashboard on every run. GET /v1/dashboards?ref=ops finds a dashboard by ref, and GET /v1/dashboards/{id} lists its visuals with theirs. Then push to a visual by its id.

Size and position

size is { "w": 6, "h": 5 }. w is columns out of 12, from 3 to 12, and the editor offers 3, 4, 6, 8, 9 and 12. h is the height in 50-pixel units, from 3 to 16, so 5 is 250 pixels. Each type has its own minimums: a KPI can be 3 tall, most charts need 4, a map is at least 4 wide and 6 tall. Leave size out and the visual gets its type's default (a map is full width, 12 by 14).

position is an index in reading order, left to right and top to bottom. Leave it out and the visual goes last; a number past the end also goes last. To reorder what is already there, send PUT /v1/dashboards/{id}/order with { "visualIds": ["…", "…"] }, listing every visual of the dashboard once. The visuals reflow after any change of size, position or order.

The calls

{id} is a dashboard's id after /dashboards and a visual's after /visuals. The calls marked No key need none, a Push only key can make the calls marked Any key, and the rest need a Manage key.

CallNeedsBody, or what comes back
POST /v1/signupNo key{ email, agentName?, useCase? }. Makes the person's account, on Free, and answers 201 with a Manage key (apiKey.secret, shown once), its MCP URL and claimUrl. 5 per IP and 300 in all a day.
GET /v1/meAny keyThe key's scope and binding, the owner's tier, upgradeUrl and dashboard allowance, and the limits, on Free with the day's rhythm and the one dashboard a key can change. Works on every account.
POST /v1/keysManage{ name?, scope?, dashboardId? }: a narrower key, push only or bound to one dashboard. Answers 201 with the secret and mcpUrl, shown once.
POST /v1/billing/checkoutManage{ interval?, promotionCode? }. Answers { checkoutUrl, sessionId }: a Stripe Checkout page for the account's owner. Works on Free.
GET /v1/dashboardsManageThe dashboards, oldest first. ?ref=ops finds the one with that ref. A key bound to a dashboard sees only that one.
POST /v1/dashboardsManage{ title, description?, scheme?, ref?, visuals?, publish?, dryRun? }. Answers { dashboard, created, visuals }; dashboard.url is the public page.
GET /v1/dashboards/{id}ManageThe dashboard with its visualCount and its visuals in reading order, each with id, ref, type, title, size, position and document.
PATCH /v1/dashboards/{id}Manage{ title?, description?, scheme?, ref?, indexable? }. Send only what changes. Listing a public dashboard in the gallery is the owner's, in the app. A published dashboard that is not listed is for people with the link and carries noindex. indexable: false keeps the public page out of search engines, the gallery and the sitemap and answers a claimToken: the link /claim/<token> moves the dashboard to the signed-in account that opens it.
PUT /v1/dashboards/{id}/orderManage{ visualIds: [...] }, listing every visual of the dashboard once.
POST /v1/dashboards/{id}/publishManageMakes the dashboard public, for people with the link, under the same limits as the app. Listing it in the gallery is the owner's, in the app.
POST /v1/dashboards/{id}/unpublishManageMakes the dashboard private again.
POST /v1/dashboards/{id}/sharesManage{ email }: view-only access for one person after they sign in with that address, with an email; the same address again answers 200 with created false.
GET /v1/dashboards/{id}/sharesManageThe dashboard's shares, oldest first, each with its status (pending, active, revoked) and url.
DELETE /v1/dashboards/{id}/shares/{shareId}ManageRevokes one share; 204.
PUT /v1/dashboards/{id}/dataAny key{ <ref>: <document>, … }: the new document of each visual, by its ref. Answers { results }, or 422 batch_failed with the same results.
POST /v1/dashboards/{id}/visualsManage{ type, title?, ref?, document, size?, position? }. Only type and document are required. Answers { visual, created }.
GET /v1/visuals/{id}Any keyThe visual with its type, title, ref, size, position and document.
PATCH /v1/visuals/{id}Manage{ title?, document?, size?, ref? }. The type cannot change.
DELETE /v1/visuals/{id}ManageDeletes the visual. Answers 204 with no body.
PUT /v1/visuals/{id}/dataAny keyThe body is the visual's document itself, as on the push API, or text/csv rows that replace its data. Answers { visualId, updatedAt, coerced, coercedCount }.
POST /v1/visuals/{id}/rowsAny key{ rows, keepLast? }, or text/csv rows with ?keepLast=. Adds the rows after the visual's and drops the oldest past keepLast; on a map, progress list, status grid or heatmap the rows merge by key instead, keepLast does not apply, and a calendar heatmap keeps the 366 days ending at its latest date. Answers { visualId, updatedAt, rows, dropped, coerced, coercedCount }.
GET /v1/schemaNo keyThe visual types with their document rules, an example and size limits, then the widths, schemes and limits.
GET /v1/openapi.jsonNo keyThis API as an OpenAPI 3.1 document.

A dashboard's title takes up to 120 characters and its description up to 500. scheme is one of ink, carbon, paper, ledger, slate and signal, and ink when left out.

Discover the shapes

GET /v1/schema lists the visual types, each with the rules for its document, an example document and its size limits, then the widths, the schemes and the limits. GET /v1/openapi.json describes the whole API as an OpenAPI 3.1 document, for tools that read one. Both are public: they need no key.

curl https://api.outputcharts.com/v1/schema
curl https://api.outputcharts.com/v1/openapi.json

Errors

Failures answer with a status and a body of { error, code }, as on the push API. A 422 invalid_document also lists the problems in details, says in fix what to do next and shows a valid document of the type in example (for a heatmap, in the layout being written); other errors carry fix where it helps, a 403 requires_solo carries upgradeUrl and writableDashboardId, a 429 daily_limit carries nextUpdateAt and upgradeUrl, and a 403 claim_required carries claimUrl too. A 429 carries a Retry-After header in seconds: for rate_limited, until the next UTC minute, when the key's 60 requests refill (on sign-up, the next UTC day); for daily_limit, until the next UTC day.

StatusCodeMeaning
400invalid_jsonThe body is not valid JSON.
400invalid_requestA field, a query parameter or an id is not valid: the title, ref, size, position, order or an id in the URL. error names it.
400invalid_promotion_codeThe promotionCode sent to the checkout is unknown or no longer active. Call again without it, or with one that is.
400invalid_csvA text/csv body is malformed: a ragged line, a duplicate or empty header cell, no header. error names the line.
401invalid_api_keyThe key is missing, mistyped or revoked. A brand-new key can take a few seconds to work.
403requires_soloThe account is on Free and the key tried to change a dashboard other than its first. The body carries upgradeUrl, writableDashboardId and a fix.
403claim_requiredAn account an agent made was not claimed within 24 hours of sign-up. The body carries claimUrl, upgradeUrl and a fix; calls resume the moment the person opens the link. GET /v1/me and the checkout still answer. Also, from sign-up on: a share email (POST /v1/dashboards/{id}/shares, or shareWith on the create) from an account nobody has claimed yet; the body carries claimUrl and a fix, and building and publishing still work.
403forbiddenThe key's scope or binding does not allow this: a Push only key on a Manage call, a key bound to another dashboard, or a visual that belongs to another account.
403dashboard_limitThe account is at its dashboard limit, 1 on Free and 20 on Solo. The body also carries limit.
403visual_limitThe dashboard already has 24 visuals.
403public_limitPublishing would pass the account's limit of public dashboards, 1 on Free and 20 on Solo. Through a key the body also carries upgradeUrl and a fix.
403share_limitThe dashboard already has 20 shares; revoke one, or publish it instead.
404not_foundNo dashboard or visual has that id, or it was deleted.
409already_subscribedThe checkout was asked for an account that already pays through Stripe. Nothing to pay; every call works.
409email_takenThe address sent to sign-up already has an account, claimed or not. Nothing was made; the fix says to hand its owner the dashboard as one JSON block that names each visual by its ref, to import into the dashboard they have (open it and choose Import JSON), or to sign in and make a key.
409ref_takenAnother dashboard has that ref, or, within one dashboard, another visual has it.
409conflictAnother request was changing the same dashboard at the same moment and the server's own retries ran out. Send the call again, and make calls to one dashboard one at a time.
413payload_too_largeThe document is over 100 KB.
422invalid_documentThe JSON does not fit the visual's type. details lists each problem (a sent row as rows[i] on an append), fix says what to do next and example is a valid document of the type, for a heatmap in the layout being written. An append past a merging type's row cap is refused at rows, and one that would push every stored day of a calendar heatmap out of its window at the row with the latest date; both fixes name PUT /v1/visuals/{id}/data.
422batch_failedSome entries of a batch were not written. results says per ref what happened; the others are written.
429rate_limitedMore than 60 requests from one key in the current minute, across every call; on sign-up, more than 5 from one address today or 300 in all.
429daily_limitOn Free, this chart was already updated today, or the account has added three charts today. nextUpdateAt says when; a Retry-After header gives the seconds.

On Free

A Free account has one dashboard. Its keys build it and keep it current: for the dashboard's first 24 hours nothing is limited, and after that each visual takes one update a day and the account three new visuals a day. Past that the call answers 429 daily_limit with nextUpdateAt; until then, hand the person one JSON block that names each visual by its ref, to import into that dashboard (they open it and choose Import JSON, which updates the visuals whose refs it has and adds the others), or get them a Checkout link with POST /v1/billing/checkout:

{
  "error": "This chart was already updated today on the Free plan",
  "code": "daily_limit",
  "nextUpdateAt": "2026-11-28T00:00:00.000Z",
  "upgradeUrl": "https://outputcharts.com/account/billing",
  "fix": "Wait until nextUpdateAt; or give the person one JSON block that names each visual by its ref, to import into this dashboard (they open the dashboard and choose Import JSON, which updates the visuals whose refs it has); or get them a checkout link with POST /v1/billing/checkout."
}

A key of a Free account that holds more than one dashboard changes only the first; another answers 403 requires_solo with writableDashboardId:

{
  "error": "On Free an API key can change one dashboard",
  "code": "requires_solo",
  "upgradeUrl": "https://outputcharts.com/account/billing",
  "writableDashboardId": "…",
  "fix": "This account is on Free, where a key changes only its first dashboard, …. Work on that one, or get the owner a checkout link with POST /v1/billing/checkout."
}

GET /v1/me says where the account stands and what its limits are, on any account and before it is claimed:

{
  "key": { "id": "…", "name": "Claude Code (agent)", "scope": "manage", "dashboardId": null },
  "owner": { "tier": "free", "upgradeUrl": "https://outputcharts.com/account/billing", "dashboardCount": 1, "dashboardLimit": 1 },
  "limits": {
    "visualsPerDashboard": 24,
    "requestsPerMinute": 60,
    "updatesPerVisualPerDay": 1,
    "newVisualsPerDay": 3,
    "writableDashboardId": "…",
    "firstDayEndsAt": "2026-11-28T09:12:00.000Z"
  }
}

limits.firstDayEndsAt is when the dashboard's first 24 hours end; on Solo the four Free fields are null. The checkout works on Free too:

curl -X POST "https://api.outputcharts.com/v1/billing/checkout" \
  -H "Authorization: Bearer $OC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"interval":"yearly","promotionCode":"LAUNCH"}'

It answers { "checkoutUrl", "sessionId" }: a hosted Stripe page for the account's owner, with the promotion code applied when one is sent (400 invalid_promotion_code when it is unknown, or when Stripe will not apply it to this checkout, the error saying why). An account that already pays answers 409 already_subscribed. The agent gives the person checkoutUrl; the moment they pay, the daily limits end. The same page is reached from upgradeUrl, where ?code=LAUNCH fills the code in.

For your bot's instructions

Paste this into the instructions of the bot that holds the key:

You have an Output Charts API key in OC_KEY. The API is https://api.outputcharts.com/v1 with Authorization: Bearer $OC_KEY. Read GET /v1/schema once to learn the visual types. Dashboards and visuals have a ref you choose; create them with a ref so a second run finds them instead of making duplicates. Create a dashboard with its visuals and publish true in one POST /v1/dashboards and give the person dashboard.url. Keep it fresh with PUT /v1/visuals/{id}/data, POST /v1/visuals/{id}/rows to append, or PUT /v1/dashboards/{id}/data for several visuals by ref. Make calls to one dashboard one at a time. Never delete a dashboard. If a call answers daily_limit, tell me when the page can update again and instead give me the JSON block, with each visual's ref, to import into the same dashboard. If a call answers 403 claim_required, the person has not claimed the account: give them the claimUrl from the body; calls work again as soon as they open it.

With the MCP server connected, use the instructions on the MCP server page.

Connect as an MCP server

The agent API is also an MCP server, at https://api.outputcharts.com/mcp: every call above as a tool, for Claude, ChatGPT, Cursor, Grok and any other MCP client, with the same key. The MCP server page has the setup for each client and the list of tools.