---
title: Use the InfluxDB HTTP API to write data
description: Use the /api/v3/write_lp, /api/v2/write, or /write HTTP API endpoints to write data to InfluxDB 3 Core.
url: https://docs.influxdata.com/influxdb3/core/write-data/http-api/
estimated_tokens: 548
product: InfluxDB 3 Core
version: core
---

# Use the InfluxDB HTTP API to write data

Use the InfluxDB HTTP API to write data to InfluxDB 3 Core. Different APIs are available depending on your integration method.

#### Choose the write endpoint for your workload

When creating new write workloads, use the [InfluxDB HTTP API `/api/v3/write_lp` endpoint](/influxdb3/core/write-data/http-api/v3-write-lp/) and [client libraries](/influxdb3/core/write-data/client-libraries/).

When bringing existing *v1* write workloads, use the InfluxDB 3 Core HTTP API [`/write` endpoint](/influxdb3/core/api/write-data/#operation/PostV1Write).

When bringing existing *v2* write workloads, use the InfluxDB 3 Core HTTP API [`/api/v2/write` endpoint](/influxdb3/core/api/write-data/).

**For Telegraf**, use the InfluxDB v1.x [`outputs.influxdb`](/telegraf/v1/output-plugins/influxdb/) or v2.x [`outputs.influxdb_v2`](/telegraf/v1/output-plugins/influxdb_v2/) output plugins. See how to [use Telegraf to write data](/influxdb3/core/write-data/use-telegraf/).

### [Use the v3 write\_lp API to write data](/influxdb3/core/write-data/http-api/v3-write-lp/)

Use the `/api/v3/write_lp` HTTP API endpoint to write data to InfluxDB 3 Core.

### [Use compatibility APIs and client libraries to write data](/influxdb3/core/write-data/http-api/compatibility-apis/)

Use HTTP API endpoints compatible with InfluxDB v2 and v1 clients to write points as line protocol data to InfluxDB 3 Core.

#### Related

-   [Write data to InfluxDB 3 Core](/influxdb3/core/get-started/write/)
-   [/api/v3/write\_lp endpoint](/influxdb3/core/api/write-data/#operation/PostWriteLP)
