Documentation menuAPI: Imports

API

Imports endpoints

The Import tab in the dashboard uses these endpoints. Use them yourself when you want to script an import. They need an admin, an owner or an organization key.

Last updated .

How does an import run?

  1. POST /sites/:siteId/imports with platform set to umami, simple_analytics or plausible. The response gives you an importId and the dates your plan allows.
  2. POST /sites/:siteId/imports/:importId/events with a batch of rows in events. Repeat for each batch. A request can be up to 50 MB.
  3. Set isLastBatch to true on the last batch.
  4. GET /sites/:siteId/imports to read the counts.
{ "data": [ { "importId": "3f6c2b1e-8d4a-4c1b-9e1f-2a7d5c9b0e11", "platform": "plausible", "importedEvents": 182000, "skippedEvents": 1200, "invalidEvents": 37, "startedAt": "2026-11-10 09:12:00", "completedAt": "2026-11-10 09:40:13" } ] }

The rows keep the column names of the tool they came from. Rows outside the allowed dates, or over the event limit for their month, are skipped and counted.

What can go wrong?

StatusMeaning
403The plan does not include data import
429Another import is running in the organization
413The batch is larger than 50 MB

DELETE /sites/:siteId/imports/:importId removes a finished import and its events. A running import cannot be deleted.