Schema API
Database schema introspection
REST API endpoints for Schema. 5 operations.
Get the database schema
plaintext
GET /api/v1/schemaReturns the tables, views, and types in the tenant's database.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Schema information |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getSchema
Search schema columns
plaintext
GET /api/v1/schema/columnsReturns columns across the schema matching an optional name search term.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
q | query | string | No | Column-name search term |
Responses
| Status | Description |
|---|---|
200 | Matching columns |
401 | Missing or invalid API key |
500 | Internal error |
operationId: searchSchemaColumns
Analyze PII columns
plaintext
GET /api/v1/schema/piiReturns columns flagged as likely personally identifiable information.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | PII column analysis |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listPiiColumns
List schema relationships
plaintext
GET /api/v1/schema/relationshipsReturns the foreign-key relationships between tables in the schema.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Foreign key relationships |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getSchemaRelationships
Get a table's schema
plaintext
GET /api/v1/schema/table/{name}Returns the columns and types for a single table.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Table name |
Responses
| Status | Description |
|---|---|
200 | Table columns and types |
401 | Missing or invalid API key |
404 | Resource not found |
500 | Internal error |
operationId: getTableSchema