List Databases
Retrieve list of all your databases.
Endpoint
GET /v1/databases/{db_type}
cURL
# List PostgreSQL databases
curl -X GET "https://api.wayscloud.services/v1/databases/postgresql" \
-H "Authorization: Bearer wayscloud_database_abc123_YourSecretKey"
# List MariaDB databases
curl -X GET "https://api.wayscloud.services/v1/databases/mariadb" \
-H "Authorization: Bearer $WAYSCLOUD_API_KEY"
Response
{
"databases": [
{
"db_name": "my_app_db",
"db_type": "postgresql",
"host": "172.29.1.10",
"port": 5432,
"status": "active",
"created_at": "2025-11-04T10:30:00Z",
"size_mb": 150
}
]
}
Python
response = requests.get(
'https://api.wayscloud.services/v1/databases/postgresql',
headers={'Authorization': f'Bearer {API_KEY}'}
)
for db in response.json()['databases']:
print(f"{db['db_name']} - {db['size_mb']}MB")