Provisioning Databases
Create production-ready databases with a single API call or from the Dashboard.
Creating a Database
From the Dashboard
- Navigate to your Workspace.
- Click Create Database.
- Fill in the details:
| Field | Required | Description |
|---|---|---|
| Display Name | ✅ | Human-readable name (e.g., production-api) |
| Engine | ✅ | PostgreSQL, Redis, or MongoDB |
| Description | ❌ | Optional description |
- Click Create.
Via the API
curl -X POST https://api.lordbase.com/e/v1/developer/workspaces/{workspace_id}/databases/ \
-H "Authorization: Bearer lb_pat_your_token" \
-H "Content-Type: application/json" \
-d '{
"display_name": "my-app-db",
"engine": "postgres",
"description": "Main application database"
}'
What Gets Created
When you provision a database, Lordbase automatically:
- Creates the database instance on the provisioning server
- Generates a unique database name (e.g.,
lb_a1b2c3d4e5f6) - Creates admin credentials (username + secure password)
- Configures connection pooling (PostgreSQL only, via PgBouncer)
- Sets default limits based on your plan
Database Limits
Each database has configurable limits based on your plan:
| Limit | Default | Description |
|---|---|---|
| Max Storage | 1 GB | Maximum storage capacity |
| Max Connections | 20 | Maximum concurrent connections |
tip
Contact support or upgrade your plan to increase these limits.
Pausing & Resuming
Pause a Database
Pausing suspends the database, freeing resources while preserving data.
curl -X POST https://api.lordbase.com/e/v1/developer/databases/{database_id}/pause/ \
-H "Authorization: Bearer lb_pat_your_token"
Resume a Database
curl -X POST https://api.lordbase.com/e/v1/developer/databases/{database_id}/resume/ \
-H "Authorization: Bearer lb_pat_your_token"
warning
Paused databases do not accept connections. Ensure your application handles reconnection gracefully.
Cloning Databases
Clone an existing database to create an exact copy with new credentials.
curl -X POST https://api.lordbase.com/e/v1/developer/databases/{database_id}/clone/ \
-H "Authorization: Bearer lb_pat_your_token" \
-H "Content-Type: application/json" \
-d '{"new_display_name": "staging-clone"}'
Use cases:
- Create staging environments from production data
- Test migrations on a copy before applying to production
- Create developer sandboxes
Deleting a Database
Irreversible Action
Deleting a database permanently removes all data, users, backups, and configuration. This cannot be undone.
curl -X DELETE https://api.lordbase.com/e/v1/developer/databases/{database_id}/ \
-H "Authorization: Bearer lb_pat_your_token"
Next Steps
- Connection Details — Get your connection string
- Database Users — Add team access
- Extensions — Enable PostgreSQL extensions