Skip to content
Proud to collaborate with Microsoft for Startups

neon.projects.get ​

Fetch a single Neon project by provider ID

Fetch a single Neon project by its provider (Neon) project ID.

Inputs:

  • neon_project_id: Neon project ID to fetch (required).

Outputs (terminal state_data):

  • neon_project_id: str — the project ID
  • name: str — project name
  • region_id: str — Neon region (e.g. aws-us-east-2)
  • pg_version: int — Postgres major version
  • status: str — project status (provider value)
  • provider_metadata: dict — full Neon response body

Error policy:

  • HTTP 404 → WorkflowNotRetryableError (project not found).
  • other 4xx → WorkflowNotRetryableError (via _common.raise_for_neon_status).
  • 5xx / timeouts → propagate so the engine retries.

Plugin required: context.get_plugin("neon") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—Cloud connection holding the Neon credential
neon_project_idstringYes—Neon project ID to fetch

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
neon_project_idstringNo——
namestringNo——
region_idstringNo——
pg_versionintegerNo——
statusstringNo——
provider_metadatajsonNo——
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.projects.get",
  "initial_data": {
    "connection_uuid": "value",
    "neon_project_id": "value"
  }
}