Column value lookup
Columns whose stored values the agent looks up before it writes SQL.
Base URL https://futuresmart.ai/database-agent/api · every request sends X-API-Key. Samples read the key from DATABASE_AGENT_API_KEY. All endpoints
Get High Cardinality Columns For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/high-cardinality-columnsGet high-cardinality columns for an agent, scoped to a specific database.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Other responses
422Validation Error
Set High Cardinality Columns For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/high-cardinality-columnsSet high-cardinality columns for an agent, scoped to a specific database.
Indexes the column values into the HC Qdrant collection (tagged with db_id), then merges the configuration into TableDescription. Mirrors the agent-global route but resolves the DB connection by db_id so the right database is read.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · application/json
| Name | Type | Description |
|---|---|---|
columnsrequired | array<HighCardinalityColumnItem> | List of high cardinality columns |
↳ table_namerequired | string | Table name |
↳ column_namerequired | string | Column name |
Other responses
422Validation Error
Example request body
{
"columns": [
{
"table_name": "<table_name>",
"column_name": "<column_name>"
}
]
}Delete High Cardinality Columns For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/high-cardinality-columnsDelete specific high-cardinality columns for an agent, scoped to a database.
Removes the columns from the config and best-effort deletes the matching db_id-scoped vectors from the HC Qdrant collection.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · application/json
| Name | Type | Description |
|---|---|---|
columnsrequired | array<HighCardinalityColumnItem> | List of high cardinality columns |
↳ table_namerequired | string | Table name |
↳ column_namerequired | string | Column name |
Other responses
422Validation Error
Example request body
{
"columns": [
{
"table_name": "<table_name>",
"column_name": "<column_name>"
}
]
}Get All Hc Profiles For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/hc-profileGet stored HC column profiles for all profiled tables of a specific database.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Other responses
422Validation Error
Trigger Hc Profile For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/hc-profileTrigger automatic profiling of a specific database's tables.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · application/json (optional)
| Name | Type | Description |
|---|---|---|
config | object | null | |
↳ low_cardinality_threshold | integer | null | |
↳ high_null_threshold | number | null | |
↳ min_avg_text_len_for_hc | number | null | |
↳ sample_limit | integer | null | |
tables | array<string> | null | |
auto_register_hc | boolean |
Other responses
422Validation Error
Example request body
{
"auto_register_hc": true
}Delete All Hc Profiles For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/hc-profileDelete all stored HC column profiles for a specific database (and its Qdrant vectors).
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Other responses
422Validation Error
Get Table Hc Profile For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/{table_name}/hc-profileGet the stored HC column profile for a specific table in a specific database.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
table_namerequired | string | Table name |
Other responses
422Validation Error
Delete Table Hc Profile For Db
/v1/agents/{agent_id}/databases/{db_id}/tables/{table_name}/hc-profileDelete the stored HC column profile for a specific table in a specific database.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
table_namerequired | string | Table name |
Other responses
422Validation Error