Documentation menu

Get database tables

GEThttps://api.instacloud.com/projects/{projectId}/database/tables

Token scope: account · org · project — read-only tokens allowed.

List schemas, tables, columns, and keys (live introspection, never cached). Gated — db.query. May wake a suspended database.

Parameters

NameInTypeRequiredDescription
branchquerystringnoBranch name (defaults to the project's default branch)
groupquerystringnopostgres service name (default: the sole postgres service)
databasequerystringnodatabase on the instance (default: the connection-string database)
projectIdpathstringyes

Responses

200

Default Response

FieldTypeRequiredDescription
tablesobject[]yes
tables.schemastringyes
tables.namestringyes
tables.approxRowsintegeryespg_class.reltuples estimate — render as "~N rows"
tables.columnsobject[]yes
tables.columns.namestringyes
tables.columns.dataTypestringyes
tables.columns.defaultstring | nullyes
tables.columns.identitybooleanyes
tables.primaryKeystring[]yes
tables.foreignKeysobject[]yes
tables.foreignKeys.namestringyes
tables.foreignKeys.columnsstring[]yes
tables.foreignKeys.foreignSchemastringyes
tables.foreignKeys.foreignTablestringyes
tables.foreignKeys.foreignColumnsstring[]yes

202

Default Response

FieldTypeRequiredDescription
status"approval_required"no
approvalIdstringno
actionstringnothe gated action, or a comma-joined compound set — prefer `actions`
actionsstring[]noevery capability this approval covers
messagestringno
urlstringnothe console page where a project admin reviews this request
nextActionsobject[]no
nextActions.opstringyesNeutral logical action id, e.g. "service.add" — NOT an operationId or a CLI/MCP tool name; each client maps it to its own surface.
nextActions.reasonstringyesNatural-language, human/LLM-facing "why do this now".
nextActions.argsobjectnoSuggested, flat named arguments; "<placeholder>"s where a value is unknown.
nextActions.gatedbooleannoTrue if the action passes a governance gate.

400

Default Response

FieldTypeRequiredDescription
errorstringyes

403

Default Response

FieldTypeRequiredDescription
errorstringyes

404

Default Response

FieldTypeRequiredDescription
errorstringyes

409

code public_access_closed: the database's public access is closed and the console has no private lane on this deployment yet

FieldTypeRequiredDescription
errorstringyes
codestringnostable machine-readable reason, e.g. private_lane_disabled, private_lane_unavailable_in_region, public_access_closed, credential_change_in_progress

502

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown