---
title: Write data to InfluxDB 3 Cloud
description: Collect and write time series data to InfluxDB 3 Cloud.
url: https://docs.influxdata.com/influxdb3/cloud/write-data/
estimated_tokens: 975
product: InfluxDB 3 Cloud
version: cloud
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb3/cloud/write-data/
date: '2026-06-16T10:55:06-04:00'
lastmod: '2026-06-16T10:55:06-04:00'
---

Use tools like the

CLI, Telegraf, and InfluxDB client libraries
to write time series data to InfluxDB 3 Cloud.[line protocol](#line-protocol)is the text-based format used to write data to InfluxDB.

> [!Tip]
> Tools are available to convert other formats (for example—[CSV](/influxdb3/cloud/write-data/use-telegraf/csv/)) to line protocol.

* [Line protocol](#line-protocol)
  * [Line protocol elements](#line-protocol-elements)

* [Write data to InfluxDB](#write-data-to-influxdb)
  * [Use InfluxDB client libraries to write data](#use-influxdb-client-libraries-to-write-data)
  * [Use the influxdb3 CLI to write data](#use-the-influxdb3-cli-to-write-data)
  * [Use the InfluxDB HTTP API to write data](#use-the-influxdb-http-api-to-write-data)

#### Choose the write endpoint for your workload

When bringing existing v1 write workloads, use the InfluxDB 3 Cloud
HTTP API [`/write` endpoint](/influxdb3/cloud/guides/api-compatibility/v1/).
When creating new write workloads, use the HTTP API[`/api/v2/write` endpoint](/influxdb3/cloud/guides/api-compatibility/v2/).

## Line protocol

All data written to InfluxDB is written using[line protocol](/influxdb3/cloud/reference/line-protocol/), a text-based format
that lets you provide the necessary information to write a data point to InfluxDB.

### Line protocol elements

In InfluxDB, a point contains a table name, one or more fields, a timestamp,
and optional tags that provide metadata about the observation.

Each line of line protocol contains the following elements:

\* Required

* \* **table**: A string that identifies the
  table to store the data in.
* **tag set**: Comma-delimited list of key value pairs, each representing a tag.
  Tag keys and values are unquoted strings. *Spaces, commas, and equal characters
  must be escaped.*
* \* **field set**: Comma-delimited list of key value pairs, each
  representing a field.
  Field keys are unquoted strings. *Spaces and commas must be escaped.*Field values can be [strings](/influxdb3/cloud/reference/line-protocol/#string)(quoted),[floats](/influxdb3/cloud/reference/line-protocol/#float),[integers](/influxdb3/cloud/reference/line-protocol/#integer),[unsigned integers](/influxdb3/cloud/reference/line-protocol/#uinteger),
  or [booleans](/influxdb3/cloud/reference/line-protocol/#boolean).
* **timestamp**: [Unix timestamp](/influxdb3/cloud/reference/line-protocol/#unix-timestamp)associated with the data. InfluxDB supports up to nanosecond precision.*If the precision of the timestamp is not in nanoseconds, you must specify the
  precision when writing the data to InfluxDB.*

#### Line protocol element parsing

* **table**: Everything before the *first unescaped comma before the first
  whitespace*.
* **tag set**: Key-value pairs between the *first unescaped comma* and the *first
  unescaped whitespace*.
* **field set**: Key-value pairs between the *first and second unescaped whitespaces*.
* **timestamp**: Integer value after the *second unescaped whitespace*.
* Lines are separated by the newline character (`\n`).
  Line protocol is whitespace sensitive.

myTable,tag1=val1,tag2=val2 field1="v1",field2=1i 0000000000000000000

*For schema design recommendations, see[InfluxDB schema design](/influxdb3/cloud/write-data/best-practices/schema-design/).*

## Write data to InfluxDB

### [Use InfluxDB client libraries to write data](/influxdb3/cloud/write-data/client-libraries/)

Use InfluxDB API clients to write points as line protocol data to InfluxDB 3 Cloud.

### [Use the influxdb3 CLI to write data](/influxdb3/cloud/write-data/influxdb3-cli/)

Use the [`influxdb3` CLI](/influxdb3/cloud/reference/cli/influxdb3/) to write line protocol data to InfluxDB 3 Cloud.

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

Use the `/api/v3/write_lp`, `/api/v2/write`, or `/write` HTTP API endpoints to write data to InfluxDB 3 Cloud.
