Skip to content
Proud to collaborate with Microsoft for Startups

neon.data.query ​

End-user-safe tenant-scoped structured read of a Neon table

End-user-safe tenant-scoped read of a Neon table.

The calling end-user's uuid is taken from the immutable principal (context.metadata["end_user"]) and forced as scope_column = uuid; a caller can neither remove that predicate nor set its value. Only structured inputs are accepted (no raw SQL); table/columns are validated against the exposure allow-lists. Returns the caller's own rows only.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-neon
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes——
neon_branch_uuiduuidYes——
role_namestringYes——
db_namestringYes——
tablestringYes——
scope_columnstringYes——
table_allowlistlistYes——
column_allowlistlistYes——
columnslistYes——
filterslistNo——
limitintegerNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
rowslistNo——
row_countintegerNo——
tablestringNo——
executed_atstringNo——
reasonstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
failure_typestringNo—Engine-stamped failure category (atomic path)
failed_actionstringNo—Engine-stamped action method that raised (atomic path)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeScoped read
completedNoYesYes—Read executed
failedNoYesNo—Read failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "neon.data.query",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "neon_branch_uuid": "value",
    "role_name": "value"
  }
}