---
title: Quick start
description: 'Authenticate, write, and query with the API: Create an admin token to authorize API requests. curl -X POST "http://localhost:8181/api/v3/configure/token/admin" Check the status of the InfluxDB server. curl "http://localhost:8181/health" \ --header "Authorization: Bearer ADMIN_TOKEN" Write data to InfluxDB. curl "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto" --header "Authorization: Bearer ADMIN_TOKEN" \ --data-raw "home,room=Kitchen temp=72.0 home,room=Living\ room temp=71.5"I'
url: https://docs.influxdata.com/influxdb3/enterprise/api/quick-start/
estimated_tokens: 305
product: InfluxDB 3 Enterprise
version: enterprise
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb3/enterprise/api/quick-start/
---

[Download InfluxDB 3 Enterprise API Spec](/openapi/influxdb3-enterprise-openapi.yml)

Authenticate, write, and query with the API:

1. Create an admin token to authorize API requests.

   ```
   curl -X POST "http://localhost:8181/api/v3/configure/token/admin"
   ```

2. Check the status of the InfluxDB server.

   ```
   curl "http://localhost:8181/health" \
      --header "Authorization: Bearer ADMIN_TOKEN"
   ```

3. Write data to InfluxDB.

   ```
   curl "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto"
     --header "Authorization: Bearer ADMIN_TOKEN" \
     --data-raw "home,room=Kitchen temp=72.0
    home,room=Living\ room temp=71.5"
   ```

   If all data is written, the response is `204 No Content`.

4. Query data from InfluxDB.

   ```
   curl -G "http://localhost:8181/api/v3/query_sql" \
     --header "Authorization: Bearer ADMIN_TOKEN" \
     --data-urlencode "db=sensors" \
     --data-urlencode "q=SELECT * FROM home WHERE room='Living room'" \
     --data-urlencode "format=jsonl"
   ```

   Output:

   ```
   {"room":"Living room","temp":71.5,"time":"2025-02-25T20:19:34.984098"}
   ```

For more information, see the [Get started](/influxdb3/enterprise/get-started/) guide.
