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/database
DELETE/api/v1/projects/:id/database

Browse & query (Postgres)

GET/api/v1/projects/:id/database/tables
GET/api/v1/projects/:id/database/tables/:table/columns
GET/api/v1/projects/:id/database/tables/:table/rows
POST/api/v1/projects/:id/database/query

Redis & MongoDB consoles

GET/POST/api/v1/services/:serviceId/redis/keys
GET/POST/api/v1/services/:serviceId/mongo/collections

List all your databases

GET/api/v1/databases
Your 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?