kitegraph
API access is included on the Professional and Business plans

Errors and status codes

One error shape, and every status code the API returns.

Every error returns the same JSON shape, with a machine-readable code and a human-readable message:

{ "error": { "code": "not_found", "message": "No chart with that id" } }

Branch on the code; show the message. The HTTP status matches the code.

Status codes

StatusCodeWhen it fires
401unauthorizedThe key is missing, invalid, revoked, or the account no longer has API access.
403insufficient_scopeThe key is valid but was not granted the scope the endpoint requires.
404not_foundNo resource with that id in your workspace (charts, folders), or an unknown statistic id or source.
422invalid_bodyThe request body is not a JSON object.
422invalid_dataA CSV upload could not be parsed (needs a header row and at least one data column).
422invalid_series_transformmeta.seriesTransform has an unknown function or a malformed op.
422invalid_formatAn export format other than png, svg, pdf, or csv.
422invalid_folder / invalid_parentA folder id (or parent) that is missing, in another workspace, or would create a cycle.
422missing_sourceConstructing a statistic without a source query param.
422missing_dimensionA required dimension was omitted when constructing a statistic. The message names it.
422invalid_selectionThe dimension values do not resolve to a statistic.
429rate_limitedOver the per-account rate limit. Retry after the Retry-After seconds.
500export_failedThe renderer could not produce the file.
503export_busyToo many exports at once. Retry after Retry-After: 5.
Errors and status codes — Kitegraph docs