All endpoints are served on the TiDB status port (defaultDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pingcap/tidb/llms.txt
Use this file to discover all available pages before exploring further.
10080). See HTTP API Overview for base URL and security notes.
GET /status
Returns the current server status including active connections, build version, and statistics initialization progress.Number of currently open client connections.
Git commit hash of the running TiDB binary.
TiDB version string.
Percentage of statistics initialization completed at startup.
100 means fully initialized.GET /metrics
Returns all Prometheus metrics for this TiDB instance in the standard Prometheus exposition format.This endpoint is intended to be scraped by Prometheus. The output format follows the Prometheus text exposition format.
GET /regions/meta
Returns metadata for all regions known to this TiDB instance, including leader, peers, and epoch information.Unique region identifier.
The current leader peer for this region.
All peers (replicas) for this region.
Epoch metadata used for routing consistency.
GET /regions/hot
Returns the currently hot (high-traffic) read and write regions, grouped by table and index.Hot regions for read traffic.
Hot regions for write traffic.
GET /tables///regions
Returns region distribution information for a specific table, including record regions and index regions.Table ID.
Table name.
Index region information (same structure as
record_regions).Regions holding the table’s row data.
GET /schema
Returns schema information for all databases.Internal database ID.
Database name in original (
O) and lowercase (L) forms.Default character set for the database.
Default collation for the database.
Schema state (5 = public/active).
GET /schema/
Returns table listing for the specified database. Add?id_name_only=true to get a compact list of table IDs and names.
GET /schema//
Returns the full schema definition for a specific table.GET /settings
Returns the current runtime settings for this TiDB instance as a JSON object.POST /settings to update them; see the Administration API for details.