Skip to content

Get a database

GET/v1/databases/{uid}

Returns one database. The password is never included; connection_string and internal_connection_string contain the user but no password. Use Get database credentials to read it.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The database's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The database.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
uidstringRequired

Unique identifier of the database.

namestringRequired

Display name.

slugstringRequired

URL-safe version of the name. Not necessarily unique.

enginestringRequired

Database engine. redis runs Valkey.

One ofpostgresmysqlredis

versionstring

Engine version. Omitted when unknown.

statusstringRequired

Lifecycle state. provisioning while being created, resized, restored or restarted, ready when usable, deleting while being deleted and failed when the last create, resize, restore, restart or delete failed. deleted only appears in an idempotent replay of a delete.

stopped means the platform stopped the database because the account was suspended for non-payment. A ready database switches to stopped as soon as the stop is queued (compute billing stops), and stays stopped while the account is suspended. Within about a minute of the account becoming active again it is restarted: it goes through provisioning back to ready (or failed if the restart fails). While stopped, actions that need a ready database (resize, password rotation, snapshots, the data browser) return 409. If the stop itself fails, the database stays ready and the stop is retried.

One ofprovisioningreadystoppeddeletingdeletedfailed

display_statusstringRequired

Status to show in user interfaces. Currently the same values as status.

plan_slugstring

Slug of the database's plan. Omitted when the plan is unknown.

zone_slugstringRequired

Zone the database runs in.

storage_gibintegerRequired

Provisioned storage in GiB.

vcpuintegerRequired

Whole vCPUs of the plan.

cpu_limit_millisinteger

CPU cap in millicores. Omitted when not set.

memory_mibintegerRequired

Memory in MiB.

hoststring

Public hostname. Omitted for private MySQL and Redis databases.

portinteger

Engine port: 5432 (PostgreSQL), 3306 (MySQL) or 6379 (Redis). Public MySQL and Redis clients connect to public_port instead.

database_namestring

Name of the database inside the engine. Omitted for Redis.

usernamestring

Database user.

passwordstring

The database password. Only returned when a database is created, never by list or get.

connection_stringstring

Public connection URL (postgresql://…?sslmode=require, mysql://… or rediss://…). Contains the password only in the create response. Omitted when the database has no public hostname.

internal_hoststring

Private hostname, reachable only from workloads running on RumptyCloud in the same zone.

internal_connection_stringstring

Private connection URL using internal_host (Redis uses plain redis://). Contains the password only in the create response. Omitted when internal_host is not known.

public_accessbooleanRequired

Whether public access was requested. MySQL and Redis databases only have a public endpoint when this is true.

public_portinteger

Public port for MySQL and Redis databases with public access, in the range 30000–40000. Omitted otherwise.

created_atstring (date-time)Required

When the database was created.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The resource does not exist or you cannot access it.

Errors use the standard error format.