seren-db
Seren DB
For Claude: How to Use This Skill
Skill instructions are preloaded in context when this skill is active. Do not perform filesystem searches or tool-driven exploration to rediscover them; use the guidance below directly.
Use this skill when a user wants to create, manage, or query SerenDB serverless Postgres databases.
API
Use this skill alongside the core Seren API skill (https://api.serendb.com/skill.md).
Base Route
All routes go through https://api.serendb.com/publishers/seren-db.
Authentication
All endpoints require Authorization: Bearer $SEREN_API_KEY.
Projects
Manage SerenDB projects and fetch project-level connection URIs.
List all projects in the organization.
GET /publishers/seren-db/projects
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects" \
-H "Authorization: Bearer $SEREN_API_KEY"
Create a new SerenDB project.
POST /publishers/seren-db/projects
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-agent","region":""}'
Get a project by ID.
GET /publishers/seren-db/projects/{id}
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Delete a project.
DELETE /publishers/seren-db/projects/{id}
curl -sS -X DELETE "https://api.serendb.com/publishers/seren-db/projects/<id>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Update a project.
PATCH /publishers/seren-db/projects/{id}
curl -sS -X PATCH "https://api.serendb.com/publishers/seren-db/projects/<id>" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"block_public_connections":true,"block_vpc_connections":true,"compute_unit_max":0}'
Get connection URI for a project.
GET /publishers/seren-db/projects/{id}/connection_uri
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/connection_uri" \
-H "Authorization: Bearer $SEREN_API_KEY"
Branches
Create, inspect, rename, delete, and set default branches.
List all branches in a project.
GET /publishers/seren-db/projects/{id}/branches
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches" \
-H "Authorization: Bearer $SEREN_API_KEY"
Create a new branch in a project.
POST /publishers/seren-db/projects/{id}/branches
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-agent"}'
Get a specific branch.
GET /publishers/seren-db/projects/{id}/branches/{bid}
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Delete a branch.
DELETE /publishers/seren-db/projects/{id}/branches/{bid}
curl -sS -X DELETE "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Rename a branch.
PATCH /publishers/seren-db/projects/{id}/branches/{bid}
curl -sS -X PATCH "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-agent"}'
Set a branch as the default for its project.
POST /publishers/seren-db/projects/{id}/branches/{bid}/set-default
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/set-default" \
-H "Authorization: Bearer $SEREN_API_KEY"
Databases
Manage databases within a specific branch.
List all databases on a branch.
GET /publishers/seren-db/projects/{id}/branches/{bid}/databases
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/databases" \
-H "Authorization: Bearer $SEREN_API_KEY"
Create a new database on a branch.
POST /publishers/seren-db/projects/{id}/branches/{bid}/databases
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/databases" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-agent"}'
Get a specific database.
GET /publishers/seren-db/projects/{id}/branches/{bid}/databases/{did}
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/databases/<did>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Update a database (change owner).
PUT /publishers/seren-db/projects/{id}/branches/{bid}/databases/{did}
curl -sS -X PUT "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/databases/<did>" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"owner_name":"my-agent"}'
Delete a database.
DELETE /publishers/seren-db/projects/{id}/branches/{bid}/databases/{did}
curl -sS -X DELETE "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/databases/<did>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Roles
Create, list, delete, and reset database roles.
List all roles on a branch.
GET /publishers/seren-db/projects/{id}/branches/{bid}/roles
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/roles" \
-H "Authorization: Bearer $SEREN_API_KEY"
Create a new role on a branch.
POST /publishers/seren-db/projects/{id}/branches/{bid}/roles
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/roles" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-agent"}'
Delete a role from a branch.
DELETE /publishers/seren-db/projects/{id}/branches/{bid}/roles/{rid}
curl -sS -X DELETE "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/roles/<rid>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Reset a role's password.
POST /publishers/seren-db/projects/{id}/branches/{bid}/roles/{rid}/reset_password
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/roles/<rid>/reset_password" \
-H "Authorization: Bearer $SEREN_API_KEY"
Compute Endpoints
Manage branch compute endpoints and lifecycle operations.
List all endpoints on a branch.
GET /publishers/seren-db/projects/{id}/branches/{bid}/endpoints
curl -sS -X GET "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints" \
-H "Authorization: Bearer $SEREN_API_KEY"
Create a new compute endpoint on a branch.
POST /publishers/seren-db/projects/{id}/branches/{bid}/endpoints
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"autoscaling_max":0,"autoscaling_min":0,"compute_unit":""}'
Delete an endpoint.
DELETE /publishers/seren-db/projects/{id}/branches/{bid}/endpoints/{eid}
curl -sS -X DELETE "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints/<eid>" \
-H "Authorization: Bearer $SEREN_API_KEY"
Update an endpoint's settings.
PATCH /publishers/seren-db/projects/{id}/branches/{bid}/endpoints/{eid}
curl -sS -X PATCH "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints/<eid>" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"autoscaling_max":0,"autoscaling_min":0,"pooler_enabled":true}'
Start a suspended endpoint.
POST /publishers/seren-db/projects/{id}/branches/{bid}/endpoints/{eid}/start
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints/<eid>/start" \
-H "Authorization: Bearer $SEREN_API_KEY"
Stop (suspend) an endpoint.
POST /publishers/seren-db/projects/{id}/branches/{bid}/endpoints/{eid}/stop
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/projects/<id>/branches/<bid>/endpoints/<eid>/stop" \
-H "Authorization: Bearer $SEREN_API_KEY"
SQL Query
Execute SQL against a target project/branch/database using SerenDB credentials.
Execute a SQL query against a SerenDB database.
POST /publishers/seren-db/query
curl -sS -X POST "https://api.serendb.com/publishers/seren-db/query" \
-H "Authorization: Bearer $SEREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"project_id":"<project_uuid>","query":"SELECT 1"}'
More from serenorg/seren-skills
polymarket-bot
Autonomous trading agent for Polymarket prediction markets using Seren ecosystem
9polymarket-maker-rebate-bot
Provide two-sided liquidity on Polymarket with rebate-aware quoting, inventory controls, and dry-run-first execution for binary markets.
6saas-short-trader
Alpaca-branded SaaS short trader with MCP-native execution: scores AI disruption risk, builds capped short baskets, and tracks paper/live PnL in SerenDB.
2high-throughput-paired-basis-maker
Run a paired-market basis strategy on Polymarket with mandatory backtest-first gating before trade intents.
2seren-bounty
Work with Seren Bounty affiliate bounties: customers create and fund verifier-backed bounties; agents join to receive a referral_code and accrue earnings as qualifying events are verified; a release sweep pays matured earnings out of escrow.
2budget-tracker
Compare actual Wells Fargo spending against user-defined monthly budgets per category, calculate variance, and track budget adherence over time.
1