Documentation · API reference
POST/api/v1/sites/{site}/imports

Import a file

Import a file. It is read again, exactly as the check read it.

Parameters

sitein the address
neededThe site's id or name
sourcein the address
needed`plausible`, `umami`, `goatcounter`, `matomo` or `tidekeeper`.
namein the address
neededThe file's name, to show beside the import.

The answer

Status 201

ImportView

by
stringneeded
days
integerneeded
dims
list of stringneededThe dimensions it filled, by name.
file
stringneeded
from
stringneeded
id
stringneeded
imported
integerneeded
notes
list of stringneeded
removable
booleanneededWhether it can still be taken out with one click.
removed
integer or null
source
stringneeded
source_label
stringneeded
to
stringneeded
views
integerneeded
visitors
integerneeded

Asking

With your token from Settings
curl -X POST https://tidekeeper.eu/api/v1/sites/example.org/imports \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/imports", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());