The Schema Exploration API lets authenticated users browse the ERP’s registered tables, retrieve full column metadata and DDL, and search for relevant tables using natural-language queries. All three endpoints share the same rate-limit tier as the chat API and require a valid Bearer JWT.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yohangr3/agentelanggrafh/llms.txt
Use this file to discover all available pages before exploring further.
All schema endpoints are subject to the same rate limit as the chat endpoint. Exceeding the limit returns
429 Too Many Requests.Authentication
Every request must include anAuthorization header with a Cognito-issued JWT.
GET /schema/tables
Returns a sorted list of every table registered in the schema registry, grouped first bytable_type and then alphabetically by name.
Response — TableListResponse
Array of table summary objects, sorted by
(table_type, table_name).Total number of tables returned.
Example
GET /schema/tables/{table_name}
Returns full metadata for a single table, including every column’s name, type, and description, plus the original DDL statement and any business usage notes recorded in the registry.Path Parameters
The exact table name as it appears in the schema registry (case-sensitive).
Response — TableDetailResponse
The physical table name.
dimension, fact, or view.Business description of the table.
Approximate row count from the registry.
List of column-level metadata objects.
The
CREATE TABLE statement for the table, if available.Free-form notes recorded by schema owners about business logic or caveats.
Error Responses
| Status | Condition |
|---|---|
404 Not Found | No table with the given table_name exists in the registry. |
401 Unauthorized | Missing or invalid JWT. |
429 Too Many Requests | Rate limit exceeded. |
Example
POST /schema/search
Performs a semantic similarity search over all registered table descriptions using a FAISS vector index. Returns the most relevant tables for a natural-language query, which is useful for discovering which tables to query before writing a prompt.Request Body — TableSearchRequest
Natural-language search query, e.g.
"monthly revenue by cost center". Must be between 1 and 500 characters.Number of results to return. Must be between
1 and 20 (inclusive).Response — TableSearchResponse
Matched tables ranked by semantic relevance.
Echo of the original search query as received.