Skip to content
Proud to collaborate with Microsoft for Startups

neon.data_apis.request ​

Call the Neon Data API (PostgREST) HTTP endpoint

Issue an HTTP request against a Neon Data API (PostgREST) base URL.

The Neon connection / console API key cannot authenticate Data API queries. Pass a JWT in jwt (Bearer), or omit it when the target allows anonymous access. Never log or persist jwt.

Inputs:

  • data_api_url: PostgREST base URL ending in /rest/v1 (required).
  • method: GET/POST/PATCH/PUT/DELETE (default GET).
  • path: table or relative path (e.g. posts).
  • query: query-string object (select, filters, limit, …).
  • headers: extra headers (Prefer, Accept-Profile, …).
  • body: JSON object/list or string body.
  • jwt: optional Bearer JWT (sensitive — scrubbed from terminal state).
  • fail_on_http_error: default true.

Outputs:

  • response_status_code, response_body, response_json, response_headers, request_url

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-neon
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
data_api_urlstringYes—PostgREST base URL from neon.data_apis.get (…/rest/v1)
methodstringNo—HTTP method (default GET)
pathstringNo—Table or path relative to the Data API base
queryjsonNo—Query-string parameters (PostgREST select/filters)
headersjsonNo—Extra request headers
bodyjsonNo—JSON request body
jwtstringNo—Bearer JWT for the Data API (not the Neon API key)
fail_on_http_errorbooleanNo—Fail on 4xx/5xx (default true)
timeout_secondsintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
data_api_urlstringNo——
methodstringNo——
pathstringNo——
queryjsonNo——
headersjsonNo——
bodyjsonNo——
jwtstringNo——
fail_on_http_errorbooleanNo——
timeout_secondsintegerNo——
request_urlstringNo——
response_status_codeintegerNo——
response_bodystringNo——
response_jsonjsonNo——
response_headersjsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "neon.data_apis.request",
  "initial_data": {
    "data_api_url": "value"
  }
}