API Reference
Databases
Provision managed Postgres, Redis, MongoDB, and MySQL, and browse their data.
Attach a managed database to a project — Deployzy provisions it and injects the
connection string (DATABASE_URL, or REDIS_URL for Redis) as an env var.
Authenticate with a deploy-scoped API key (X-API-Key: sm_live_...).
Provision a database for a project
POST
/api/v1/projects/:id/database{ "type": "postgres" }type is one of postgres, redis, mongodb, mysql. The connection
URL is injected into the project's environment; redeploy for it to take effect.
Inspect the database attached to a project
GET
/api/v1/projects/:id/databaseDELETE
/api/v1/projects/:id/databaseBrowse & query (Postgres)
GET
/api/v1/projects/:id/database/tablesGET
/api/v1/projects/:id/database/tables/:table/columnsGET
/api/v1/projects/:id/database/tables/:table/rowsPOST
/api/v1/projects/:id/database/queryRedis & MongoDB consoles
GET/POST
/api/v1/services/:serviceId/redis/keysGET/POST
/api/v1/services/:serviceId/mongo/collectionsList all your databases
GET
/api/v1/databasesYour plan includes one PostgreSQL database; Redis, MongoDB, and MySQL are
available on paid plans. The AI agent can also attach a database for you
("give this project a Postgres database").
Was this page helpful?
