All Products
Search
Document Center

Time Series Database:HTTP API overview

Last Updated:Mar 28, 2026

The Time Series Database (TSDB) HTTP API lets you read, write, and manage time series data over HTTP. Almost all TSDB features are accessible through the API, including querying time series data, managing metadata, and storing data points.

Protocol conventions

Before calling individual endpoints, review the following global conventions. They apply to every API request and response.

Data format

JSON is the default format for request and response bodies.

HTTP verbs

The API is RESTful in nature. Alternative access methods are also provided for clients that cannot strictly comply with the REST protocol.

Response codes

All responses use standard HTTP status codes. When a request fails, the response body contains error details in a specific format.

Endpoints

The following table lists all available TSDB HTTP API endpoints.

EndpointDescription
/api/putWrites data
/api/queryQueries data
/api/query/lastQueries the latest data points of a specified timeline
/api/mputWrites the multi-value data
/api/mqueryQueries the multi-value data
/api/query/mlastQueries the latest data points in the multi-value data model
/api/suggestQueries metrics, tag keys, tag values, and fields
/api/dump_metaQueries the tag values of a specified tag key
/api/ttlSets the time to live (TTL) of data
/api/delete_dataDeletes data
/api/delete_metaDeletes timelines