neon.projects.create ​
Create a Neon project (fire-and-forget)
Creates a Neon project via POST /projects (API v2).
This atomic is fire-and-forget: Neon returns an operations[] array whose create operation must reach finished, but this atomic does NOT poll. It returns immediately with neon_project_id, the auto-created default branch id, and the create neon_operation_id. Orchestration (C-01) composes the polling atomic A-22 neon.operations.wait to block until the operation finishes. This keeps every base atomic uniformly 3-state.
Inputs:
- connection_uuid: tenant connection holding the Neon credential (required)
- name: human-readable project name (required)
- region_id: Neon region id (optional, default: aws-us-east-2)
- pg_version: Postgres major version (optional, default: 16)
Outputs (terminal state_data):
- neon_project_id: str — Neon provider id of the created project
- name: str — confirmed project name
- region_id: str — confirmed region
- pg_version: int — confirmed Postgres version
- neon_default_branch_id: str — Neon id of the auto-created main branch
- neon_operation_id: str — id of the create operation; feed to A-22
- provider_metadata: dict — full Neon project object
Plugin required: context.get_plugin("neon") must expose .api_token.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-neon |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | Tenant connection holding the Neon credential |
name | string | Yes | — | Human-readable Neon project name |
region_id | string | No | — | Neon region id (default: aws-us-east-2) |
pg_version | integer | No | — | Postgres major version (default: 16) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
neon_project_id | string | No | — | — |
name | string | No | — | — |
region_id | string | No | — | — |
pg_version | integer | No | — | — |
neon_default_branch_id | string | No | — | Neon id of the auto-created main branch |
neon_operation_id | string | No | — | Id of the create operation; feed to A-22 |
provider_metadata | json | No | — | — |
connection_uuid | uuid | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "neon.projects.create",
"initial_data": {
"connection_uuid": "value",
"name": "value"
}
}