---
title: Write data to InfluxDB
description: Collect and write time series data to InfluxDB Cloud Serverless and InfluxDB OSS.
url: https://docs.influxdata.com/influxdb3/cloud-serverless/write-data/
estimated_tokens: 501
product: InfluxDB 3 Cloud
version: cloud
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb3/cloud-serverless/write-data/
date: '2026-04-20T11:26:19-05:00'
lastmod: '2026-04-20T11:26:19-05:00'
---

Write data to InfluxDB Cloud Serverless using the following tools and methods:

> [!Note]
> #### Choose the write endpoint for your workload
>
> When bringing existing v1 write workloads, use the InfluxDB Cloud Serverless HTTP API [`/write` endpoint](/influxdb3/cloud-serverless/guides/api-compatibility/v1/).
> When creating new write workloads, use the HTTP API [`/api/v2/write` endpoint](/influxdb3/cloud-serverless/guides/api-compatibility/v2/).

### [Use the InfluxDB HTTP API to write data](/influxdb3/cloud-serverless/write-data/http-api/)

Use the InfluxDB v1 `/write` HTTP API endpoint to write data to InfluxDB Cloud Serverless.

### [Use Telegraf to write data](/influxdb3/cloud-serverless/write-data/use-telegraf/)

Use Telegraf to collect and write data to InfluxDB. Create Telegraf configurations in the InfluxDB UI or manually configure Telegraf.

### [Write CSV data to InfluxDB](/influxdb3/cloud-serverless/write-data/csv/)

Use the `influx CLI`, InfluxDB user interface, or Telegraf to write CSV data to InfluxDB.

### [Write line protocol data to InfluxDB Cloud Serverless](/influxdb3/cloud-serverless/write-data/line-protocol/)

Use Telegraf and API clients to write line protocol data to InfluxDB Cloud Serverless.

### [Best practices for writing data](/influxdb3/cloud-serverless/write-data/best-practices/)

Learn about the recommendations and best practices for writing data to InfluxDB.

### [Troubleshoot issues writing data](/influxdb3/cloud-serverless/write-data/troubleshoot/)

Troubleshoot issues writing data. Find response codes for failed writes. Discover how writes fail, from exceeding rate or payload limits, to syntax errors and schema conflicts.

### [Delete data](/influxdb3/cloud-serverless/write-data/delete-data/)

Use measurements, tags, and timestamp columns to avoid querying unwanted data.

#### Related

* [Line protocol](/influxdb3/cloud-serverless/reference/syntax/line-protocol/)
* [influx write](/influxdb3/cloud-serverless/reference/cli/influx/write/)
