---
title: "Ingest CSV file"
method: POST
path: "/datahub/v1/csv/upload"
tags: ["DataHub"]
---

# Ingest CSV file

`POST /datahub/v1/csv/upload`

Sends a batch of events to DataHub using a CSV file, either uncompressed or compressed in ZIP or GZ format. It may take up to 15 minutes for the data to become available in the DoiT console.

## Response `201`

OK - Ingestion succeeded.

- object
  - `batch` string — batch id, generated during ingestion
  - `ingestedRows` integer — the number of events that have been accepted for processing

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `500` — Internal Server Error - Something went wrong with the DoiT API server.

---

[API](https://skmtc.net/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.net/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/versions/9416402fc119/schema)
