Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Neon

Neon

Neon serverless Postgres: list and inspect projects, list and create branches, list databases.

5 actions API key 4 read1 write Calls console.neon.tech

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "neon" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Create branchwriteneon.create_branchCreate a branch of a Neon project, by default from the project's default branch (copy-on-write). No compute endpoint is created.
InputTypeDescription
project_idstringRequiredProject ID
namestringOptionalBranch name (auto-generated if omitted)
parent_idstringOptionalParent branch ID (br-...); defaults to the default branch
TypeScript
await setu.execute({
  userId: "user_1",
  action: "neon.create_branch",
  input: {
    "project_id": "<project_id>"
  },
});
Get projectreadneon.get_projectGet a Neon project: region, Postgres version, proxy host and timestamps.
InputTypeDescription
project_idstringRequiredProject ID
TypeScript
await setu.execute({
  userId: "user_1",
  action: "neon.get_project",
  input: {
    "project_id": "<project_id>"
  },
});
List branchesreadneon.list_branchesList the branches of a Neon project with their IDs, names and parents.
InputTypeDescription
project_idstringRequiredProject ID
searchstringOptionalPartial match on branch name or ID
limitintegerOptionalRecords per page
TypeScript
await setu.execute({
  userId: "user_1",
  action: "neon.list_branches",
  input: {
    "project_id": "<project_id>"
  },
});
List databasesreadneon.list_databasesList the databases of a branch with their owner roles.
InputTypeDescription
project_idstringRequiredProject ID
branch_idstringRequiredBranch ID (br-...)
TypeScript
await setu.execute({
  userId: "user_1",
  action: "neon.list_databases",
  input: {
    "project_id": "<project_id>",
    "branch_id": "<branch_id>"
  },
});
List projectsreadneon.list_projectsList Neon projects, optionally filtered by a name or ID search; personal API keys must pass org_id.
InputTypeDescription
searchstringOptionalPartial match on project name or ID
limitintegerOptionalNumber of projects, 1 to 400
cursorstringOptionalCursor from a previous page
org_idstringOptionalOrganization ID (required for personal API keys)
TypeScript
await setu.execute({
  userId: "user_1",
  action: "neon.list_projects",
  input: {},
});