Create database
Databases
Create database
Provision a new PostgreSQL database.
POST
Create database
Creates a new PostgreSQL database with its own user, password, and PgBouncer pool entry.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Database identifier (becomes DB name and username) |
displayName | string | Yes | Human-friendly label |
Example
Response
201 Created
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Request body is missing fields or the name is invalid |
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 403 | KEY_SCOPE_DENIED | The API key is valid but does not have full account access |
| 403 | PLAN_LIMIT | Your plan does not allow API access or more databases |
| 500 | AGENT_ERROR | The VPS agent failed to create the database |