v1
latestOpenAPI 3.0.32026-07-17485661.9 KBCreate a database
Creates a new database in a space.
Path parameters
Ghost space ID.
Request body
Name for the new database. Auto-generated if omitted.
Database deployment model.
- standard — shared-resource databases subject to the space's compute and storage limits.
- dedicated — per-instance paid databases with guaranteed resources, exempt from space-level auto-pause.
Compute size for dedicated databases. Each step up allocates proportionally more vCPU and RAM.
Share token from a database share (begins with gs_). When provided, creates the new database from the shared snapshot.
Response
Database created
Database ID.
Database name. Unique within the space.
Database deployment model.
- standard — shared-resource databases subject to the space's compute and storage limits.
- dedicated — per-instance paid databases with guaranteed resources, exempt from space-level auto-pause.
Compute size for dedicated databases. Each step up allocates proportionally more vCPU and RAM.
Current lifecycle status of the database.
PostgreSQL hostname for connections.
PostgreSQL port for connections.
PostgreSQL password for the default user. Returned on every GET for authorized callers.
Current disk usage in MiB. Null if not yet available.