Endpoints
Every endpoint, with the scope each key needs.
| Endpoint | Scope | Returns |
|---|---|---|
| GET/v1/statistics?search=&source= | data:read | Search a source's statistics. |
| GET/v1/statistic/{id} | data:read | One statistic: series, unit, geography, source, license, coverage. |
| GET/v1/statistic?source=&… | data:read | Construct an exact statistic from dimension values; mints a stable id. |
| GET/v1/sources | data:read | The source registry. |
| GET/v1/sources/{source} | data:read | One source's dimensions. |
| GET/v1/sources/{source}/dimensions/{dim} | data:read | A dimension's valid values. |
| GET/v1/charts | chart:read | Your charts (workspace-scoped). |
| POST/v1/charts | chart:write | Create a chart. |
| GET/v1/charts/{id} | chart:read | One chart resource. |
| PATCH/v1/charts/{id} | chart:write | Update kind, series, meta, or folderId. |
| DELETE/v1/charts/{id} | chart:write | Delete a chart. |
| PUT/v1/charts/{id}/data | chart:write | Set the chart's data from a CSV body. |
| POST/v1/charts/{id}/publish | chart:write | Publish (or update) the hosted embed. |
| GET/v1/charts/{id}/export/{png|svg|pdf} | chart:read | The chart as file bytes. |
| GET/v1/folders | folder:read | Your folders (workspace-scoped). |
| POST/v1/folders | folder:write | Create a folder. |
| GET/v1/folders/{id} | folder:read | One folder. |
| PATCH/v1/folders/{id} | folder:write | Rename or move a folder. |
| DELETE/v1/folders/{id} | folder:write | Delete a folder; its charts move up a level. |
| GET/v1/themes | theme:read | Your themes. |