/v1/databasesReturns the workspace's databases, newest first. Deleted databases are not included, but
databases that are still deleting or that failed are.
Without query parameters, every database is returned in data. Send page or
page_size to paginate. A top-level pagination object is then added next to data,
and q filters the results. q is ignored unless page or page_size is present.
List responses never include the password. Use Get database credentials for that.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Query parameters
pageintegerPage number, starting at 1. Values below 1 (or non-numbers) are treated as 1. Sending this enables pagination.
min 1
page_sizeintegerItems per page. Defaults to 10. Values above 100 are capped at 100. Sending this enables pagination.
Default 10min 1 · max 100
qstringCase-insensitive substring search across the database's name, slug, engine, version, host, status and display status. Only applied when paginating.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The workspace's databases. pagination is only present when page or page_size was sent.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the database.
namestringRequiredDisplay name.
slugstringRequiredURL-safe version of the name. Not necessarily unique.
enginestringRequiredDatabase engine. redis runs Valkey.
One ofpostgresmysqlredis
versionstringEngine version. Omitted when unknown.
statusstringRequiredLifecycle 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_statusstringRequiredStatus to show in user interfaces. Currently the same values as status.
plan_slugstringSlug of the database's plan. Omitted when the plan is unknown.
zone_slugstringRequiredZone the database runs in.
storage_gibintegerRequiredProvisioned storage in GiB.
vcpuintegerRequiredWhole vCPUs of the plan.
cpu_limit_millisintegerCPU cap in millicores. Omitted when not set.
memory_mibintegerRequiredMemory in MiB.
hoststringPublic hostname. Omitted for private MySQL and Redis databases.
portintegerEngine port: 5432 (PostgreSQL), 3306 (MySQL) or 6379 (Redis). Public MySQL and Redis clients connect to public_port instead.
database_namestringName of the database inside the engine. Omitted for Redis.
usernamestringDatabase user.
passwordstringThe database password. Only returned when a database is created, never by list or get.
connection_stringstringPublic 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_hoststringPrivate hostname, reachable only from workloads running on RumptyCloud in the same zone.
internal_connection_stringstringPrivate 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_accessbooleanRequiredWhether public access was requested. MySQL and Redis databases only have a public endpoint when this is true.
public_portintegerPublic port for MySQL and Redis databases with public access, in the range 30000–40000. Omitted otherwise.
created_atstring (date-time)RequiredWhen the database was created.
paginationobjectShow attributesHide attributes
pageintegerRequiredCurrent page number.
page_sizeintegerRequiredItems per page.
totalintegerRequiredTotal number of matching databases.
total_pagesintegerRequiredTotal number of pages.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.